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