Skip to content

Conversation

@maximebeckman
Copy link

VideoLibrary.GetEpisodeDetails return throw exception sometimes.
Unique_id don't always have the property "unknown" set.
So use "tvdb" instead

VideoLibrary.GetEpisodeDetails return throw exception sometimes.
Unique_id don't always have the property "unknown" set.
So use "tvdb" instead
@mjglpn
Copy link

mjglpn commented Jan 30, 2018

766f-15ed

Copy link

@TheOzzyman TheOzzyman left a 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 !

@jeepotvin
Copy link

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.

@hugoduraes
Copy link

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:

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.

@hugoduraes
Copy link

@Silentbob1402 can you update your PR with @alxlaxv suggestions?

@cxii-dev are you looking at this PR? Are you merging it anytime soon?

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants