lukearran / TvTimeToTrakt

A Python script to import TV Time data into Trakt.TV
MIT License
147 stars 17 forks source link

Update Trakt dependency from trakt==3.4.0 to pytrakt~=3.4.30 #43

Closed Tibimac closed 8 months ago

Tibimac commented 8 months ago

Resolve issue #42

seaque commented 8 months ago

Upon doing this, you might get

[ ERROR] :: Got unknown error 'TVSeason' object has no attribute 'number', while processing

which can easily be fixed by changing seasons[0].number to seasons[0].season

https://github.com/lukearran/TvTimeToTrakt/blob/26cd599e4574f538818197deb109df985285a476/searcher.py#L123

Tibimac commented 8 months ago

Upon doing this, you might get

[ ERROR] :: Got unknown error 'TVSeason' object has no attribute 'number', while processing

which can easily be fixed by changing seasons[0].number to seasons[0].season

https://github.com/lukearran/TvTimeToTrakt/blob/26cd599e4574f538818197deb109df985285a476/searcher.py#L123

Well spotted @seaque! I'll update the script consequently.