cleanup summary

This commit is contained in:
j 2011-10-18 14:57:31 +02:00
parent 3e7b463ac8
commit 23ea669b7d

View file

@ -377,6 +377,8 @@ class Imdb(SiteParser):
if 'releaseDate' in self:
if isinstance(self['releaseDate'], list):
self['releaseDate'] = min(self['releaseDate'])
if 'summary' in self:
self['summary'] = self['summary'].split('</p')[0].strip()
class ImdbCombined(Imdb):
def __init__(self, id, timeout=-1):