mirror of
https://github.com/jellyfin/jellyfin-kodi.git
synced 2025-11-10 18:36:33 +00:00
Remove jellyfin/helper folder
This commit is contained in:
parent
b64ee60b3d
commit
638ffbc4fd
6 changed files with 9 additions and 25 deletions
|
|
@ -157,7 +157,6 @@ class Connect(object):
|
||||||
|
|
||||||
state = state or self.connect_manager.connect({'enableAutoLogin': False})
|
state = state or self.connect_manager.connect({'enableAutoLogin': False})
|
||||||
user = {}
|
user = {}
|
||||||
LOG.info("XML PATH: "+str(XML_PATH))
|
|
||||||
dialog = ServerConnect("script-jellyfin-connect-server.xml", *XML_PATH)
|
dialog = ServerConnect("script-jellyfin-connect-server.xml", *XML_PATH)
|
||||||
dialog.set_args(**{
|
dialog.set_args(**{
|
||||||
'connect_manager': self.connect_manager,
|
'connect_manager': self.connect_manager,
|
||||||
|
|
|
||||||
|
|
@ -17,6 +17,7 @@ from utils import compare_version
|
||||||
from utils import unzip
|
from utils import unzip
|
||||||
from utils import create_id
|
from utils import create_id
|
||||||
from utils import convert_to_local as Local
|
from utils import convert_to_local as Local
|
||||||
|
from utils import has_attribute
|
||||||
|
|
||||||
from wrapper import progress
|
from wrapper import progress
|
||||||
from wrapper import catch
|
from wrapper import catch
|
||||||
|
|
|
||||||
|
|
@ -480,3 +480,10 @@ def convert_to_local(date):
|
||||||
LOG.exception(error)
|
LOG.exception(error)
|
||||||
|
|
||||||
return str(date)
|
return str(date)
|
||||||
|
|
||||||
|
def has_attribute(obj, name):
|
||||||
|
try:
|
||||||
|
object.__getattribute__(obj, name)
|
||||||
|
return True
|
||||||
|
except AttributeError:
|
||||||
|
return False
|
||||||
|
|
|
||||||
|
|
@ -5,7 +5,7 @@
|
||||||
import logging
|
import logging
|
||||||
|
|
||||||
from client import JellyfinClient
|
from client import JellyfinClient
|
||||||
from helpers import has_attribute
|
from helper import has_attribute
|
||||||
|
|
||||||
#################################################################################################
|
#################################################################################################
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -1,7 +0,0 @@
|
||||||
|
|
||||||
def has_attribute(obj, name):
|
|
||||||
try:
|
|
||||||
object.__getattribute__(obj, name)
|
|
||||||
return True
|
|
||||||
except AttributeError:
|
|
||||||
return False
|
|
||||||
|
|
@ -1,16 +0,0 @@
|
||||||
# -*- coding: utf-8 -*-
|
|
||||||
|
|
||||||
#################################################################################################
|
|
||||||
|
|
||||||
import logging
|
|
||||||
from uuid import uuid4
|
|
||||||
|
|
||||||
#################################################################################################
|
|
||||||
|
|
||||||
LOG = logging.getLogger('JELLYFIN.' + __name__)
|
|
||||||
|
|
||||||
#################################################################################################
|
|
||||||
|
|
||||||
|
|
||||||
def generate_client_id():
|
|
||||||
return str("%012X" % uuid4())
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue