mirror of
https://github.com/jellyfin/jellyfin-kodi.git
synced 2025-07-20 05:18:58 +00:00
refactor to plugin.video.emby
This commit is contained in:
parent
b0ef58458e
commit
7d49a33b21
19 changed files with 104 additions and 104 deletions
|
@ -24,23 +24,23 @@ class WebSocketThread(threading.Thread):
|
|||
keepRunning = True
|
||||
|
||||
def __init__(self, *args):
|
||||
addonSettings = xbmcaddon.Addon(id='plugin.video.mb3sync')
|
||||
addonSettings = xbmcaddon.Addon(id='plugin.video.emby')
|
||||
level = addonSettings.getSetting('logLevel')
|
||||
self.logLevel = 0
|
||||
if(level != None):
|
||||
self.logLevel = int(level)
|
||||
|
||||
xbmc.log("MB3SYNC WebSocketThread -> Log Level:" + str(self.logLevel))
|
||||
xbmc.log("emby WebSocketThread -> Log Level:" + str(self.logLevel))
|
||||
|
||||
threading.Thread.__init__(self, *args)
|
||||
|
||||
def logMsg(self, msg, level = 1):
|
||||
if(self.logLevel >= level):
|
||||
try:
|
||||
xbmc.log("MB3SYNC WebSocketThread -> " + str(msg))
|
||||
xbmc.log("emby WebSocketThread -> " + str(msg))
|
||||
except UnicodeEncodeError:
|
||||
try:
|
||||
xbmc.log("MB3SYNC WebSocketThread -> " + str(msg.encode('utf-8')))
|
||||
xbmc.log("emby WebSocketThread -> " + str(msg.encode('utf-8')))
|
||||
except: pass
|
||||
|
||||
'''
|
||||
|
@ -191,7 +191,7 @@ class WebSocketThread(threading.Thread):
|
|||
messageData = {}
|
||||
messageData["MessageType"] = "Identity"
|
||||
|
||||
addonSettings = xbmcaddon.Addon(id='plugin.video.mb3sync')
|
||||
addonSettings = xbmcaddon.Addon(id='plugin.video.emby')
|
||||
deviceName = addonSettings.getSetting('deviceName')
|
||||
deviceName = deviceName.replace("\"", "_")
|
||||
|
||||
|
@ -225,7 +225,7 @@ class WebSocketThread(threading.Thread):
|
|||
|
||||
def run(self):
|
||||
|
||||
addonSettings = xbmcaddon.Addon(id='plugin.video.mb3sync')
|
||||
addonSettings = xbmcaddon.Addon(id='plugin.video.emby')
|
||||
mb3Host = addonSettings.getSetting('ipaddress')
|
||||
mb3Port = addonSettings.getSetting('port')
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue