fix language
This commit is contained in:
parent
c35154ad3a
commit
1eca4de3b5
1 changed files with 4 additions and 1 deletions
|
@ -166,7 +166,8 @@ class Imdb(SiteParser):
|
||||||
'language': {
|
'language': {
|
||||||
'page': 'combined',
|
'page': 'combined',
|
||||||
're': [
|
're': [
|
||||||
'<div class="info"><h5>Language:</h5>.*?<div class="info">',
|
#'<h5>Language:</h5>.*?<div class="info">',
|
||||||
|
'<h5>Language:</h5>.*?</div>',
|
||||||
#'<a href="/language/.*?">(.*?)</a>', #links changed to work with existing caches, just take all links
|
#'<a href="/language/.*?">(.*?)</a>', #links changed to work with existing caches, just take all links
|
||||||
'<a.*?>(.*?)</a>',
|
'<a.*?>(.*?)</a>',
|
||||||
],
|
],
|
||||||
|
@ -653,6 +654,8 @@ class Imdb(SiteParser):
|
||||||
'roles': c[1],
|
'roles': c[1],
|
||||||
'deparment': department
|
'deparment': department
|
||||||
})
|
})
|
||||||
|
if not self['credits']:
|
||||||
|
del self['credits']
|
||||||
|
|
||||||
class ImdbCombined(Imdb):
|
class ImdbCombined(Imdb):
|
||||||
def __init__(self, id, timeout=-1):
|
def __init__(self, id, timeout=-1):
|
||||||
|
|
Loading…
Reference in a new issue