country is allways dict
This commit is contained in:
parent
d38d4ffc6f
commit
70a610dc4f
1 changed files with 3 additions and 1 deletions
|
@ -79,6 +79,8 @@ def getMovieInfo(imdbId):
|
||||||
txt = [cleanUp(k) for k in txt.split('|')]
|
txt = [cleanUp(k) for k in txt.split('|')]
|
||||||
elif ', ' in txt:
|
elif ', ' in txt:
|
||||||
txt = [cleanUp(k) for k in txt.split(', ')]
|
txt = [cleanUp(k) for k in txt.split(', ')]
|
||||||
|
elif title in ('country', 'language'):
|
||||||
|
txt = [cleanUp(txt), ]
|
||||||
if title == 'original air date':
|
if title == 'original air date':
|
||||||
info['series_episode_info'] = txt.split('\n')[-1].strip()
|
info['series_episode_info'] = txt.split('\n')[-1].strip()
|
||||||
txt = txt.split('\n')[0].strip()
|
txt = txt.split('\n')[0].strip()
|
||||||
|
@ -605,7 +607,7 @@ class IMDb:
|
||||||
self.IMDbDict = IMDbDict
|
self.IMDbDict = IMDbDict
|
||||||
|
|
||||||
if IMDbDict['episode_of']:
|
if IMDbDict['episode_of']:
|
||||||
episode_of =getMovieInfo(IMDbDict['episode_of'])
|
episode_of = getMovieInfo(IMDbDict['episode_of'])
|
||||||
for key in ('country', 'language'):
|
for key in ('country', 'language'):
|
||||||
if not IMDbDict[key]:
|
if not IMDbDict[key]:
|
||||||
IMDbDict[key] = episode_of[key]
|
IMDbDict[key] = episode_of[key]
|
||||||
|
|
Loading…
Reference in a new issue