stigger / trakt-for-appletv

Trakt.tv scrobbler for Apple TV
47 stars 7 forks source link

IndexError: list index out of range #17

Closed wolverine30008 closed 4 years ago

wolverine30008 commented 4 years ago

Hi Stigger,

Trakt scrobbling still not working for iTunes tv shows app or apple TV app for shows in my library, I have also updated the zip file with the latest version for TVOS 14 and still I am receiving this error IndexError: list index out of range. Thanks for the work on updating the compatibility to TVOS 14. Please help resolve this issue.

File"/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/threading.py", line 917, in _bootstrap_inner self.run() File"/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/threading.py", line 865, in run self._target(*self._args, **self._kwargs) File "/Users/toddrock/Public/trakt-for-appletv-master/scrobbling.py", line 105, in Thread(target=lambda: inner()).start() File "/Users/toddrock/Public/trakt-for-appletv-master/scrobbling.py", line 100, in inner handler(operation, progress) File "/Users/toddrock/Public/trakt-for-appletv-master/scrobbling.py", line 156, in handle_tvshows info = self.get_itunes_title(self.now_playing_metadata.contentIdentifier) File "/Users/toddrock/Public/trakt-for-appletv-master/scrobbling.py", line 187, in get_itunes_title .decode('utf-8'))['results'][0] IndexError: list index out of range

stigger commented 4 years ago

Fixed in bee61bcaa5a0b8f540df444044ee8c5c3f0eafd1