Skip to content
This repository has been archived by the owner on Aug 6, 2019. It is now read-only.

Commit

Permalink
Map cancel in DialogSelect to dialog.close
Browse files Browse the repository at this point in the history
  • Loading branch information
enen92 committed Jul 22, 2015
1 parent 982bef7 commit 36bd473
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 1 deletion.
7 changes: 7 additions & 0 deletions resources/lib/automaticd.py
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,14 @@ def automatic_downloader(mode):

if not already:
xbmc.sleep(3000)
before = const.Constr().return_array()
logowindow.start(match,"False","False",selected_channel=channel)
now = const.Constr().return_array()
if before == now:
if channel not in failed_log:
failed_log.append(channel)
del before
del now
else:
if channel not in failed_log:
failed_log.append(channel)
Expand Down
2 changes: 1 addition & 1 deletion resources/lib/downloader.py
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ def dialogdown(self,name,numblocks, blocksize, filesize, dp, start_time):
total = float(filesize) / (1024 * 1024)
mbs = '%.02f MB %s %.02f MB' % (currently_downloaded,'downloaded', total)
e = ' (%.0f Kb/s) ' % kbps_speed
tempo = 'Tempo:' + ' %02d:%02d' % divmod(eta, 60)
tempo = 'Time left:' + ' %02d:%02d' % divmod(eta, 60)
dp.update(percent,name +' - '+ mbs + e,tempo)
except:
percent = 100
Expand Down
4 changes: 4 additions & 0 deletions resources/lib/logowindow.py
Original file line number Diff line number Diff line change
Expand Up @@ -141,3 +141,7 @@ def onClick(self,controlId):
const.Constr().add_to_array(logo)
else:
mensagemok('TVLogo Downloader',"You haven't selected any channels")

elif controlId == 99:
self.close()
return

0 comments on commit 36bd473

Please sign in to comment.