PlexCache SymLink v1.3.1
Pre-releaseChangelog
Fixed
- Watched Media Expiration setup bug: Fixed an issue that would throw an error when setting up the settings.json file with the setup as it was not asking (or automatically set a default value) the expiration time for the cache file of the watched media.
Previous release changelog:
Note: This update requires a new dependency, please install "requests" via pip!
Added
- Symbolic Link: Implemented the use of symbolic links to expand compatibility across various operating systems. Initially designed for unRAID, which employs a FUSE system for seamless file movement between disks and cache, the script now supports other environments through the use of symbolic links. (Untested feature)
- Improved User Library Access Check: Enhanced the user access control mechanism to first verify if a user has access to a particular library before fetching media from it. This update optimizes the process by skipping unnecessary iterations for libraries where the user lacks access.
- Webhook Notifications: Introduced webhook notifications to facilitate real-time error and critical event monitoring. By default, it supports Discord payload. However, you can easily modify the
webhook_headers
variable in the script to suit your needs. The notification level defaults to errors and critical, but you can modify this by changing thewebhook_level
variable.
This feature requires a new dependency, please install "requests" via pip!Improved
Logging and Output During Active Sessions: Enhanced the logging mechanism to provide more detailed information during active sessions. It now includes the title and episode of a show (if applicable) and logs the actual file of interest.
Logging Level Control: Introduced a
log_level
variable to provide more control over the logging mechanism. It allows users to set the desired logging level, defaulting to 'info' level.Fixed
Watchlist and Watched Media Bug: Fixed an issue that could cause errors with the watchlist and watched media. The script now caches already edited paths, which resolves the latent bug.
Concurrent Move Issues: Addressed several bugs that could occur during concurrent media moves, enhancing the script's overall reliability.
More on symbolic links:
I have implemented symbolic links to enhance its compatibility with various operating systems. While the script was initially designed for unRAID, which utilizes a FUSE system enabling seamless file movement between disks and cache, I wanted to ensure its functionality across different systems.
Symbolic links are a type of file that acts as a reference or shortcut to another file or directory in the file system. Instead of physically copying or moving files, symbolic links create a link or pointer that points to the original file's location. This approach allows the script to "move" files without actually duplicating them, ensuring efficiency and avoiding unnecessary storage usage.
By incorporating symbolic links, the script becomes adaptable to operating systems that do not employ a FUSE system like unRAID. It provides a versatile solution for transferring files between disks and cache, maintaining compatibility across a wider range of setups and ensuring a smooth experience for users.
I eagerly welcome any feedback regarding this new feature.