From ab80b4e8cea64cc339aac7ea5a09391c36e200d6 Mon Sep 17 00:00:00 2001 From: marco <10120390+mac12m99@users.noreply.github.com> Date: Sat, 12 Dec 2020 18:45:21 +0100 Subject: [PATCH] piccoli fix --- platformcode/xbmc_videolibrary.py | 2 ++ servers/vupplayer.py | 2 +- specials/globalsearch.py | 18 +++++++++--------- 3 files changed, 12 insertions(+), 10 deletions(-) diff --git a/platformcode/xbmc_videolibrary.py b/platformcode/xbmc_videolibrary.py index 1958d00e..92ec039e 100644 --- a/platformcode/xbmc_videolibrary.py +++ b/platformcode/xbmc_videolibrary.py @@ -23,6 +23,8 @@ from xml.dom import minidom def mark_auto_as_watched(item): def mark_as_watched_subThread(item): logger.debug() + actual_time = 0 + total_time = 0 # logger.debug("item:\n" + item.tostring('\n')) if item.options['continue']: item.played_time = platformtools.resume_playback(platformtools.get_played_time(item)) diff --git a/servers/vupplayer.py b/servers/vupplayer.py index b1eaf15e..6df91c7f 100644 --- a/servers/vupplayer.py +++ b/servers/vupplayer.py @@ -10,7 +10,7 @@ def test_video_exists(page_url): global data data = page.data if page.code == 404 or 'File is no longer available' in data: - return False, config.get_localized_string(70449) + return False, config.get_localized_string(70449) % "VUP" return True, "" diff --git a/specials/globalsearch.py b/specials/globalsearch.py index a30ec255..0d114ce9 100644 --- a/specials/globalsearch.py +++ b/specials/globalsearch.py @@ -710,12 +710,12 @@ class SearchWindow(xbmcgui.WindowXMLDialog): if index > 0: xbmc.executebuiltin(context_commands[index]) -def play(self, server): - server.globalsearch = True - run(server) - while not platformtools.is_playing(): - xbmc.sleep(500) - self.close() - while platformtools.is_playing(): - xbmc.sleep(500) - self.doModal() \ No newline at end of file + def play(self, server): + server.globalsearch = True + run(server) + while not platformtools.is_playing(): + xbmc.sleep(500) + self.close() + while platformtools.is_playing(): + xbmc.sleep(500) + self.doModal()