Trakt.or - Plex TV-Show Library tracker

Proelior

Blitz 3rd Class
15
3
Am getting the same sort of errors as above. Have done a git pull from inside the container.

DEBUG:urllib3.connectionpool:https://api.trakt.tv:443 "GET /search/show?query=Knights+of+Sidonia&year=2014&extended=full HTTP/1.1" 200 None
DEBUG:urllib3.connectionpool:https://api.trakt.tv:443 "GET /shows/75828/seasons?extended=full HTTP/1.1" 200 None
DEBUG:urllib3.connectionpool:https://api.trakt.tv:443 "GET /shows/75828/seasons/1?extended=full HTTP/1.1" 200 None
DEBUG:urllib3.connectionpool:https://api.trakt.tv:443 "GET /shows/75828/seasons/2?extended=full HTTP/1.1" 200 None
DEBUG:urllib3.connectionpool:https://api.trakt.tv:443 "GET /shows/75828/seasons/3?extended=full HTTP/1.1" 200 None
Traceback (most recent call last):
File "/opt/trakt-plex-tracker/trakt-or.py", line 314, in <module>
result = calculate_owning(data)
File "/opt/trakt-plex-tracker/trakt-or.py", line 255, in calculate_owning
show['owning_percent'] = 0
TypeError: 'NoneType' object does not support item assignment

Web interface always shows :
Ups! shows.json not ready (yet).. Have you updated the config.ini? Please wait a moment and refresh the page.
Config is updated with correct ID and Secret.
 
  • Like
Reactions: H1f0x

H1f0x

Administrator
Original poster
Project Manager
Donor
105
51
hmm.. damn i thought i caught all issues.. i will look into this and update you as soon as possible!
 

H1f0x

Administrator
Original poster
Project Manager
Donor
105
51
Is it possible for you to modify the script maybe? i looked into the code.. but i don't know whats the porblem exactly, i was never able to reproduce this issue before. Can you modify the following:

Python:
# Starting Line 217 in trakt-or.py

def calculate_owning(data):
    for show in data:
        show_owning_true = 0
        show_owning_false = 0
        
# Change it to:
def calculate_owning(data):
    print(data)
    for show in data:
        print(show['title'])
        show_owning_true = 0
        show_owning_false = 0
And send me the output "print(data)" and the last "print(show['title'])" before it crashes?
 

H1f0x

Administrator
Original poster
Project Manager
Donor
105
51
additionally i pushed some modifications to the git. maybe they helped.. :(
 

Create an account or login to comment

You must be a member in order to leave a comment

Create account

Create an account on our community. It's easy!

Log in

Already have an account? Log in here.

Similar threads