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