-
-
Notifications
You must be signed in to change notification settings - Fork 14
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Parse the AniDB ID from the path if possible #63
base: master
Are you sure you want to change the base?
Conversation
I am in favor of this change. However, with Jellyfin you are supposed to use [anidbid-12345], which gets picked up by the standard info.ProviderIds.GetOrDefault, but of course that isn't compatible with ASS. Also, I don't understand what you mean by
This plugin first selects all similar enough titles and then matches the one that is the most similar to the title in Jellyfin (-> your folder name). |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
in the regex \d+
should be [0-9]+
and I believe you don't need the brackets
I didn't know that. I'm pretty new to Jellyfin and am running it in parallel to Plex for now while I iron out the kinks. This would be a perfect solution but unfortunately I do need it to be compatible with ASS... I don't think I have a unique use case here. I can make my behavior a fallback if
Ah, yeah I do know about the internal representation as season 1 - I just meant it was failing to match a lot of my series, and when it did match it usually matched against the first season (even if the directory was named "Show X Second Season" exactly as it is on AniDB) - it had particular trouble with shows with a lot of very similarly-named seasons like Attack on Titan and Initial D. 😄
Good call, I'll switch to |
I think it's fine the way you did it but making your behavior a fallback after I meant |
Ah. In that case, I definitely need the parentheses to make a capturing group so I can pull out just the integer ID. I'll make it a fallback and make sure it still works, then update the PR. Thanks for the review and discussion. |
Ah, yes of course 🤦♂️ |
This comment was marked as off-topic.
This comment was marked as off-topic.
Where did you get that from? The only thing we can do is keep it as is, or handle both cases (Series & Season) as best as possible. |
Jellyfin.Plugin.AniDB/Providers/AniDB/Metadata/AniDbSeriesProvider.cs
Outdated
Show resolved
Hide resolved
|
Jellyfin.Plugin.AniDB/Providers/AniDB/Metadata/AniDbSeriesProvider.cs
Outdated
Show resolved
Hide resolved
03be47e
to
b9335f4
Compare
Match the behavior of https://github.com/ZeroQI/Absolute-Series-Scanner - a Plex plugin.
I include anidb ids in the names of my anime directories to avoid incorrect matches. This PR will parse those out and use them, if it finds exactly one in the path. I've tested it and it works for my library.
Without this change, as an example, the plugin matched every season of a show in my library as season 1.
I'm open to and would appreciate feedback.