mirror of
https://github.com/jellyfin/jellyfin-kodi.git
synced 2024-12-25 02:06:09 +00:00
sys.argv[1:] is not available in all addon threads
This commit is contained in:
parent
3f63e7c213
commit
0d4962ad83
1 changed files with 5 additions and 2 deletions
|
@ -23,8 +23,11 @@ from helper import LazyLogger
|
||||||
LOG = LazyLogger(__name__)
|
LOG = LazyLogger(__name__)
|
||||||
|
|
||||||
ADDON_BASE_URL = sys.argv[0]
|
ADDON_BASE_URL = sys.argv[0]
|
||||||
PROCESS_HANDLE = int(sys.argv[1])
|
try:
|
||||||
QUERY_STRING = sys.argv[2]
|
PROCESS_HANDLE = int(sys.argv[1])
|
||||||
|
QUERY_STRING = sys.argv[2]
|
||||||
|
except IndexError:
|
||||||
|
pass
|
||||||
|
|
||||||
#################################################################################################
|
#################################################################################################
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue