Skip to content
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

Add Subs4Series provider #948

Open
wants to merge 16 commits into
base: main
Choose a base branch
from

Conversation

pkoutsias
Copy link

No description provided.

Copy link
Collaborator

@ratoaq2 ratoaq2 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I did an initial review and it looks very good.
Thanks for the contribution.

subliminal/providers/subs4series.py Outdated Show resolved Hide resolved
subliminal/providers/subs4series.py Outdated Show resolved Hide resolved
subliminal/providers/subs4series.py Outdated Show resolved Hide resolved
Copy link
Collaborator

@ratoaq2 ratoaq2 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

While reviewing I found one major issue at the end of the review:

When the subtitle is an archiver (rar) for example, it's possible that inside an archiver you have multiple subtitles for different releases. This is similar to legendastv provider.

Each Subtitle class should represent a single subtitle (.srt) with a proper release/release_group, so the subtitles can be scored properly. So, most of the code in the download methods should happen before when you're listing subtitles, so a single rar file could return a list of subtitles.

I know @Diaoul you're not into this, but just want to let you know this is another case like legendastv where we had to download all the files during the list_subtitles in order to properly score them.

subliminal/providers/subs4series.py Outdated Show resolved Hide resolved
subliminal/providers/subs4series.py Outdated Show resolved Hide resolved
subliminal/providers/subs4series.py Show resolved Hide resolved
subliminal/providers/subs4series.py Outdated Show resolved Hide resolved
subliminal/providers/subs4series.py Show resolved Hide resolved
subliminal/providers/subs4series.py Outdated Show resolved Hide resolved
subliminal/providers/subs4series.py Outdated Show resolved Hide resolved
subliminal/providers/subs4series.py Outdated Show resolved Hide resolved
subliminal/providers/subs4series.py Outdated Show resolved Hide resolved
subliminal/providers/subs4series.py Outdated Show resolved Hide resolved
@pkoutsias
Copy link
Author

@ratoaq2 This provider may bundle multiple releases in one archive, but only if the timings are the same. However, the scoring will not be affected because all releases are included in the subtitle's version, so the release matcher will successfully match against all releases.

I have also created a branch in my fork with all 5 providers merged. Should I open a single PR with all the providers, or leave them as-is?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants