tmdb fix
parent
856053197c
commit
5abd329138
3
Core.py
3
Core.py
|
@ -740,7 +740,8 @@ class Core:
|
||||||
showMessage('','')
|
showMessage('','')
|
||||||
xbmc.sleep(1000)
|
xbmc.sleep(1000)
|
||||||
showMessage('','')
|
showMessage('','')
|
||||||
|
dialog=xbmcgui.Dialog()
|
||||||
|
x=dialog.ok('Done!','Bases are up to date!')
|
||||||
else:
|
else:
|
||||||
self.drawItem('[B]%s[/B]' % "Download All", 'full_download', json.dumps({'provider': "all"}), isFolder=True)
|
self.drawItem('[B]%s[/B]' % "Download All", 'full_download', json.dumps({'provider': "all"}), isFolder=True)
|
||||||
for cat in self.Contenters.get_activedic().keys():
|
for cat in self.Contenters.get_activedic().keys():
|
||||||
|
|
|
@ -345,8 +345,12 @@ def get_best(Data, search, year):
|
||||||
for s in shows:
|
for s in shows:
|
||||||
i = int(s['itemIndex'])
|
i = int(s['itemIndex'])
|
||||||
show = Data[i][1]
|
show = Data[i][1]
|
||||||
|
if isinstance(show.get('release_date'), str):
|
||||||
|
release_date=str(show.get('release_date').split('-')[0])
|
||||||
|
else:
|
||||||
|
release_date='0'
|
||||||
print (' ... %d: id="%s", name="%s", year="%s", score="%d".' %
|
print (' ... %d: id="%s", name="%s", year="%s", score="%d".' %
|
||||||
(i, str(show['id']), show.get('title').encode('utf-8'), str(show.get('release_date').split('-')[0]),
|
(i, str(show['id']), show.get('title').encode('utf-8'), release_date,
|
||||||
s['rate']))
|
s['rate']))
|
||||||
if shows:
|
if shows:
|
||||||
return shows[0]
|
return shows[0]
|
Loading…
Reference in New Issue