amg without 1:
This commit is contained in:
parent
4782b4174a
commit
31892ec950
1 changed files with 3 additions and 1 deletions
|
@ -29,7 +29,7 @@ def getUrlByImdb(imdbId):
|
||||||
return getUrlByImdbId(imdbId)
|
return getUrlByImdbId(imdbId)
|
||||||
|
|
||||||
def getUrlByAllmovieId(allmovieId):
|
def getUrlByAllmovieId(allmovieId):
|
||||||
query = '"amg_id = %s"'% allmovieId
|
query = '"amg_id = 1:%s"'% allmovieId
|
||||||
result = find(query)
|
result = find(query)
|
||||||
if result:
|
if result:
|
||||||
url = result[0][1]
|
url = result[0][1]
|
||||||
|
@ -53,6 +53,8 @@ def getMovieData(wikipediaUrl):
|
||||||
key = d[0].strip()
|
key = d[0].strip()
|
||||||
value = d[1].strip()
|
value = d[1].strip()
|
||||||
filmbox[key] = value
|
filmbox[key] = value
|
||||||
|
if 'amgId' in filmbox:
|
||||||
|
filmbox['amgId'] = filmbox['amgId'].split('1:')[-1]
|
||||||
return filmbox
|
return filmbox
|
||||||
|
|
||||||
def getImageUrl(name):
|
def getImageUrl(name):
|
||||||
|
|
Loading…
Reference in a new issue