parse default sort and imdb episodes
This commit is contained in:
parent
efa43f8437
commit
af15fd01a0
1 changed files with 4 additions and 0 deletions
|
@ -56,12 +56,16 @@ def getMovieData(wikipediaUrl):
|
||||||
filmbox[key] = value
|
filmbox[key] = value
|
||||||
if 'imdb title' in data:
|
if 'imdb title' in data:
|
||||||
filmbox['imdb_id'] = findRe(data, 'imdb title\|.*?(\d*?)\|')
|
filmbox['imdb_id'] = findRe(data, 'imdb title\|.*?(\d*?)\|')
|
||||||
|
else if 'imdb episode' in data:
|
||||||
|
filmbox['imdb_id'] = findRe(data, 'imdb episode\|.*?(\d*?)\|')
|
||||||
if 'Amg movie' in data:
|
if 'Amg movie' in data:
|
||||||
filmbox['amg_id'] = findRe(data, 'Amg movie\|.*?(\d*?)\|')
|
filmbox['amg_id'] = findRe(data, 'Amg movie\|.*?(\d*?)\|')
|
||||||
if 'rotten-tomatoes' in data:
|
if 'rotten-tomatoes' in data:
|
||||||
filmbox['rottentomatoes_id'] = findRe(data, 'rotten-tomatoes\|id\=(.*?)\|')
|
filmbox['rottentomatoes_id'] = findRe(data, 'rotten-tomatoes\|id\=(.*?)\|')
|
||||||
if not filmbox['rottentomatoes_id']:
|
if not filmbox['rottentomatoes_id']:
|
||||||
filmbox['rottentomatoes_id'] = findRe(data, 'rotten-tomatoes\|(.*?)\|')
|
filmbox['rottentomatoes_id'] = findRe(data, 'rotten-tomatoes\|(.*?)\|')
|
||||||
|
if 'DEFAULTSORT' in data:
|
||||||
|
filmbox['title_sort'] = findRe(data, '''\{\{DEFAULTSORT:(.*?)\}\}''')
|
||||||
return filmbox
|
return filmbox
|
||||||
|
|
||||||
def getImageUrl(name):
|
def getImageUrl(name):
|
||||||
|
|
Loading…
Reference in a new issue