5 hours ago
Hi @Ozymandyaz, Thanks for updating the original script. I really like that i can filter which user I want to sync. I keep getting a json.decoder.JSONDecodeError when i run the code. I also got the same error with the original Emby2Jelly python file, but with that one, i got far enough to be able to create the initial --tofile. It was the --fromfile that produced the error. I also tried without any file and it also failed. I double checked the jellysync.ini file and it looks correct. I tried both local IP and reverse proxy URL. Same error. Full error below.
Traceback (most recent call last):
File "C:\Users\Essjay\Documents\Emby2Jelly\jellysync.py", line 535, in <module>
source(selectedUsers)
~~~~~~^^^^^^^^^^^^^^^
File "C:\Users\Essjay\Documents\Emby2Jelly\jellysync.py", line 204, in source
get_watched_status()
~~~~~~~~~~~~~~~~~~^^
File "C:\Users\Essjay\Documents\Emby2Jelly\jellysync.py", line 181, in get_watched_status
itemDto = json.loads(
response2.content.decode("utf-8")
)
File "C:\Users\Essjay\AppData\Local\Programs\Python\Python314\Lib\json\__init__.py", line 346, in loads
return _default_decoder.decode(s)
~~~~~~~~~~~~~~~~~~~~~~~^^^
File "C:\Users\Essjay\AppData\Local\Programs\Python\Python314\Lib\json\decoder.py", line 345, in decode
obj, end = self.raw_decode(s, idx=_w(s, 0).end())
~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\Essjay\AppData\Local\Programs\Python\Python314\Lib\json\decoder.py", line 363, in raw_decode
raise JSONDecodeError("Expecting value", s, err.value) from None
json.decoder.JSONDecodeError: Expecting value: line 1 column 1 (char 0)
Let me know if you know what might be causing this.
Traceback (most recent call last):
File "C:\Users\Essjay\Documents\Emby2Jelly\jellysync.py", line 535, in <module>
source(selectedUsers)
~~~~~~^^^^^^^^^^^^^^^
File "C:\Users\Essjay\Documents\Emby2Jelly\jellysync.py", line 204, in source
get_watched_status()
~~~~~~~~~~~~~~~~~~^^
File "C:\Users\Essjay\Documents\Emby2Jelly\jellysync.py", line 181, in get_watched_status
itemDto = json.loads(
response2.content.decode("utf-8")
)
File "C:\Users\Essjay\AppData\Local\Programs\Python\Python314\Lib\json\__init__.py", line 346, in loads
return _default_decoder.decode(s)
~~~~~~~~~~~~~~~~~~~~~~~^^^
File "C:\Users\Essjay\AppData\Local\Programs\Python\Python314\Lib\json\decoder.py", line 345, in decode
obj, end = self.raw_decode(s, idx=_w(s, 0).end())
~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\Essjay\AppData\Local\Programs\Python\Python314\Lib\json\decoder.py", line 363, in raw_decode
raise JSONDecodeError("Expecting value", s, err.value) from None
json.decoder.JSONDecodeError: Expecting value: line 1 column 1 (char 0)
Let me know if you know what might be causing this.

