-
Notifications
You must be signed in to change notification settings - Fork 42
Added season search for TmdbAPI #220
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
base: master
Are you sure you want to change the base?
Conversation
Refactored TMDBSeasonAPI to improve API calls and data handling. I also added metadata from the main series that is missing in the season details (actors, writers, genre,...) this might be inaccurate for some seasons however but there's no other option
You can now search for a series, select it and it'll list all the seasons for that series. With the new modal you can then select the seasons you want to add.
mProjectsCode
left a comment
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.
It would also be nice if you could add types for the API responses, similar to the other APIs.
| return; | ||
| } | ||
|
|
||
| // Only show the season select modal if the user searches for seasons |
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.
I think it would be better if some of this code were to be put in a new method, to keep this method short and readable.
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.
Is it alright like this?
This is separate from the series search so users can choose which to use or use both if they want to. It only works with tmdbAPI and here is how it looks

Step 1:
Step 2:

Step 3:

Note that if you try to add multiple series it won't work, only choose one series in the series modal and then as many seasons as you want in the season modal.
I used @ZackBoe's tmdb PR as a base.