-
Notifications
You must be signed in to change notification settings - Fork 26
Fixing getEpisodeTVDB #59
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
VideoLibrary.GetEpisodeDetails return throw exception sometimes. Unique_id don't always have the property "unknown" set. So use "tvdb" instead
|
766f-15ed |
TheOzzyman
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.
I've tried here the change and it's worked perfectly !
|
I've also tried the fix suggested in this commit and it's working! Thanks to @Silentbob1402, hopefully it will get merge soon for others to use. |
|
Is this getting merged? |
| episode_id = result['result']['episodedetails']['uniqueid']['unknown'] | ||
| if 'tvdb' in result['result']['episodedetails']['uniqueid']: | ||
| episode_id = result['result']['episodedetails']['uniqueid']['tvdb'] | ||
| else: |
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.
episode_id = result['result']['episodedetails']['uniqueid']['imdb'] may also exist. You should add an extra if for that.
VideoLibrary.GetEpisodeDetails return throw exception sometimes.
Unique_id don't always have the property "unknown" set.
So use "tvdb" instead