Merge remote-tracking branch 'origin/master'
This commit is contained in:
+2
-2
@@ -13,7 +13,7 @@
|
|||||||
"cinetecadibologna": "http://cinestore.cinetecadibologna.it",
|
"cinetecadibologna": "http://cinestore.cinetecadibologna.it",
|
||||||
"discoveryplus": "https://www.discoveryplus.com",
|
"discoveryplus": "https://www.discoveryplus.com",
|
||||||
"dreamsub": "https://www.animeworld.tv",
|
"dreamsub": "https://www.animeworld.tv",
|
||||||
"eurostreaming": "https://eurostreaming.today",
|
"eurostreaming": "https://eurostreaming.tattoo",
|
||||||
"eurostreaming_actor": "https://eurostreaming.care",
|
"eurostreaming_actor": "https://eurostreaming.care",
|
||||||
"filmstreaming": "https://filmstreaming.sbs",
|
"filmstreaming": "https://filmstreaming.sbs",
|
||||||
"guardaseriecam": "https://guardaserie.baby",
|
"guardaseriecam": "https://guardaserie.baby",
|
||||||
@@ -28,7 +28,7 @@
|
|||||||
"plutotv": "https://pluto.tv",
|
"plutotv": "https://pluto.tv",
|
||||||
"raiplay": "https://www.raiplay.it",
|
"raiplay": "https://www.raiplay.it",
|
||||||
"serietvu": "https://www.serietvu.live",
|
"serietvu": "https://www.serietvu.live",
|
||||||
"streamingcommunity": "https://streamingcommunity.download",
|
"streamingcommunity": "https://streamingcommunity.codes",
|
||||||
"streamingita": "https://www.streamingita.best",
|
"streamingita": "https://www.streamingita.best",
|
||||||
"tantifilm": "https://www.tantifilm.energy",
|
"tantifilm": "https://www.tantifilm.energy",
|
||||||
"toonitalia": "https://toonitalia.xyz"
|
"toonitalia": "https://toonitalia.xyz"
|
||||||
|
|||||||
@@ -1619,48 +1619,16 @@ def play_torrent(item, xlistitem, mediaurl):
|
|||||||
xbmc.executebuiltin("PlayMedia(" + torrent_options[selection][1] % mediaurl + ")")
|
xbmc.executebuiltin("PlayMedia(" + torrent_options[selection][1] % mediaurl + ")")
|
||||||
|
|
||||||
def resume_playback(played_time):
|
def resume_playback(played_time):
|
||||||
class ResumePlayback(xbmcgui.WindowXMLDialog):
|
|
||||||
Close = False
|
|
||||||
Resume = False
|
|
||||||
|
|
||||||
def __init__(self, *args, **kwargs):
|
|
||||||
self.action_exitkeys_id = [92, 10]
|
|
||||||
self.progress_control = None
|
|
||||||
played_time = kwargs.get('played_time')
|
|
||||||
m, s = divmod(played_time, 60)
|
|
||||||
h, m = divmod(m, 60)
|
|
||||||
self.setProperty("time", '%02d:%02d:%02d' % (h, m, s))
|
|
||||||
|
|
||||||
def set_values(self, value):
|
|
||||||
self.Resume = value
|
|
||||||
self.Close = True
|
|
||||||
|
|
||||||
def is_close(self):
|
|
||||||
return self.Close
|
|
||||||
|
|
||||||
def onClick(self, controlId):
|
|
||||||
if controlId == 3012: # Resume
|
|
||||||
self.set_values(True)
|
|
||||||
self.close()
|
|
||||||
elif controlId == 3013: # Cancel
|
|
||||||
self.set_values(False)
|
|
||||||
self.close()
|
|
||||||
|
|
||||||
def onAction(self, action):
|
|
||||||
if action in self.action_exitkeys_id:
|
|
||||||
self.set_values(False)
|
|
||||||
self.close()
|
|
||||||
|
|
||||||
if played_time and played_time > 30:
|
if played_time and played_time > 30:
|
||||||
Dialog = ResumePlayback('ResumePlayback.xml', config.get_runtime_path(), played_time=played_time)
|
m, s = divmod(played_time, 60)
|
||||||
Dialog.show()
|
h, m = divmod(m, 60)
|
||||||
t = 0
|
idx = xbmcgui.Dialog().contextmenu(
|
||||||
while not Dialog.is_close() and t < 100:
|
[
|
||||||
t += 1
|
xbmc.getLocalizedString(12022).format('%02d:%02d:%02d' % (h, m, s)),
|
||||||
xbmc.sleep(100)
|
xbmc.getLocalizedString(12021)
|
||||||
if not Dialog.Resume: played_time = 0
|
])
|
||||||
|
if idx: played_time = 0
|
||||||
else: played_time = 0
|
else: played_time = 0
|
||||||
xbmc.sleep(300)
|
|
||||||
return played_time
|
return played_time
|
||||||
|
|
||||||
##### INPUTSTREM #####
|
##### INPUTSTREM #####
|
||||||
|
|||||||
Reference in New Issue
Block a user