Skip to content

Fixing getEpisodeTVDB#59

Open
maximebeckman wants to merge 4 commits into
cxii-dev:masterfrom
maximebeckman:master
Open

Fixing getEpisodeTVDB#59
maximebeckman wants to merge 4 commits into
cxii-dev:masterfrom
maximebeckman:master

Conversation

@maximebeckman
Copy link
Copy Markdown

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
Copy Markdown

mjglpn commented Jan 30, 2018

766f-15ed

Copy link
Copy Markdown

@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
Copy Markdown

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
Copy Markdown

Is this getting merged?

Comment thread default.py
episode_id = result['result']['episodedetails']['uniqueid']['unknown']
if 'tvdb' in result['result']['episodedetails']['uniqueid']:
episode_id = result['result']['episodedetails']['uniqueid']['tvdb']
else:
Copy link
Copy Markdown

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
Copy Markdown

@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