Repository navigation
Conversation
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_0181seTYh8Bo6yc19Ba5p5bo
This was referenced Oct 18, 2026
selmant
added a commit
to selmant/better-trakt
that referenced
this pull request
Oct 23, 2026
…le paths jellyfin#329 Original author: @zotabee. Thanks for the contribution!
selmant
added a commit
to selmant/better-trakt
that referenced
this pull request
Oct 23, 2026
Follow-up to jellyfin#329 (@zotabee): an excluded location of "/" trimmed to an empty string and no longer excluded anything. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
3 of 9 tasks
Co-authored-by: Selman Trabzon <selman.trbzon@gmail.com> Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
"Exclude library folders" used a substring match. Excluding /media/Movies also excluded /media/Movies 4K, and any path that merely contained the excluded folder, such as /mnt/backup/media/Movies. Those items were skipped by the import and export tasks, scrobbles, instant watched updates and library events.
One helper, used everywhere the exclusion list is checked, now matches only the folder itself and what's inside it. Trailing slashes and Windows paths are handled, and the match stays case-insensitive as before.
To reproduce: have libraries at /media/Movies and /media/Movies 4K, exclude only the first, and run "Export library to trakt.tv". Nothing from Movies 4K is exported.
Tested with a small test calling
CanSyncfrom master and from this branch:/media/Movies/media/Movies/Alien (1979)/Alien.mkv/media/Movies/media/Movies 4K/Alien (1979)/Alien.mkv/media/Movies/mnt/backup/media/Movies/Alien (1979)/Alien.mkvD:\TVD:\TV\Lost\Season 01\Lost S01E01.mkvD:\TVD:\TV Shows\Lost\Season 01\Lost S01E01.mkvA trailing slash or a different case in the excluded folder still matches, as before.
Also tested live on my Jellyfin 12.1 server (Windows): a second user excluded
...\Downloads\Movies, a prefix of my test library...\Downloads\Movies.Test. The import didn't skip that library, so a movie watched on Trakt was marked watched.Merges cleanly with #320 to #323, #338, #341 and #342, which change the same files.