-
Notifications
You must be signed in to change notification settings - Fork 542
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
SubDL subtitles provider #1082
SubDL subtitles provider #1082
Conversation
there is another option that we can getMetaData() inside ShowMirrosDialog() and pass the imdb to openOnlineSubPicker() |
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.
Nice addition, however I will be a bit harsh with the code quality.
What you have done is hardcoded imdb into too many places using a string instead of a long, why?. This may work for this one thing, but does not allow for easy future expansion as it ties cs3 to imdb.
app/src/main/java/com/lagradost/cloudstream3/subtitles/AbstractSubtitleEntities.kt
Outdated
Show resolved
Hide resolved
app/src/main/java/com/lagradost/cloudstream3/ui/player/GeneratorPlayer.kt
Show resolved
Hide resolved
app/src/main/java/com/lagradost/cloudstream3/syncproviders/providers/Subdl.kt
Outdated
Show resolved
Hide resolved
app/src/main/java/com/lagradost/cloudstream3/syncproviders/providers/Subdl.kt
Outdated
Show resolved
Hide resolved
In most cases you need and will use the imdb ID as a full one with ttxxxxx and that's the same format that be added from trakt & TMDB apis |
Alright, however normally with stuff like this (like mal and anilist) when it can be stored as an int is is stored as an int |
Sure, I think only imdb needs to be stored as string, all others would be stored as Int |
We can later update MainApi to store applicable IDs as int. If you agree, I can me Todo before merging |
Closes #1080
Closes #1076