Radiicall / jellyfin-rpc

Displays the content you're currently watching on Discord!
GNU General Public License v3.0
238 stars 18 forks source link

Fixed library blacklist behaviour #157

Open Zoarial94 opened 1 month ago

Zoarial94 commented 1 month ago

Fixes #151. This PR fetches the VirtualFolders (aka libraries) from Jellyfin, filter the libraries based off the user-provided names, and then compare the location of the item currently being played to the location of the blacklisted libraries. Since I like over-optimizing, I also cache the blacklisted library paths so we don't have to make that API call, and potentially expensive operation, on every check. The behavior can easily be changed, however.