Skip to content
Browse files

helper: commands: resolve: fix movie resolution

Commit f436460 introduced a
bug by converting the imdb id returned in the URL form by
imdbpie to the imdb id alone, and doing so for the
'parentTitle' of the media, which represents a series for
a TV episode, but does not exist for a movie. This commit
fixes that behavior by checking that the 'parentTitle'
exists before applying the conversion at its level.

Fixes #119

Signed-off-by: Raphaël Beamonte <>
  • Loading branch information...
XaF committed Jun 21, 2018
1 parent 9b9d57c commit 7851368d7ce62a15bb245fc078f3eab201c12357
Showing with 3 additions and 2 deletions.
  1. +3 −2 helper/commands/
@@ -1006,8 +1006,9 @@ def insert_hash(media, ratio):

# Return in the form of a list
media['base']['imdbid'] = media['base']['id'][7:-1]
media['base']['parentTitle']['imdbid'] = \
if 'parentTitle' in media['base']:
media['base']['parentTitle']['imdbid'] = \
media_list = [media, ]

# If it was an episode, and we had more episodes in the list...

0 comments on commit 7851368

Please sign in to comment.
You can’t perform that action at this time.