trakt / script.trakt

Trakt.tv movie and TV show scrobbler for Kodi
GNU General Public License v2.0
318 stars 149 forks source link

Plugin does not seem to work with PlexKodiConnect #594

Closed ghallford closed 2 years ago

ghallford commented 2 years ago

Expected Behavior

I expect the plugin to scrobble movies and tv shows and also pop-up ratings after movies are played.

Current Behavior

I have the plugin configured and I am logged into Trakt. I am a VIP user. I use Plex as my backed and PlexKodiConnect Kodi addon to play movies/tv shows via Kodi. The Trakt plugin will not scrobble or pop-up the rating dialog after a movie has been played. I have it configured to pop-up after movies. If I use the context menu and rate, the rating box pops up but the rating never makes it to Trakt.

Possible Solution

Unknown

Steps to Reproduce (for bugs)

  1. Play movie > 75%
  2. Expect rating pop-up, but never happens

Context

Your Environment

Collected debug log:

` 2022-04-08 09:00:57.128 T:448 INFO : initializing python engine. 2022-04-08 09:00:57.128 T:448 DEBUG : CPythonInvoker(390, C:\Users\htpc\AppData\Roaming\Kodi\addons\context.trakt.rate\addon.py): start processing 2022-04-08 09:00:57.154 T:448 DEBUG : -->Python Interpreter Initialized<-- 2022-04-08 09:00:57.154 T:448 DEBUG :

2022-04-08 09:00:57.154 T:448 DEBUG : CPythonInvoker(390, C:\Users\htpc\AppData\Roaming\Kodi\addons\context.trakt.rate\addon.py): the source file to load is "C:\Users\htpc\AppData\Roaming\Kodi\addons\context.trakt.rate\addon.py" 2022-04-08 09:00:57.154 T:448 DEBUG : CPythonInvoker(390, C:\Users\htpc\AppData\Roaming\Kodi\addons\context.trakt.rate\addon.py): setting the Python path to C:\Users\htpc\AppData\Roaming\Kodi\addons\context.trakt.rate;C:\Program Files (x86)\Kodi\system\python\Lib;C:\Program Files (x86)\Kodi\python3.8.zip;C:\Program Files (x86)\Kodi\system\python\DLLs;C:\Program Files (x86)\Kodi;C:\Program Files (x86)\Kodi\system\python;C:\Program Files (x86)\Kodi\system\python\lib\site-packages 2022-04-08 09:00:57.154 T:448 DEBUG : CPythonInvoker(390, C:\Users\htpc\AppData\Roaming\Kodi\addons\context.trakt.rate\addon.py): entering source directory C:\Users\htpc\AppData\Roaming\Kodi\addons\context.trakt.rate 2022-04-08 09:00:57.166 T:448 DEBUG : CPythonInvoker(390, C:\Users\htpc\AppData\Roaming\Kodi\addons\context.trakt.rate\addon.py): instantiating addon using automatically obtained id of "context.trakt.rate" dependent on version 3.0.0 of the xbmc.python api 2022-04-08 09:00:57.194 T:448 INFO : CPythonInvoker(390, C:\Users\htpc\AppData\Roaming\Kodi\addons\context.trakt.rate\addon.py): script successfully run 2022-04-08 09:00:57.194 T:448 DEBUG : CPythonInvoker::onExecutionDone(390, C:\Users\htpc\AppData\Roaming\Kodi\addons\context.trakt.rate\addon.py) 2022-04-08 09:00:57.227 T:3696 DEBUG : Thread LanguageInvoker start, auto delete: false 2022-04-08 09:00:57.227 T:3696 INFO : initializing python engine. 2022-04-08 09:00:57.227 T:3696 DEBUG : CPythonInvoker(391, C:\Users\htpc\AppData\Roaming\Kodi\addons\script.trakt\defaultscript.py): start processing 2022-04-08 09:00:57.413 T:448 INFO : Python interpreter stopped 2022-04-08 09:00:57.413 T:448 DEBUG : Thread LanguageInvoker 448 terminating 2022-04-08 09:00:57.437 T:3696 DEBUG : -->Python Interpreter Initialized<-- 2022-04-08 09:00:57.437 T:3696 DEBUG :

2022-04-08 09:00:57.437 T:3696 DEBUG : CPythonInvoker(391, C:\Users\htpc\AppData\Roaming\Kodi\addons\script.trakt\defaultscript.py): the source file to load is "C:\Users\htpc\AppData\Roaming\Kodi\addons\script.trakt\defaultscript.py" 2022-04-08 09:00:57.437 T:3696 DEBUG : CPythonInvoker(391, C:\Users\htpc\AppData\Roaming\Kodi\addons\script.trakt\defaultscript.py): setting the Python path to C:\Users\htpc\AppData\Roaming\Kodi\addons\script.trakt;C:\Users\htpc\AppData\Roaming\Kodi\addons\script.module.arrow\lib;C:\Users\htpc\AppData\Roaming\Kodi\addons\script.module.certifi\lib;C:\Users\htpc\AppData\Roaming\Kodi\addons\script.module.chardet\lib;C:\Users\htpc\AppData\Roaming\Kodi\addons\script.module.dateutil\lib;C:\Users\htpc\AppData\Roaming\Kodi\addons\script.module.idna\lib;C:\Users\htpc\AppData\Roaming\Kodi\addons\script.module.requests\lib;C:\Users\htpc\AppData\Roaming\Kodi\addons\script.module.six\lib;C:\Users\htpc\AppData\Roaming\Kodi\addons\script.module.trakt\lib;C:\Users\htpc\AppData\Roaming\Kodi\addons\script.module.typing_extensions\lib;C:\Users\htpc\AppData\Roaming\Kodi\addons\script.module.urllib3\lib;C:\Program Files (x86)\Kodi\system\python\Lib;C:\Program Files (x86)\Kodi\python3.8.zip;C:\Program Files (x86)\Kodi\system\python\DLLs;C:\Program Files (x86)\Kodi;C:\Program Files (x86)\Kodi\system\python;C:\Program Files (x86)\Kodi\system\python\lib\site-packages 2022-04-08 09:00:57.437 T:3696 DEBUG : CPythonInvoker(391, C:\Users\htpc\AppData\Roaming\Kodi\addons\script.trakt\defaultscript.py): entering source directory C:\Users\htpc\AppData\Roaming\Kodi\addons\script.trakt 2022-04-08 09:00:57.452 T:3696 DEBUG : CPythonInvoker(391, C:\Users\htpc\AppData\Roaming\Kodi\addons\script.trakt\defaultscript.py): instantiating addon using automatically obtained id of "script.trakt" dependent on version 3.0.0 of the xbmc.python api 2022-04-08 09:00:57.872 T:3696 INFO : start trakt with arguments: {'action': 'rate', 'media_type': 'movie', 'dbid': '11615'} 2022-04-08 09:00:57.895 T:3696 INFO : CPythonInvoker(391, C:\Users\htpc\AppData\Roaming\Kodi\addons\script.trakt\defaultscript.py): script successfully run 2022-04-08 09:00:57.895 T:3696 DEBUG : CPythonInvoker::onExecutionDone(391, C:\Users\htpc\AppData\Roaming\Kodi\addons\script.trakt\defaultscript.py) 2022-04-08 09:00:58.003 T:3696 DEBUG : . 2022-04-08 09:00:58.222 T:3696 INFO : Python interpreter stopped 2022-04-08 09:00:58.222 T:3696 DEBUG : Thread LanguageInvoker 3696 terminating 2022-04-08 09:00:58.229 T:5744 DEBUG : [script.trakt] resources.lib.service: Queued dispatch: {'action': 'manualRating', 'ratingData': {'action': 'rate', 'dbid': 11615, 'media_type': 'movie', 'video_ids': {'imdb': 'tt0120004', 'tmdb': '11015', 'tvdb': '8257'}}} 2022-04-08 09:00:58.229 T:5744 DEBUG : [script.trakt] resources.lib.service: Dispatch: {'action': 'manualRating', 'ratingData': {'action': 'rate', 'dbid': 11615, 'media_type': 'movie', 'video_ids': {'imdb': 'tt0120004', 'tmdb': '11015', 'tvdb': '8257'}}} 2022-04-08 09:00:58.230 T:5744 DEBUG : [script.trakt] resources.lib.service: Getting data for manual rate of movie: video_ids: |{'imdb': 'tt0120004', 'tmdb': '11015', 'tvdb': '8257'}| dbid: |11615| 2022-04-08 09:00:58.595 T:5744 DEBUG : [script.trakt] urllib3.connectionpool: https://api.trakt.tv:443 "GET /search/imdb/tt0120004 HTTP/1.1" 200 None 2022-04-08 09:00:58.736 T:5744 DEBUG : [script.trakt] urllib3.connectionpool: https://api.trakt.tv:443 "GET /movies/6152 HTTP/1.1" 200 None 2022-04-08 09:00:58.807 T:5744 DEBUG : [script.trakt] urllib3.connectionpool: https://api.trakt.tv:443 "GET /sync/ratings/movies HTTP/1.1" 423 None 2022-04-08 09:00:58.808 T:5744 WARNING : [script.trakt] trakt.interfaces.base: Request failed: "GET /sync/ratings/movies" - 423: "Unknown" (Unknown) 2022-04-08 09:00:58.808 T:5744 DEBUG : [script.trakt] resources.lib.rating: Summary Info {'ids': {'imdb': 'tt0120004', 'tmdb': '11015', 'slug': 'the-relic-1997', 'trakt': '6152'}, 'title': 'The Relic', 'year': 1997, 'watched': 0, 'collected': 0, 'plays': 0, 'in_watchlist': 0, 'progress': None, 'last_watched_at': None, 'collected_at': None, 'paused_at': None, 'user': {'ratings': {}}, 'movieid': 11615} 2022-04-08 09:00:58.826 T:3600 DEBUG : ------ Window Init (C:\Users\htpc\AppData\Roaming\Kodi\addons\script.trakt\resources\skins\Default\720p\script-trakt-RatingDialog.xml) ------ 2022-04-08 09:00:58.826 T:3600 INFO : Loading skin file: C:\Users\htpc\AppData\Roaming\Kodi\addons\script.trakt\resources\skins\Default\720p\script-trakt-RatingDialog.xml, load type: LOAD_ON_GUI_INIT 2022-04-08 09:01:00.644 T:1216 DEBUG : ffmpeg[0x1e2d31e59e0X]: [image2] Custom AVIOContext makes no sense and will be ignored with AVFMT_NOFILE format. 2022-04-08 09:01:02.643 T:3600 DEBUG : CInputManager::ProcessMouse: trying mouse action leftclick 2022-04-08 09:01:02.711 T:5744 DEBUG : [script.trakt] resources.lib.rating: Sending rating (7) to Trakt.tv 2022-04-08 09:01:02.728 T:5744 INFO : CVideoDatabase::UpdateDetailsForMovie: Starting updates for movie 11615 2022-04-08 09:01:02.731 T:5744 INFO : CVideoDatabase::UpdateDetailsForMovie: Finished updates for movie 11615 2022-04-08 09:01:02.809 T:5744 DEBUG : [script.trakt] urllib3.connectionpool: https://api.trakt.tv:443 "POST /sync/ratings HTTP/1.1" 423 None 2022-04-08 09:01:02.811 T:5744 WARNING : [script.trakt] trakt.interfaces.base: Request failed: "POST /sync/ratings" - 423: "Unknown" (Unknown) 2022-04-08 09:01:03.100 T:3600 DEBUG : ------ Window Deinit (C:\Users\htpc\AppData\Roaming\Kodi\addons\script.trakt\resources\skins\Default\720p\script-trakt-RatingDialog.xml) ------ `

ghallford commented 2 years ago

Closing for now

ghallford commented 2 years ago

Nevermind, re-opening

ghallford commented 2 years ago

Manual scrobble doesn't work. Can't find movies from Kodi or from Trakt?

` 2022-04-08 09:38:08.799 T:6564 DEBUG : -->Python Interpreter Initialized<-- 2022-04-08 09:38:08.799 T:6564 DEBUG :

2022-04-08 09:38:08.800 T:6564 DEBUG : CPythonInvoker(10, C:\Users\htpc\AppData\Roaming\Kodi\addons\script.trakt\defaultscript.py): the source file to load is "C:\Users\htpc\AppData\Roaming\Kodi\addons\script.trakt\defaultscript.py" 2022-04-08 09:38:08.800 T:6564 DEBUG : CPythonInvoker(10, C:\Users\htpc\AppData\Roaming\Kodi\addons\script.trakt\defaultscript.py): setting the Python path to C:\Users\htpc\AppData\Roaming\Kodi\addons\script.trakt;C:\Users\htpc\AppData\Roaming\Kodi\addons\script.module.arrow\lib;C:\Users\htpc\AppData\Roaming\Kodi\addons\script.module.certifi\lib;C:\Users\htpc\AppData\Roaming\Kodi\addons\script.module.chardet\lib;C:\Users\htpc\AppData\Roaming\Kodi\addons\script.module.dateutil\lib;C:\Users\htpc\AppData\Roaming\Kodi\addons\script.module.idna\lib;C:\Users\htpc\AppData\Roaming\Kodi\addons\script.module.requests\lib;C:\Users\htpc\AppData\Roaming\Kodi\addons\script.module.six\lib;C:\Users\htpc\AppData\Roaming\Kodi\addons\script.module.trakt\lib;C:\Users\htpc\AppData\Roaming\Kodi\addons\script.module.typing_extensions\lib;C:\Users\htpc\AppData\Roaming\Kodi\addons\script.module.urllib3\lib;C:\Program Files (x86)\Kodi\system\python\Lib;C:\Program Files (x86)\Kodi\python3.8.zip;C:\Program Files (x86)\Kodi\system\python\DLLs;C:\Program Files (x86)\Kodi;C:\Program Files (x86)\Kodi\system\python;C:\Program Files (x86)\Kodi\system\python\lib\site-packages 2022-04-08 09:38:08.800 T:6564 DEBUG : CPythonInvoker(10, C:\Users\htpc\AppData\Roaming\Kodi\addons\script.trakt\defaultscript.py): entering source directory C:\Users\htpc\AppData\Roaming\Kodi\addons\script.trakt 2022-04-08 09:38:08.800 T:6564 DEBUG : CPythonInvoker(10, C:\Users\htpc\AppData\Roaming\Kodi\addons\script.trakt\defaultscript.py): instantiating addon using automatically obtained id of "script.trakt" dependent on version 3.0.0 of the xbmc.python api 2022-04-08 09:38:08.944 T:7944 DEBUG <CAddonSettings[plugin.video.plexkodiconnect]>: trying to load setting definitions from old format... 2022-04-08 09:38:08.947 T:7944 DEBUG : requested setting (OnDeckTVextended) was not found. 2022-04-08 09:38:08.947 T:7944 DEBUG : requested setting (kodiplextimeoffset) was not found. 2022-04-08 09:38:08.947 T:7944 DEBUG : requested setting (pickPlexSubtitles) was not found. 2022-04-08 09:38:08.961 T:6564 INFO : start trakt with arguments: {'action': 'sync'} 2022-04-08 09:38:08.969 T:6564 INFO : CPythonInvoker(10, C:\Users\htpc\AppData\Roaming\Kodi\addons\script.trakt\defaultscript.py): script successfully run 2022-04-08 09:38:08.969 T:6564 DEBUG : CPythonInvoker::onExecutionDone(10, C:\Users\htpc\AppData\Roaming\Kodi\addons\script.trakt\defaultscript.py) 2022-04-08 09:38:09.027 T:6564 DEBUG : . 2022-04-08 09:38:09.131 T:6564 INFO : Python interpreter stopped 2022-04-08 09:38:09.131 T:6564 DEBUG : Thread LanguageInvoker 6564 terminating 2022-04-08 09:38:09.137 T:7792 DEBUG : [script.trakt] resources.lib.service: Queued dispatch: {'action': 'manualSync', 'silent': False, 'library': 'all'} 2022-04-08 09:38:09.137 T:7792 DEBUG : [script.trakt] resources.lib.service: Dispatch: {'action': 'manualSync', 'silent': False, 'library': 'all'} 2022-04-08 09:38:09.137 T:7792 DEBUG : [script.trakt] resources.lib.service: Performing a manual sync. 2022-04-08 09:38:09.138 T:1368 DEBUG : [script.trakt] resources.lib.sync: Starting synchronization with Trakt.tv 2022-04-08 09:38:09.138 T:1368 DEBUG : DialogProgress::Open called 2022-04-08 09:38:09.156 T:4256 DEBUG : ------ Window Init (DialogConfirm.xml) ------ 2022-04-08 09:38:09.156 T:4256 INFO : Loading skin file: DialogConfirm.xml, load type: KEEP_IN_MEMORY 2022-04-08 09:38:09.166 T:1368 DEBUG : [script.trakt] resources.lib.syncMovies: [Movies Sync] Getting movie data from Kodi 2022-04-08 09:38:09.248 T:7944 INFO : PLEX.sync.metadata: MetadataThread finished completely: True 2022-04-08 09:38:09.250 T:7944 DEBUG <CAddonSettings[plugin.video.plexkodiconnect]>: trying to load setting definitions from old format... 2022-04-08 09:38:09.253 T:7944 DEBUG : requested setting (OnDeckTVextended) was not found. 2022-04-08 09:38:09.254 T:7944 DEBUG : requested setting (kodiplextimeoffset) was not found. 2022-04-08 09:38:09.254 T:7944 DEBUG : requested setting (pickPlexSubtitles) was not found. 2022-04-08 09:38:09.258 T:7944 DEBUG <CAddonSettings[plugin.video.plexkodiconnect]>: trying to load setting definitions from old format... 2022-04-08 09:38:09.266 T:7944 DEBUG : requested setting (OnDeckTVextended) was not found. 2022-04-08 09:38:09.266 T:7944 DEBUG : requested setting (kodiplextimeoffset) was not found. 2022-04-08 09:38:09.266 T:7944 DEBUG : requested setting (pickPlexSubtitles) was not found. 2022-04-08 09:38:09.333 T:1576 DEBUG : PLEX.kodimonitor: PKC settings change detected 2022-04-08 09:38:12.476 T:4256 DEBUG : ------ Window Init (Pointer.xml) ------ 2022-04-08 09:38:13.849 T:1368 DEBUG : [script.trakt] resources.lib.syncMovies: [Movies Sync] Getting movie collection from Trakt.tv 2022-04-08 09:38:13.856 T:1368 DEBUG : [script.trakt] urllib3.connectionpool: Starting new HTTPS connection (1): api.trakt.tv:443 2022-04-08 09:38:14.028 T:1368 DEBUG : [script.trakt] urllib3.connectionpool: https://api.trakt.tv:443 "GET /sync/collection/movies HTTP/1.1" 423 None 2022-04-08 09:38:14.030 T:1368 WARNING : [script.trakt] trakt.interfaces.base: Request failed: "GET /sync/collection/movies" - 423: "Unknown" (Unknown) 2022-04-08 09:38:14.031 T:1368 DEBUG : [script.trakt] resources.lib.syncMovies: [Movies Sync] Error getting Trakt.tv movie list, aborting movie Sync. `

razzeee commented 2 years ago

The 423 http status code hints at your account being locked (api wise) You will need to reach out to the trakt support, to get it re-enabled.

ghallford commented 2 years ago

I did reach out with that question to them as well, still waiting for a response. My account seems fine and plex webhoook scrobbling works fine. Thanks.

⁣-- Geoff​

On Apr. 10, 2022, 8:12 a.m., at 8:12 a.m., Kolja Lampe @.***> wrote:

The 423 http status code hints at your account being locked (api wise) You will need to reach out to the trakt support, to get it re-enabled.

-- Reply to this email directly or view it on GitHub: https://github.com/trakt/script.trakt/issues/594#issuecomment-1094258751 You are receiving this because you modified the open/close state.

Message ID: @.***>

ghallford commented 2 years ago

They unlocked my account and all is fixed. Thanks