name->property
This commit is contained in:
parent
066bd38a01
commit
8b70307ec8
1 changed files with 5 additions and 3 deletions
|
@ -211,7 +211,7 @@ class Imdb(SiteParser):
|
||||||
},
|
},
|
||||||
'year': {
|
'year': {
|
||||||
'page': 'combined',
|
'page': 'combined',
|
||||||
're': '<meta name="og:title" content=".*?\((\d{4})\).*?"',
|
're': '="og:title" content=".*?\((\d{4})\).*?"',
|
||||||
'type': 'int'
|
'type': 'int'
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -255,10 +255,12 @@ class Imdb(SiteParser):
|
||||||
self['title'] = "%s (S%02dE%02d) %s" % (
|
self['title'] = "%s (S%02dE%02d) %s" % (
|
||||||
self['series_title'], self['season'], self['episode'], self['episode_title'])
|
self['series_title'], self['season'], self['episode'], self['episode_title'])
|
||||||
for key in ('directors', 'year'):
|
for key in ('directors', 'year'):
|
||||||
self['episode_%s'%key] = self[key]
|
if key in self:
|
||||||
|
self['episode_%s'%key] = self[key]
|
||||||
series = Imdb(self['series'])
|
series = Imdb(self['series'])
|
||||||
for key in ['directors', 'year']:
|
for key in ['directors', 'year']:
|
||||||
self[key] =series[key]
|
if key in series:
|
||||||
|
self[key] =series[key]
|
||||||
else:
|
else:
|
||||||
for key in ('series_title', 'episode_title', 'season', 'episode'):
|
for key in ('series_title', 'episode_title', 'season', 'episode'):
|
||||||
if key in self:
|
if key in self:
|
||||||
|
|
Loading…
Reference in a new issue