pull/1/head
DiMartinoXBMC 2015-06-03 22:09:53 +03:00
parent 856053197c
commit 5abd329138
2 changed files with 7 additions and 2 deletions

View File

@ -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():

View File

@ -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]