From 8b3230df05d5eb737a0db5d97c0c1a128123b39c Mon Sep 17 00:00:00 2001 From: j <0x006A@0x2620.org> Date: Mon, 25 Feb 2013 19:23:44 +0530 Subject: [PATCH] parse color and sound better --- ox/web/imdb.py | 14 ++++++++++---- 1 file changed, 10 insertions(+), 4 deletions(-) diff --git a/ox/web/imdb.py b/ox/web/imdb.py index 99fbd9c..27c9144 100644 --- a/ox/web/imdb.py +++ b/ox/web/imdb.py @@ -216,13 +216,19 @@ class Imdb(SiteParser): }, 'color': { 'page': 'combined', - 're': '
Color:
(.*?)', - 'type': 'string' + 're': [ + '
Color:
(.*?)
', + '(.*?)' + ], + 'type': 'list' }, 'sound': { 'page': 'combined', - 're': '
Sound Mix:
(.*?)', - 'type': 'string' + 're': [ + '
Sound Mix:
(.*?)
', + '(.*?)' + ], + 'type': 'list' }, 'season': { 'page': 'combined',