mirror of
https://github.com/jellyfin/jellyfin-kodi.git
synced 2024-11-10 04:06:11 +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]
|
||||||
|
try:
|
||||||
PROCESS_HANDLE = int(sys.argv[1])
|
PROCESS_HANDLE = int(sys.argv[1])
|
||||||
QUERY_STRING = sys.argv[2]
|
QUERY_STRING = sys.argv[2]
|
||||||
|
except IndexError:
|
||||||
|
pass
|
||||||
|
|
||||||
#################################################################################################
|
#################################################################################################
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue