remove debug, remove 1: from amg id
This commit is contained in:
parent
8f2a2ee5bd
commit
eeb9b859a2
1 changed files with 3 additions and 4 deletions
|
@ -39,7 +39,6 @@ def getUrlByAllmovieId(allmovieId):
|
|||
def getWikiData(wikipediaUrl):
|
||||
url = wikipediaUrl.replace('wikipedia.org/wiki/', 'wikipedia.org/w/index.php?title=')
|
||||
url = "%s&action=raw" % url
|
||||
print url
|
||||
data = getUrlUnicode(url)
|
||||
return data
|
||||
|
||||
|
@ -64,8 +63,8 @@ def getMovieData(wikipediaUrl):
|
|||
filmbox['imdb_id'] = findRe(data, 'imdb episode\|.*?(\d*?)\|')
|
||||
if 'Amg movie' in data:
|
||||
filmbox['amg_id'] = findRe(data, 'Amg movie\|.*?(\d*?)\|')
|
||||
if filmbox['amg_id'].startswith('1:'):
|
||||
filmbox['amg_id'] = filmbox['amg_id'][2:]
|
||||
if filmbox['amg_id'] and filmbox['amg_id'].startswith('1:'):
|
||||
filmbox['amg_id'] = filmbox['amg_id'][2:]
|
||||
|
||||
if 'rotten-tomatoes' in data:
|
||||
filmbox['rottentomatoes_id'] = findRe(data, 'rotten-tomatoes\|id\=(.*?)\|')
|
||||
|
|
Loading…
Reference in a new issue