country is allways dict

This commit is contained in:
j 2008-07-16 20:05:30 +02:00
parent d38d4ffc6f
commit 70a610dc4f

View file

@ -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()