diff --git a/ox/web/imdb.py b/ox/web/imdb.py index 8e011cc..e52cfc5 100644 --- a/ox/web/imdb.py +++ b/ox/web/imdb.py @@ -90,6 +90,20 @@ def parse_aspectratio(value): value = '.'.join(value.strip().split('.')[:2]) return value + +def technical(label): + return { + 'page': 'technical', + 're': [ + '\s*?%s\s*?.*?\s*?(.*?)\s*?' % label, + lambda data: [ + re.sub('\s+', ' ', d.strip()) for d in data.strip().split('
') + ] if data else [] + ], + 'type': 'list' + } + + ''' 'posterIds': { 'page': 'posters', @@ -300,6 +314,11 @@ class Imdb(SiteParser): ], 'type': 'list' }, + 'laboratory': technical('Laboratory'), + 'camera': technical('Camera'), + 'negative format': technical('Negative Format'), + 'cinematographic process': technical('Cinematographic Process'), + 'printed film format': technical('Printed Film Format'), } def read_url(self, url, timeout):