country is allways dict

This commit is contained in:
j 2008-07-16 20:05:30 +02:00
parent d38d4ffc6f
commit 70a610dc4f
1 changed files with 3 additions and 1 deletions

View File

@ -79,6 +79,8 @@ def getMovieInfo(imdbId):
txt = [cleanUp(k) for k in txt.split('|')]
elif ', ' in txt:
txt = [cleanUp(k) for k in txt.split(', ')]
elif title in ('country', 'language'):
txt = [cleanUp(txt), ]
if title == 'original air date':
info['series_episode_info'] = txt.split('\n')[-1].strip()
txt = txt.split('\n')[0].strip()
@ -605,7 +607,7 @@ class IMDb:
self.IMDbDict = IMDbDict
if IMDbDict['episode_of']:
episode_of =getMovieInfo(IMDbDict['episode_of'])
episode_of = getMovieInfo(IMDbDict['episode_of'])
for key in ('country', 'language'):
if not IMDbDict[key]:
IMDbDict[key] = episode_of[key]