From 314fd0393448d68735f3a344acb4d5f085cb7bdd Mon Sep 17 00:00:00 2001 From: Rolux Date: Fri, 25 Jul 2008 16:26:46 +0200 Subject: [PATCH] allmovie: parse credits --- oxweb/allmovie.py | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/oxweb/allmovie.py b/oxweb/allmovie.py index 6fc072e..5e5dce2 100644 --- a/oxweb/allmovie.py +++ b/oxweb/allmovie.py @@ -28,6 +28,14 @@ def getMovieData(allmovieId): ), findRe(html, '
(.*?)').split('')[:-1] ) + html = getUrlUnicode("http://www.allmovie.com/cg/avg.dll?p=avg&sql=1:%s~T3" % allmovieId) + data['credits'] = map( + lambda x: map( + lambda x: stripTags(x).strip(), + x.split(' -') + ), + findRe(html, '
(.*?)').split('')[:-1] + ) return data def getMoviePoster(allmovieId):