remove unused imports and old code

This commit is contained in:
Shaun
2018-01-04 15:32:11 +11:00
parent e814dbddba
commit 69b388e2d3
2 changed files with 2 additions and 12 deletions

View File

@@ -1,7 +1,7 @@
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<addon id="plugin.video.embycon"
name="EmbyCon"
version="1.4.21"
version="1.4.22"
provider-name="Team B">
<requires>
<import addon="xbmc.python" version="2.24.0"/>

View File

@@ -10,15 +10,12 @@ import xbmc
import xbmcaddon
import xbmcgui
from resources.lib.error import catch_except
from resources.lib.downloadutils import DownloadUtils
from resources.lib.simple_logging import SimpleLogging
from resources.lib.play_utils import Service, PlaybackService, sendProgress
from resources.lib.kodi_utils import HomeWindow
from resources.lib.translation import i18n
from resources.lib.widgets import checkForNewContent
from resources.lib.websocket_client import WebSocketClient
from resources.lib.item_functions import get_next_episode
# clear user and token when logging in
home_window = HomeWindow()
@@ -44,7 +41,7 @@ last_progress_update = time.time()
last_content_check = time.time()
websocket_client = WebSocketClient()
# start the WbSocket Client running
# start the WebSocket Client running
settings = xbmcaddon.Addon(id='plugin.video.embycon')
remote_control = settings.getSetting('remoteControl') == "true"
if remote_control:
@@ -87,13 +84,6 @@ while not xbmc.abortRequested:
last_progress_update = time.time()
sendProgress(monitor)
else:
# if we have a play item them trigger playback
#play_data = home_window.getProperty("play_item_message")
#if play_data:
# home_window.clearProperty("play_item_message")
# play_info = json.loads(play_data)
# playFile(play_info)
# if not playing every 60 seonds check for new widget content
if (time.time() - last_content_check) > 60:
last_content_check = time.time()