mirror of
https://github.com/jellyfin/jellyfin-kodi.git
synced 2025-05-08 10:25:08 +00:00
New hybrid method
This commit is contained in:
parent
7f5084c62e
commit
ace50b34dc
279 changed files with 39526 additions and 19994 deletions
7
resources/lib/emby/helpers/__init__.py
Normal file
7
resources/lib/emby/helpers/__init__.py
Normal file
|
@ -0,0 +1,7 @@
|
|||
|
||||
def has_attribute(obj, name):
|
||||
try:
|
||||
object.__getattribute__(obj, name)
|
||||
return True
|
||||
except AttributeError:
|
||||
return False
|
15
resources/lib/emby/helpers/utils.py
Normal file
15
resources/lib/emby/helpers/utils.py
Normal file
|
@ -0,0 +1,15 @@
|
|||
# -*- coding: utf-8 -*-
|
||||
|
||||
#################################################################################################
|
||||
|
||||
import logging
|
||||
from uuid import uuid4
|
||||
|
||||
#################################################################################################
|
||||
|
||||
LOG = logging.getLogger('Emby.'+__name__)
|
||||
|
||||
#################################################################################################
|
||||
|
||||
def generate_client_id():
|
||||
return str("%012X" % uuid4())
|
Loading…
Add table
Add a link
Reference in a new issue