• Login
  • Register
  • Login Register
    Login
    Username/Email:
    Password:
    Or login with a social network below
  • Forum
  • Website
  • GitHub
  • Status
  • Translation
  • Features
  • Team
  • Rules
  • Help
  • Feeds
User Links
  • Login
  • Register
  • Login Register
    Login
    Username/Email:
    Password:
    Or login with a social network below

    Useful Links Forum Website GitHub Status Translation Features Team Rules Help Feeds
    Jellyfin Forum Support Guides, Walkthroughs & Tutorials Python script to migrate watched status and watched progress between servers

     
    • 0 Vote(s) - 0 Average

    Python script to migrate watched status and watched progress between servers

    https://github.com/Ozymandyaz/JellySync
    Ozymandyaz
    Offline

    Junior Member

    Posts: 5
    Threads: 2
    Joined: 2023 Jun
    Reputation: 1
    #5
    2025-12-10, 04:45 PM
    (2025-11-17, 04:13 AM)Essjay Wrote: 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.

    Its entirely possible that From File is buggy, I did not test it much as I've always transfer between live servers. I'll take a look when I have some time.
    « Next Oldest | Next Newest »

    Users browsing this thread: 1 Guest(s)


    Messages In This Thread
    Python script to migrate watched status and watched progress between servers - by Ozymandyaz - 2025-09-28, 10:57 PM
    RE: Python script to migrate watched status and watched progress between servers - by Essjay - 2025-11-17, 04:13 AM
    RE: Python script to migrate watched status and watched progress between servers - by Ozymandyaz - 2025-12-10, 04:45 PM
    RE: Python script to migrate watched status and watched progress between servers - by KodiUser1138 - 2025-11-20, 12:58 PM
    RE: Python script to migrate watched status and watched progress between servers - by Nirces - 2025-11-30, 08:40 PM

    • View a Printable Version
    • Subscribe to this thread
    Forum Jump:

    Home · Team · Help · Contact
    © Designed by D&D - Powered by MyBB
    L


    Jellyfin

    The Free Software Media System

    Linear Mode
    Threaded Mode