expose isSeries flag

This commit is contained in:
j 2013-03-01 15:15:18 +05:30
parent 79ecde337c
commit 02b20b0042

View file

@ -262,7 +262,7 @@ class Imdb(SiteParser):
}, },
'isSeries': { 'isSeries': {
'page': 'combined', 'page': 'combined',
're': '<span class="tv-extra">\(*TV series', 're': '<span class="tv-extra">(TV series) ',
'type': 'string' 'type': 'string'
}, },
'title': { 'title': {
@ -476,6 +476,7 @@ class Imdb(SiteParser):
del self['_director'] del self['_director']
if 'isSeries' in self: if 'isSeries' in self:
del self['isSeries'] del self['isSeries']
self['isSeries'] = True
if 'episodeTitle' in self: if 'episodeTitle' in self:
self['episodeTitle'] = re.sub('Episode \#\d+\.\d+', '', self['episodeTitle']) self['episodeTitle'] = re.sub('Episode \#\d+\.\d+', '', self['episodeTitle'])