no default episodes titles
This commit is contained in:
parent
d5ed63462e
commit
3e91998dfb
1 changed files with 2 additions and 1 deletions
|
@ -256,7 +256,6 @@ class IMDb:
|
||||||
key = key[1][:-1].lower().replace(' ', '_')
|
key = key[1][:-1].lower().replace(' ', '_')
|
||||||
if key in keys:
|
if key in keys:
|
||||||
IMDbDict[key] = self.parse_raw_value(key, raw_value)
|
IMDbDict[key] = self.parse_raw_value(key, raw_value)
|
||||||
|
|
||||||
IMDbDict['title_english'] = IMDbDict.pop('also_known_as', IMDbDict['title'])
|
IMDbDict['title_english'] = IMDbDict.pop('also_known_as', IMDbDict['title'])
|
||||||
#is episode
|
#is episode
|
||||||
IMDbDict['episode_of'] = IMDbDict.pop('tv_series', '')
|
IMDbDict['episode_of'] = IMDbDict.pop('tv_series', '')
|
||||||
|
@ -343,6 +342,8 @@ class IMDb:
|
||||||
episodes[episode] = {}
|
episodes[episode] = {}
|
||||||
episodes[episode]['imdb'] = match[2]
|
episodes[episode]['imdb'] = match[2]
|
||||||
episodes[episode]['title'] = match[3].strip()
|
episodes[episode]['title'] = match[3].strip()
|
||||||
|
if episodes[episode]['title'].startswith('Episode #%d'%int(match[0])):
|
||||||
|
episodes[episode]['title'] = u''
|
||||||
description = htmldecode(match[4])
|
description = htmldecode(match[4])
|
||||||
description = stripTags(description.split('Next US airings:')[0])
|
description = stripTags(description.split('Next US airings:')[0])
|
||||||
episodes[episode]['description'] = description
|
episodes[episode]['description'] = description
|
||||||
|
|
Loading…
Reference in a new issue