From 70a610dc4f76a6cafff7b1a59290a5a65aedfc80 Mon Sep 17 00:00:00 2001 From: j <0x006A@0x2620.org> Date: Wed, 16 Jul 2008 20:05:30 +0200 Subject: [PATCH] country is allways dict --- oxweb/imdb.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/oxweb/imdb.py b/oxweb/imdb.py index 16fc977..535c788 100644 --- a/oxweb/imdb.py +++ b/oxweb/imdb.py @@ -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]