Skip to content

Synchronization between KODI en TVShow keeps failing #57

@lwolfs

Description

@lwolfs

Hello,
Started with TVShow, and would like to sync with my KODI on raspberry. ( KODI is version 17.6 on LibreElec 8.2.1)
When I start syncing from KODI>TVShow I see the following error: "check the log for more information."
Syncing aborts. I did some debugging to find out where the error comes from, and this is what I found:

14:09:09.309 T:1858077600 ERROR: EXCEPTION Thrown (PythonToCppException) : -->Python callback/script returned the following error<--
- NOTE: IGNORING THIS CAN LEAD TO MEMORY LEAKS!
Error Type: <type 'exceptions.ValueError'>
Error Contents: invalid literal for int() with base 10: ''
Traceback (most recent call last):
File "/storage/.kodi/addons/script.tvshowtime/program.py", line 367, in
start()
File "/storage/.kodi/addons/script.tvshowtime/program.py", line 66, in start
first_step()
File "/storage/.kodi/addons/script.tvshowtime/program.py", line 89, in first_step
scan(which_way)
File "/storage/.kodi/addons/script.tvshowtime/program.py", line 149, in scan
'show_id': int(tvshowList['show_id']),
ValueError: invalid literal for int() with base 10: ''
-->End of Python script error report<--
14:09:09.418 T:1858077600 INFO: Python script stopped

Code from the Python script:

        if tvshowList['seen'] == 1:
            showsSeen.append({
                'show_id': int(tvshowList['show_id']),
                'season': tvshowList['season'],
                'episode': tvshowList['episode']
            })
        elif tvshowList['seen'] == 0 and tvshowList['season'] == 1 and tvshowList['episode'] == 1:
            showsNotSeen.append({
                'show_id': int(tvshowList['show_id'])
            })

Can you help in solving this issue ?

Thx !

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions