iamkroot / trakt-scrobbler

Scrobbler for trakt.tv that supports VLC, Plex, MPC-HC, and MPV.
https://github.com/iamkroot/trakt-scrobbler/wiki
GNU General Public License v2.0
466 stars 30 forks source link

[Installation] Failed to retrieve trakt token. #231

Closed SoshiNoir closed 1 year ago

SoshiNoir commented 1 year ago

Windows

Description

When running trakts init I get to select the player and the following error is shown:

Command line output

Screenshot_7

Selected: vlc
If you wish to change these in the future, use trakts config set players.monitored player1 player2
Remember to configure your player(s) as outlined at https://github.com/iamkroot/trakt-scrobbler/wiki/Players-Setup
Failed to authorize application with Trakt. Run 'trakts auth' manually to retry.
Failed to retrieve trakt token.

Log file

Click to see log contents

``` *2022-12-18 21:25:30,368 - DEBUG - MainThread - notifier - Notifications enabled for categories: exception, misc, scrobble.pause, scrobble.resume, scrobble.start, scrobble.stop, trakt 2022-12-18 21:25:46,320 - DEBUG - MainThread - notifier - Notifications enabled for categories: exception, misc, scrobble.pause, scrobble.resume, scrobble.start, scrobble.stop, trakt 2022-12-18 21:26:01,191 - DEBUG - MainThread - notifier - Notifications enabled for categories: exception, misc, scrobble.pause, scrobble.resume, scrobble.start, scrobble.stop, trakt 2022-12-18 21:29:00,175 - DEBUG - MainThread - notifier - Notifications enabled for categories: exception, misc, scrobble.pause, scrobble.resume, scrobble.start, scrobble.stop, trakt 2022-12-18 21:30:33,737 - DEBUG - MainThread - notifier - Notifications enabled for categories: exception, misc, scrobble.pause, scrobble.resume, scrobble.start, scrobble.stop, trakt 2022-12-18 21:30:37,657 - DEBUG - MainThread - utils - C:\Users\User\AppData\Roaming\trakt-scrobbler\trakt_token.json doesn't exist. 2022-12-18 21:30:37,657 - INFO - MainThread - trakt_auth - Access token not found. Initiating device authentication. 2022-12-18 21:31:11,324 - ERROR - MainThread - utils - Failed to connect: HTTPSConnectionPool(host='api.trakt.tv', port=443): Max retries exceeded with url: /oauth/device/code (Caused by ResponseError('too many 503 error responses')) 2022-12-18 21:31:11,324 - DEBUG - MainThread - utils - Request: post {'url': 'https://api.trakt.tv/oauth/device/code', 'headers': {'Content-Type': 'application/json'}, 'json': {'client_id': 'ab0133a2365b2c64d70fd2adf3c7e775a4131471b56340933335af1b94785a3a'}} 2022-12-18 21:31:11,324 - ERROR - MainThread - trakt_auth - Could not get device code. 2022-12-18 21:31:11,324 - DEBUG - MainThread - utils - C:\Users\User\AppData\Roaming\trakt-scrobbler\trakt_token.json doesn't exist. 2022-12-18 21:31:11,324 - CRITICAL - MainThread - trakt_auth - Unable to get access token. 2022-12-18 21:31:16,428 - ERROR - Thread-1 (_show_toast) - __init__ - Unhandled exception TypeError: WPARAM is simple, so must be an int object (got NoneType) 2022-12-18 21:44:24,277 - DEBUG - MainThread - notifier - Notifications enabled for categories: exception, misc, scrobble.pause, scrobble.resume, scrobble.start, scrobble.stop, trakt 2022-12-18 21:44:26,918 - DEBUG - MainThread - utils - C:\Users\User\AppData\Roaming\trakt-scrobbler\trakt_token.json doesn't exist. 2022-12-18 21:44:26,918 - INFO - MainThread - trakt_auth - Access token not found. Initiating device authentication. 2022-12-18 21:44:59,556 - ERROR - MainThread - utils - Failed to connect: HTTPSConnectionPool(host='api.trakt.tv', port=443): Max retries exceeded with url: /oauth/device/code (Caused by ResponseError('too many 503 error responses')) 2022-12-18 21:44:59,558 - DEBUG - MainThread - utils - Request: post {'url': 'https://api.trakt.tv/oauth/device/code', 'headers': {'Content-Type': 'application/json'}, 'json': {'client_id': 'ab0133a2365b2c64d70fd2adf3c7e775a4131471b56340933335af1b94785a3a'}} 2022-12-18 21:44:59,559 - ERROR - MainThread - trakt_auth - Could not get device code. 2022-12-18 21:44:59,560 - DEBUG - MainThread - utils - C:\Users\User\AppData\Roaming\trakt-scrobbler\trakt_token.json doesn't exist. 2022-12-18 21:44:59,561 - CRITICAL - MainThread - trakt_auth - Unable to get access token. 2022-12-18 21:45:04,665 - ERROR - Thread-1 (_show_toast) - __init__ - Unhandled exception TypeError: WPARAM is simple, so must be an int object (got NoneType) 2022-12-18 21:49:06,153 - DEBUG - MainThread - notifier - Notifications enabled for categories: exception, misc, scrobble.pause, scrobble.resume, scrobble.start, scrobble.stop, trakt 2022-12-18 21:49:06,247 - DEBUG - MainThread - utils - C:\Users\User\AppData\Roaming\trakt-scrobbler\trakt_token.json doesn't exist. 2022-12-18 21:49:06,247 - INFO - MainThread - trakt_auth - Access token not found. Initiating device authentication. 2022-12-18 21:49:29,807 - DEBUG - MainThread - notifier - Notifications enabled for categories: exception, misc, scrobble.pause, scrobble.resume, scrobble.start, scrobble.stop, trakt 2022-12-18 21:49:29,901 - DEBUG - MainThread - utils - C:\Users\User\AppData\Roaming\trakt-scrobbler\trakt_token.json doesn't exist. 2022-12-18 21:49:29,901 - INFO - MainThread - trakt_auth - Access token not found. Initiating device authentication. 2022-12-18 21:50:26,625 - DEBUG - MainThread - notifier - Notifications enabled for categories: exception, misc, scrobble.pause, scrobble.resume, scrobble.start, scrobble.stop, trakt 2022-12-18 21:50:26,832 - DEBUG - MainThread - utils - C:\Users\User\AppData\Roaming\trakt-scrobbler\watched_backlog.json doesn't exist. 2022-12-18 21:50:26,834 - INFO - MainThread - scrobbler - Started scrobbler thread. 2022-12-18 21:50:26,857 - DEBUG - MainThread - monitor - Autoloaded vlc port = 8080 2022-12-18 21:50:26,857 - DEBUG - MainThread - monitor - Autoloaded vlc password = 2022-12-18 21:50:26,857 - INFO - MainThread - monitor - Started monitor for vlc 2022-12-18 21:50:26,931 - DEBUG - vlc - file_info - Raw filepath 'F:\\movnser\\One.Piece.S01.1080p.NF.WEB-DL.DDP2.0.H.264.DUAL-ReiDoBregaBR\\ONE.PIECE.S01E01.Episode.1.1080p.NF.WEB-DL.DDP2.0.H.264-ReiDoBregaBR.mkv' 2022-12-18 21:50:27,149 - DEBUG - vlc - file_info - Guess: MatchesDict([('season', 1), ('screen_size', '1080p'), ('streaming_service', 'Netflix'), ('source', 'Web'), ('audio_codec', 'Dolby Digital Plus'), ('audio_channels', '2.0'), ('video_codec', 'H.264'), ('other', 'Dual Audio'), ('release_group', 'ReiDoBregaBR'), ('title', 'ONE PIECE'), ('episode', 1), ('episode_title', 'Episode 1'), ('container', 'mkv'), ('mimetype', 'video/x-matroska'), ('type', 'episode')]) 2022-12-18 21:50:27,149 - DEBUG - vlc - monitor - action=scrobble 2022-12-18 21:50:27,149 - DEBUG - vlc - monitor - {'state': 1, 'progress': 1.22, 'media_info': {'type': 'episode', 'title': 'ONE PIECE', 'season': 1, 'episode': 1}, 'updated_at': 1671411027.1491237} 2022-12-18 21:50:27,149 - DEBUG - scrobbler - scrobbler - Scrobbling pause at 1.22% for ONE PIECE 2022-12-18 21:50:27,149 - DEBUG - scrobbler - utils - C:\Users\User\AppData\Roaming\trakt-scrobbler\trakt_cache.json doesn't exist. 2022-12-18 21:50:27,149 - DEBUG - scrobbler - trakt_interface - Searching trakt: Title: "ONE PIECE" 2022-12-18 21:50:27,149 - DEBUG - scrobbler - utils - C:\Users\User\AppData\Roaming\trakt-scrobbler\trakt_token.json doesn't exist. 2022-12-18 21:50:27,149 - INFO - scrobbler - trakt_auth - Access token not found. Initiating device authentication. 2022-12-18 21:50:56,260 - DEBUG - MainThread - notifier - Notifications enabled for categories: exception, misc, scrobble.pause, scrobble.resume, scrobble.start, scrobble.stop, trakt 2022-12-18 21:50:56,292 - DEBUG - MainThread - monitor - Autoloaded vlc port = 8080 2022-12-18 21:50:56,292 - DEBUG - MainThread - monitor - Autoloaded vlc password = 2022-12-18 21:50:56,292 - INFO - MainThread - monitor - Started monitor for vlc 2022-12-18 21:50:56,417 - DEBUG - vlc - file_info - Raw filepath 'F:\\movnser\\One.Piece.S01.1080p.NF.WEB-DL.DDP2.0.H.264.DUAL-ReiDoBregaBR\\ONE.PIECE.S01E01.Episode.1.1080p.NF.WEB-DL.DDP2.0.H.264-ReiDoBregaBR.mkv' 2022-12-18 21:50:56,591 - DEBUG - vlc - file_info - Guess: MatchesDict([('season', 1), ('screen_size', '1080p'), ('streaming_service', 'Netflix'), ('source', 'Web'), ('audio_codec', 'Dolby Digital Plus'), ('audio_channels', '2.0'), ('video_codec', 'H.264'), ('other', 'Dual Audio'), ('release_group', 'ReiDoBregaBR'), ('title', 'ONE PIECE'), ('episode', 1), ('episode_title', 'Episode 1'), ('container', 'mkv'), ('mimetype', 'video/x-matroska'), ('type', 'episode')]) 2022-12-18 21:50:56,591 - DEBUG - vlc - monitor - action=scrobble 2022-12-18 21:50:56,591 - DEBUG - vlc - monitor - {'state': 1, 'progress': 1.22, 'media_info': {'type': 'episode', 'title': 'ONE PIECE', 'season': 1, 'episode': 1}, 'updated_at': 1671411056.5911853} 2022-12-18 21:52:15,875 - DEBUG - MainThread - notifier - Notifications enabled for categories: exception, misc, scrobble.pause, scrobble.resume, scrobble.start, scrobble.stop, trakt 2022-12-18 21:52:16,062 - INFO - MainThread - scrobbler - Started scrobbler thread. 2022-12-18 21:52:16,078 - DEBUG - MainThread - monitor - Autoloaded vlc password = 2022-12-18 21:52:16,078 - DEBUG - MainThread - monitor - Autoloaded vlc port = 8080 2022-12-18 21:52:16,078 - INFO - MainThread - monitor - Started monitor for vlc 2022-12-18 21:52:16,157 - DEBUG - vlc - file_info - Raw filepath 'F:\\movnser\\One.Piece.S01.1080p.NF.WEB-DL.DDP2.0.H.264.DUAL-ReiDoBregaBR\\ONE.PIECE.S01E01.Episode.1.1080p.NF.WEB-DL.DDP2.0.H.264-ReiDoBregaBR.mkv' 2022-12-18 21:52:16,157 - DEBUG - vlc - file_info - Matched whitelist entry 'F:\\movnser' 2022-12-18 21:52:16,361 - DEBUG - vlc - file_info - Guess: MatchesDict([('season', 1), ('screen_size', '1080p'), ('streaming_service', 'Netflix'), ('source', 'Web'), ('audio_codec', 'Dolby Digital Plus'), ('audio_channels', '2.0'), ('video_codec', 'H.264'), ('other', 'Dual Audio'), ('release_group', 'ReiDoBregaBR'), ('title', 'ONE PIECE'), ('episode', 1), ('episode_title', 'Episode 1'), ('container', 'mkv'), ('mimetype', 'video/x-matroska'), ('type', 'episode')]) 2022-12-18 21:52:16,361 - DEBUG - vlc - monitor - action=scrobble 2022-12-18 21:52:16,361 - DEBUG - vlc - monitor - {'state': 1, 'progress': 1.49, 'media_info': {'type': 'episode', 'title': 'ONE PIECE', 'season': 1, 'episode': 1}, 'updated_at': 1671411136.3614159} 2022-12-18 21:52:16,361 - DEBUG - scrobbler - scrobbler - Scrobbling pause at 1.49% for ONE PIECE 2022-12-18 21:52:16,361 - DEBUG - scrobbler - utils - C:\Users\User\AppData\Roaming\trakt-scrobbler\trakt_cache.json doesn't exist. 2022-12-18 21:52:16,361 - DEBUG - scrobbler - trakt_interface - Searching trakt: Title: "ONE PIECE" 2022-12-18 21:52:16,361 - DEBUG - scrobbler - utils - C:\Users\User\AppData\Roaming\trakt-scrobbler\trakt_token.json doesn't exist. 2022-12-18 21:52:16,361 - INFO - scrobbler - trakt_auth - Access token not found. Initiating device authentication. 2022-12-18 21:52:49,772 - ERROR - scrobbler - utils - Failed to connect: HTTPSConnectionPool(host='api.trakt.tv', port=443): Max retries exceeded with url: /oauth/device/code (Caused by ResponseError('too many 503 error responses')) 2022-12-18 21:52:49,772 - DEBUG - scrobbler - utils - Request: post {'url': 'https://api.trakt.tv/oauth/device/code', 'headers': {'Content-Type': 'application/json'}, 'json': {'client_id': 'ab0133a2365b2c64d70fd2adf3c7e775a4131471b56340933335af1b94785a3a'}} 2022-12-18 21:52:49,772 - ERROR - scrobbler - trakt_auth - Could not get device code. 2022-12-18 21:52:49,772 - DEBUG - scrobbler - utils - C:\Users\User\AppData\Roaming\trakt-scrobbler\trakt_token.json doesn't exist. 2022-12-18 21:52:49,772 - CRITICAL - scrobbler - trakt_auth - Unable to get access token. 2022-12-18 21:52:54,860 - ERROR - Thread-4 (_show_toast) - __init__ - Unhandled exception TypeError: WPARAM is simple, so must be an int object (got NoneType) 2022-12-18 21:52:59,520 - DEBUG - MainThread - notifier - Notifications enabled for categories: exception, misc, scrobble.pause, scrobble.resume, scrobble.start, scrobble.stop, trakt 2022-12-18 21:52:59,645 - DEBUG - MainThread - utils - C:\Users\User\AppData\Roaming\trakt-scrobbler\trakt_token.json doesn't exist. 2022-12-18 21:52:59,645 - INFO - MainThread - trakt_auth - Access token not found. Initiating device authentication. 2022-12-18 21:53:16,370 - DEBUG - MainThread - notifier - Notifications enabled for categories: exception, misc, scrobble.pause, scrobble.resume, scrobble.start, scrobble.stop, trakt 2022-12-18 21:53:16,480 - INFO - MainThread - trakt_auth - Access token not found. Initiating device authentication. 2022-12-18 21:53:21,279 - ERROR - scrobbler - utils - Failed to connect: HTTPSConnectionPool(host='api.trakt.tv', port=443): Max retries exceeded with url: /search/show?query=ONE+PIECE&extended=False&field=title&page=1&limit=1 (Caused by ResponseError('too many 503 error responses')) 2022-12-18 21:53:21,280 - DEBUG - scrobbler - utils - Request: get {'url': 'https://api.trakt.tv/search/show', 'params': {'query': 'ONE PIECE', 'extended': False, 'field': 'title', 'years': None, 'page': 1, 'limit': 1}, 'headers': {'Content-Type': 'application/json', 'trakt-api-key': 'ab0133a2365b2c64d70fd2adf3c7e775a4131471b56340933335af1b94785a3a', 'trakt-api-version': '2', 'Authorization': 'Bearer None'}, 'timeout': 30} 2022-12-18 21:53:21,281 - WARNING - scrobbler - trakt_interface - Invalid trakt id for ONE PIECE 2022-12-18 21:53:21,282 - WARNING - scrobbler - scrobbler - Scrobble unsuccessful. Discarding it. 2022-12-18 21:53:49,915 - ERROR - MainThread - utils - Failed to connect: HTTPSConnectionPool(host='api.trakt.tv', port=443): Max retries exceeded with url: /oauth/device/code (Caused by ResponseError('too many 503 error responses')) 2022-12-18 21:53:49,915 - DEBUG - MainThread - utils - Request: post {'url': 'https://api.trakt.tv/oauth/device/code', 'headers': {'Content-Type': 'application/json'}, 'json': {'client_id': 'ab0133a2365b2c64d70fd2adf3c7e775a4131471b56340933335af1b94785a3a'}} 2022-12-18 21:53:49,916 - ERROR - MainThread - trakt_auth - Could not get device code. 2022-12-18 21:53:49,916 - CRITICAL - MainThread - trakt_auth - Unable to get access token. 2022-12-18 21:53:54,971 - ERROR - Thread-1 (_show_toast) - __init__ - Unhandled exception TypeError: WPARAM is simple, so must be an int object (got NoneType) 2022-12-18 22:10:01,790 - DEBUG - MainThread - notifier - Notifications enabled for categories: exception, misc, scrobble.pause, scrobble.resume, scrobble.start, scrobble.stop, trakt 2022-12-18 22:10:01,884 - INFO - MainThread - trakt_auth - Access token not found. Initiating device authentication. 2022-12-18 22:10:35,587 - ERROR - MainThread - utils - Failed to connect: HTTPSConnectionPool(host='api.trakt.tv', port=443): Max retries exceeded with url: /oauth/device/code (Caused by ResponseError('too many 503 error responses')) 2022-12-18 22:10:35,588 - DEBUG - MainThread - utils - Request: post {'url': 'https://api.trakt.tv/oauth/device/code', 'headers': {'Content-Type': 'application/json'}, 'json': {'client_id': 'ab0133a2365b2c64d70fd2adf3c7e775a4131471b56340933335af1b94785a3a'}} 2022-12-18 22:10:35,588 - ERROR - MainThread - trakt_auth - Could not get device code. 2022-12-18 22:10:35,589 - CRITICAL - MainThread - trakt_auth - Unable to get access token. 2022-12-18 22:10:40,666 - ERROR - Thread-1 (_show_toast) - __init__ - Unhandled exception TypeError: WPARAM is simple, so must be an int object (got NoneType) 2022-12-18 22:11:38,401 - DEBUG - MainThread - notifier - Notifications enabled for categories: exception, misc, scrobble.pause, scrobble.resume, scrobble.start, scrobble.stop, trakt 2022-12-18 22:11:55,650 - INFO - MainThread - scrobbler - Started scrobbler thread. 2022-12-18 22:11:55,728 - DEBUG - MainThread - monitor - Autoloaded vlc password = 2022-12-18 22:11:55,728 - DEBUG - MainThread - monitor - Autoloaded vlc port = 8080 2022-12-18 22:11:55,728 - INFO - MainThread - monitor - Started monitor for vlc 2022-12-18 22:11:55,791 - DEBUG - vlc - file_info - Raw filepath 'F:\\movnser\\One.Piece.S01.1080p.NF.WEB-DL.DDP2.0.H.264.DUAL-ReiDoBregaBR\\ONE.PIECE.S01E01.Episode.1.1080p.NF.WEB-DL.DDP2.0.H.264-ReiDoBregaBR.mkv' 2022-12-18 22:11:55,791 - DEBUG - vlc - file_info - Matched whitelist entry 'F:\\movnser' 2022-12-18 22:11:56,025 - DEBUG - vlc - file_info - Guess: MatchesDict([('season', 1), ('screen_size', '1080p'), ('streaming_service', 'Netflix'), ('source', 'Web'), ('audio_codec', 'Dolby Digital Plus'), ('audio_channels', '2.0'), ('video_codec', 'H.264'), ('other', 'Dual Audio'), ('release_group', 'ReiDoBregaBR'), ('title', 'ONE PIECE'), ('episode', 1), ('episode_title', 'Episode 1'), ('container', 'mkv'), ('mimetype', 'video/x-matroska'), ('type', 'episode')]) 2022-12-18 22:11:56,025 - DEBUG - vlc - monitor - action=scrobble 2022-12-18 22:11:56,025 - DEBUG - vlc - monitor - {'state': 1, 'progress': 1.49, 'media_info': {'type': 'episode', 'title': 'ONE PIECE', 'season': 1, 'episode': 1}, 'updated_at': 1671412316.0256107} 2022-12-18 22:11:56,025 - DEBUG - scrobbler - scrobbler - Scrobbling pause at 1.49% for ONE PIECE 2022-12-18 22:11:56,025 - DEBUG - scrobbler - utils - C:\Users\User\AppData\Roaming\trakt-scrobbler\trakt_cache.json doesn't exist. 2022-12-18 22:11:56,025 - DEBUG - scrobbler - trakt_interface - Searching trakt: Title: "ONE PIECE" 2022-12-18 22:11:56,025 - INFO - scrobbler - trakt_auth - Access token not found. Initiating device authentication. 2022-12-18 22:12:05,567 - INFO - MainThread - trakt_auth - Access token not found. Initiating device authentication. 2022-12-18 22:12:29,403 - ERROR - scrobbler - utils - Failed to connect: HTTPSConnectionPool(host='api.trakt.tv', port=443): Max retries exceeded with url: /oauth/device/code (Caused by ResponseError('too many 503 error responses')) 2022-12-18 22:12:29,403 - DEBUG - scrobbler - utils - Request: post {'url': 'https://api.trakt.tv/oauth/device/code', 'headers': {'Content-Type': 'application/json'}, 'json': {'client_id': 'ab0133a2365b2c64d70fd2adf3c7e775a4131471b56340933335af1b94785a3a'}} 2022-12-18 22:12:29,403 - ERROR - scrobbler - trakt_auth - Could not get device code. 2022-12-18 22:12:29,418 - CRITICAL - scrobbler - trakt_auth - Unable to get access token. 2022-12-18 22:12:38,582 - ERROR - MainThread - utils - Failed to connect: HTTPSConnectionPool(host='api.trakt.tv', port=443): Max retries exceeded with url: /oauth/device/code (Caused by ResponseError('too many 503 error responses')) 2022-12-18 22:12:38,584 - DEBUG - MainThread - utils - Request: post {'url': 'https://api.trakt.tv/oauth/device/code', 'headers': {'Content-Type': 'application/json'}, 'json': {'client_id': 'ab0133a2365b2c64d70fd2adf3c7e775a4131471b56340933335af1b94785a3a'}} 2022-12-18 22:12:38,585 - ERROR - MainThread - trakt_auth - Could not get device code. 2022-12-18 22:12:38,586 - CRITICAL - MainThread - trakt_auth - Unable to get access token. 2022-12-18 22:13:01,160 - ERROR - scrobbler - utils - Failed to connect: HTTPSConnectionPool(host='api.trakt.tv', port=443): Max retries exceeded with url: /search/show?query=ONE+PIECE&extended=False&field=title&page=1&limit=1 (Caused by ResponseError('too many 503 error responses')) 2022-12-18 22:13:01,161 - DEBUG - scrobbler - utils - Request: get {'url': 'https://api.trakt.tv/search/show', 'params': {'query': 'ONE PIECE', 'extended': False, 'field': 'title', 'years': None, 'page': 1, 'limit': 1}, 'headers': {'Content-Type': 'application/json', 'trakt-api-key': 'ab0133a2365b2c64d70fd2adf3c7e775a4131471b56340933335af1b94785a3a', 'trakt-api-version': '2', 'Authorization': 'Bearer None'}, 'timeout': 30} 2022-12-18 22:13:01,162 - WARNING - scrobbler - trakt_interface - Invalid trakt id for ONE PIECE 2022-12-18 22:13:01,163 - WARNING - scrobbler - scrobbler - Scrobble unsuccessful. Discarding it. 2022-12-18 22:22:56,999 - INFO - MainThread - trakt_auth - Access token not found. Initiating device authentication. 2022-12-18 22:23:30,536 - ERROR - MainThread - utils - Failed to connect: HTTPSConnectionPool(host='api.trakt.tv', port=443): Max retries exceeded with url: /oauth/device/code (Caused by ResponseError('too many 503 error responses')) 2022-12-18 22:23:30,536 - DEBUG - MainThread - utils - Request: post {'url': 'https://api.trakt.tv/oauth/device/code', 'headers': {'Content-Type': 'application/json'}, 'json': {'client_id': 'ab0133a2365b2c64d70fd2adf3c7e775a4131471b56340933335af1b94785a3a'}} 2022-12-18 22:23:30,536 - ERROR - MainThread - trakt_auth - Could not get device code. 2022-12-18 22:23:30,536 - CRITICAL - MainThread - trakt_auth - Unable to get access token. 2022-12-18 22:27:49,839 - INFO - MainThread - trakt_auth - Access token not found. Initiating device authentication. 2022-12-18 22:28:23,640 - ERROR - MainThread - utils - Failed to connect: HTTPSConnectionPool(host='api.trakt.tv', port=443): Max retries exceeded with url: /oauth/device/code (Caused by ResponseError('too many 503 error responses')) 2022-12-18 22:28:23,640 - DEBUG - MainThread - utils - Request: post {'url': 'https://api.trakt.tv/oauth/device/code', 'headers': {'Content-Type': 'application/json'}, 'json': {'client_id': 'ab0133a2365b2c64d70fd2adf3c7e775a4131471b56340933335af1b94785a3a'}} 2022-12-18 22:28:23,640 - ERROR - MainThread - trakt_auth - Could not get device code. 2022-12-18 22:28:23,640 - CRITICAL - MainThread - trakt_auth - Unable to get access token. 2022-12-18 22:42:03,057 - INFO - MainThread - trakt_auth - Access token not found. Initiating device authentication. 2022-12-18 22:42:36,509 - ERROR - MainThread - utils - Failed to connect: HTTPSConnectionPool(host='api.trakt.tv', port=443): Max retries exceeded with url: /oauth/device/code (Caused by ResponseError('too many 503 error responses')) 2022-12-18 22:42:36,509 - DEBUG - MainThread - utils - Request: post {'url': 'https://api.trakt.tv/oauth/device/code', 'headers': {'Content-Type': 'application/json'}, 'json': {'client_id': 'ab0133a2365b2c64d70fd2adf3c7e775a4131471b56340933335af1b94785a3a'}} 2022-12-18 22:42:36,510 - ERROR - MainThread - trakt_auth - Could not get device code. 2022-12-18 22:42:36,510 - CRITICAL - MainThread - trakt_auth - Unable to get access token. 2022-12-18 22:44:20,640 - INFO - MainThread - trakt_auth - Access token not found. Initiating device authentication. 2022-12-18 22:44:54,078 - ERROR - MainThread - utils - Failed to connect: HTTPSConnectionPool(host='api.trakt.tv', port=443): Max retries exceeded with url: /oauth/device/code (Caused by ResponseError('too many 503 error responses')) 2022-12-18 22:44:54,079 - DEBUG - MainThread - utils - Request: post {'url': 'https://api.trakt.tv/oauth/device/code', 'headers': {'Content-Type': 'application/json'}, 'json': {'client_id': 'ab0133a2365b2c64d70fd2adf3c7e775a4131471b56340933335af1b94785a3a'}} 2022-12-18 22:44:54,079 - ERROR - MainThread - trakt_auth - Could not get device code. 2022-12-18 22:44:54,079 - CRITICAL - MainThread - trakt_auth - Unable to get access token. 2022-12-18 22:49:54,992 - INFO - MainThread - trakt_auth - Access token not found. Initiating device authentication. 2022-12-18 22:50:28,340 - ERROR - MainThread - utils - Failed to connect: HTTPSConnectionPool(host='api.trakt.tv', port=443): Max retries exceeded with url: /oauth/device/code (Caused by ResponseError('too many 503 error responses')) 2022-12-18 22:50:28,340 - DEBUG - MainThread - utils - Request: post {'url': 'https://api.trakt.tv/oauth/device/code', 'headers': {'Content-Type': 'application/json'}, 'json': {'client_id': 'ab0133a2365b2c64d70fd2adf3c7e775a4131471b56340933335af1b94785a3a'}} 2022-12-18 22:50:28,341 - ERROR - MainThread - trakt_auth - Could not get device code. 2022-12-18 22:50:28,341 - CRITICAL - MainThread - trakt_auth - Unable to get access token. 2022-12-18 22:52:26,284 - INFO - MainThread - trakt_auth - Access token not found. Initiating device authentication. 2022-12-18 22:52:59,736 - ERROR - MainThread - utils - Failed to connect: HTTPSConnectionPool(host='api.trakt.tv', port=443): Max retries exceeded with url: /oauth/device/code (Caused by ResponseError('too many 503 error responses')) 2022-12-18 22:52:59,737 - DEBUG - MainThread - utils - Request: post {'url': 'https://api.trakt.tv/oauth/device/code', 'headers': {'Content-Type': 'application/json'}, 'json': {'client_id': 'ab0133a2365b2c64d70fd2adf3c7e775a4131471b56340933335af1b94785a3a'}} 2022-12-18 22:52:59,738 - ERROR - MainThread - trakt_auth - Could not get device code. 2022-12-18 22:52:59,740 - CRITICAL - MainThread - trakt_auth - Unable to get access token. 2022-12-18 22:53:34,981 - INFO - MainThread - scrobbler - Started scrobbler thread. 2022-12-18 22:53:35,006 - DEBUG - MainThread - monitor - Autoloaded vlc port = 8080 2022-12-18 22:53:35,006 - DEBUG - MainThread - monitor - Autoloaded vlc password = 2022-12-18 22:53:35,006 - INFO - MainThread - monitor - Started monitor for vlc 2022-12-18 22:53:35,058 - DEBUG - vlc - file_info - Raw filepath 'F:\\movnser\\One.Piece.S01.1080p.NF.WEB-DL.DDP2.0.H.264.DUAL-ReiDoBregaBR\\ONE.PIECE.S01E01.Episode.1.1080p.NF.WEB-DL.DDP2.0.H.264-ReiDoBregaBR.mkv' 2022-12-18 22:53:35,058 - DEBUG - vlc - file_info - Matched whitelist entry 'F:\\movnser' 2022-12-18 22:53:35,239 - DEBUG - vlc - file_info - Guess: MatchesDict([('season', 1), ('screen_size', '1080p'), ('streaming_service', 'Netflix'), ('source', 'Web'), ('audio_codec', 'Dolby Digital Plus'), ('audio_channels', '2.0'), ('video_codec', 'H.264'), ('other', 'Dual Audio'), ('release_group', 'ReiDoBregaBR'), ('title', 'ONE PIECE'), ('episode', 1), ('episode_title', 'Episode 1'), ('container', 'mkv'), ('mimetype', 'video/x-matroska'), ('type', 'episode')]) 2022-12-18 22:53:35,239 - DEBUG - vlc - monitor - action=scrobble 2022-12-18 22:53:35,239 - DEBUG - vlc - monitor - {'state': 1, 'progress': 1.9, 'media_info': {'type': 'episode', 'title': 'ONE PIECE', 'season': 1, 'episode': 1}, 'updated_at': 1671414815.2393484} 2022-12-18 22:53:35,244 - DEBUG - scrobbler - scrobbler - Scrobbling pause at 1.90% for ONE PIECE 2022-12-18 22:53:35,244 - DEBUG - scrobbler - utils - C:\Users\User\AppData\Roaming\trakt-scrobbler\trakt_cache.json doesn't exist. 2022-12-18 22:53:35,244 - DEBUG - scrobbler - trakt_interface - Searching trakt: Title: "ONE PIECE" 2022-12-18 22:53:35,244 - INFO - scrobbler - trakt_auth - Access token not found. Initiating device authentication. 2022-12-18 22:54:08,545 - ERROR - scrobbler - utils - Failed to connect: HTTPSConnectionPool(host='api.trakt.tv', port=443): Max retries exceeded with url: /oauth/device/code (Caused by ResponseError('too many 503 error responses')) 2022-12-18 22:54:08,545 - DEBUG - scrobbler - utils - Request: post {'url': 'https://api.trakt.tv/oauth/device/code', 'headers': {'Content-Type': 'application/json'}, 'json': {'client_id': 'ab0133a2365b2c64d70fd2adf3c7e775a4131471b56340933335af1b94785a3a'}} 2022-12-18 22:54:08,545 - ERROR - scrobbler - trakt_auth - Could not get device code. 2022-12-18 22:54:08,545 - CRITICAL - scrobbler - trakt_auth - Unable to get access token. 2022-12-18 22:54:39,939 - ERROR - scrobbler - utils - Failed to connect: HTTPSConnectionPool(host='api.trakt.tv', port=443): Max retries exceeded with url: /search/show?query=ONE+PIECE&extended=False&field=title&page=1&limit=1 (Caused by ResponseError('too many 503 error responses')) 2022-12-18 22:54:39,939 - DEBUG - scrobbler - utils - Request: get {'url': 'https://api.trakt.tv/search/show', 'params': {'query': 'ONE PIECE', 'extended': False, 'field': 'title', 'years': None, 'page': 1, 'limit': 1}, 'headers': {'Content-Type': 'application/json', 'trakt-api-key': 'ab0133a2365b2c64d70fd2adf3c7e775a4131471b56340933335af1b94785a3a', 'trakt-api-version': '2', 'Authorization': 'Bearer None'}, 'timeout': 30} 2022-12-18 22:54:39,939 - WARNING - scrobbler - trakt_interface - Invalid trakt id for ONE PIECE 2022-12-18 22:54:39,939 - WARNING - scrobbler - scrobbler - Scrobble unsuccessful. Discarding it. 2022-12-18 22:55:38,034 - INFO - MainThread - trakt_auth - Access token not found. Initiating device authentication. 2022-12-18 22:56:11,641 - ERROR - MainThread - utils - Failed to connect: HTTPSConnectionPool(host='api.trakt.tv', port=443): Max retries exceeded with url: /oauth/device/code (Caused by ResponseError('too many 503 error responses')) 2022-12-18 22:56:11,641 - DEBUG - MainThread - utils - Request: post {'url': 'https://api.trakt.tv/oauth/device/code', 'headers': {'Content-Type': 'application/json'}, 'json': {'client_id': 'ab0133a2365b2c64d70fd2adf3c7e775a4131471b56340933335af1b94785a3a'}} 2022-12-18 22:56:11,641 - ERROR - MainThread - trakt_auth - Could not get device code. 2022-12-18 22:56:11,641 - CRITICAL - MainThread - trakt_auth - Unable to get access token. 2022-12-18 23:00:01,336 - INFO - MainThread - trakt_auth - Access token not found. Initiating device authentication. 2022-12-18 23:00:34,745 - ERROR - MainThread - utils - Failed to connect: HTTPSConnectionPool(host='api.trakt.tv', port=443): Max retries exceeded with url: /oauth/device/code (Caused by ResponseError('too many 503 error responses')) 2022-12-18 23:00:34,745 - DEBUG - MainThread - utils - Request: post {'url': 'https://api.trakt.tv/oauth/device/code', 'headers': {'Content-Type': 'application/json'}, 'json': {'client_id': 'ab0133a2365b2c64d70fd2adf3c7e775a4131471b56340933335af1b94785a3a'}} 2022-12-18 23:00:34,745 - ERROR - MainThread - trakt_auth - Could not get device code. 2022-12-18 23:00:34,745 - CRITICAL - MainThread - trakt_auth - Unable to get access token. 2022-12-18 23:01:48,201 - DEBUG - vlc - monitor - action=stop_previous 2022-12-18 23:01:48,201 - DEBUG - scrobbler - scrobbler - Scrobbling stop at 2.37% for ONE PIECE 2022-12-18 23:01:48,201 - DEBUG - scrobbler - trakt_interface - Searching trakt: Title: "ONE PIECE" 2022-12-18 23:01:48,201 - INFO - scrobbler - trakt_auth - Access token not found. Initiating device authentication. 2022-12-18 23:01:58,233 - INFO - MainThread - trakt_auth - Access token not found. Initiating device authentication. 2022-12-18 23:01:58,257 - DEBUG - vlc - monitor - action=scrobble 2022-12-18 23:01:58,257 - DEBUG - vlc - monitor - {'state': 2, 'progress': 0.34, 'media_info': {'type': 'episode', 'title': 'ONE PIECE', 'season': 1, 'episode': 1}, 'updated_at': 1671415318.2579486} 2022-12-18 23:02:18,354 - DEBUG - vlc - monitor - action=scrobble 2022-12-18 23:02:18,356 - DEBUG - vlc - monitor - {'state': 1, 'progress': 1.22, 'media_info': {'type': 'episode', 'title': 'ONE PIECE', 'season': 1, 'episode': 1}, 'updated_at': 1671415338.3543622} 2022-12-18 23:02:21,714 - ERROR - scrobbler - utils - Failed to connect: HTTPSConnectionPool(host='api.trakt.tv', port=443): Max retries exceeded with url: /oauth/device/code (Caused by ResponseError('too many 503 error responses')) 2022-12-18 23:02:21,716 - DEBUG - scrobbler - utils - Request: post {'url': 'https://api.trakt.tv/oauth/device/code', 'headers': {'Content-Type': 'application/json'}, 'json': {'client_id': 'ab0133a2365b2c64d70fd2adf3c7e775a4131471b56340933335af1b94785a3a'}} 2022-12-18 23:02:21,716 - ERROR - scrobbler - trakt_auth - Could not get device code. 2022-12-18 23:02:21,719 - CRITICAL - scrobbler - trakt_auth - Unable to get access token. 2022-12-18 23:02:30,124 - ERROR - MainThread - utils - Failed to connect: HTTPSConnectionPool(host='api.trakt.tv', port=443): Max retries exceeded with url: /oauth/device/code (Caused by ResponseError('too many 503 error responses')) 2022-12-18 23:02:30,124 - DEBUG - MainThread - utils - Request: post {'url': 'https://api.trakt.tv/oauth/device/code', 'headers': {'Content-Type': 'application/json'}, 'json': {'client_id': 'ab0133a2365b2c64d70fd2adf3c7e775a4131471b56340933335af1b94785a3a'}} 2022-12-18 23:02:30,124 - ERROR - MainThread - trakt_auth - Could not get device code. 2022-12-18 23:02:30,124 - CRITICAL - MainThread - trakt_auth - Unable to get access token. 2022-12-18 23:02:53,217 - ERROR - scrobbler - utils - Failed to connect: HTTPSConnectionPool(host='api.trakt.tv', port=443): Max retries exceeded with url: /search/show?query=ONE+PIECE&extended=False&field=title&page=1&limit=1 (Caused by ResponseError('too many 503 error responses')) 2022-12-18 23:02:53,217 - DEBUG - scrobbler - utils - Request: get {'url': 'https://api.trakt.tv/search/show', 'params': {'query': 'ONE PIECE', 'extended': False, 'field': 'title', 'years': None, 'page': 1, 'limit': 1}, 'headers': {'Content-Type': 'application/json', 'trakt-api-key': 'ab0133a2365b2c64d70fd2adf3c7e775a4131471b56340933335af1b94785a3a', 'trakt-api-version': '2', 'Authorization': 'Bearer None'}, 'timeout': 30} 2022-12-18 23:02:53,222 - WARNING - scrobbler - trakt_interface - Invalid trakt id for ONE PIECE 2022-12-18 23:02:53,222 - WARNING - scrobbler - scrobbler - Scrobble unsuccessful. Discarding it. 2022-12-18 23:02:53,222 - DEBUG - scrobbler - scrobbler - Scrobbling start at 0.34% for ONE PIECE 2022-12-18 23:02:53,222 - DEBUG - scrobbler - trakt_interface - Searching trakt: Title: "ONE PIECE" 2022-12-18 23:02:53,222 - INFO - scrobbler - trakt_auth - Access token not found. Initiating device authentication. 2022-12-18 23:03:23,712 - INFO - MainThread - trakt_auth - Access token not found. Initiating device authentication. 2022-12-18 23:03:24,337 - ERROR - scrobbler - utils - Failed to connect: HTTPSConnectionPool(host='api.trakt.tv', port=443): Max retries exceeded with url: /oauth/device/code (Caused by ResponseError('too many 503 error responses')) 2022-12-18 23:03:24,339 - DEBUG - scrobbler - utils - Request: post {'url': 'https://api.trakt.tv/oauth/device/code', 'headers': {'Content-Type': 'application/json'}, 'json': {'client_id': 'ab0133a2365b2c64d70fd2adf3c7e775a4131471b56340933335af1b94785a3a'}} 2022-12-18 23:03:24,339 - ERROR - scrobbler - trakt_auth - Could not get device code. 2022-12-18 23:03:24,339 - CRITICAL - scrobbler - trakt_auth - Unable to get access token. 2022-12-18 23:03:55,287 - ERROR - MainThread - utils - Failed to connect: HTTPSConnectionPool(host='api.trakt.tv', port=443): Max retries exceeded with url: /oauth/device/code (Caused by ResponseError('too many 503 error responses')) 2022-12-18 23:03:55,287 - DEBUG - MainThread - utils - Request: post {'url': 'https://api.trakt.tv/oauth/device/code', 'headers': {'Content-Type': 'application/json'}, 'json': {'client_id': 'ab0133a2365b2c64d70fd2adf3c7e775a4131471b56340933335af1b94785a3a'}} 2022-12-18 23:03:55,287 - ERROR - MainThread - trakt_auth - Could not get device code. 2022-12-18 23:03:55,287 - CRITICAL - MainThread - trakt_auth - Unable to get access token. 2022-12-18 23:03:55,710 - ERROR - scrobbler - utils - Failed to connect: HTTPSConnectionPool(host='api.trakt.tv', port=443): Max retries exceeded with url: /search/show?query=ONE+PIECE&extended=False&field=title&page=1&limit=1 (Caused by ResponseError('too many 503 error responses')) 2022-12-18 23:03:55,710 - DEBUG - scrobbler - utils - Request: get {'url': 'https://api.trakt.tv/search/show', 'params': {'query': 'ONE PIECE', 'extended': False, 'field': 'title', 'years': None, 'page': 1, 'limit': 1}, 'headers': {'Content-Type': 'application/json', 'trakt-api-key': 'ab0133a2365b2c64d70fd2adf3c7e775a4131471b56340933335af1b94785a3a', 'trakt-api-version': '2', 'Authorization': 'Bearer None'}, 'timeout': 30} 2022-12-18 23:03:55,710 - WARNING - scrobbler - trakt_interface - Invalid trakt id for ONE PIECE 2022-12-18 23:03:55,710 - WARNING - scrobbler - scrobbler - Scrobble unsuccessful. Discarding it. 2022-12-18 23:03:55,710 - DEBUG - scrobbler - scrobbler - Scrobbling pause at 1.22% for ONE PIECE 2022-12-18 23:03:55,710 - DEBUG - scrobbler - trakt_interface - Searching trakt: Title: "ONE PIECE" 2022-12-18 23:03:55,710 - INFO - scrobbler - trakt_auth - Access token not found. Initiating device authentication. 2022-12-18 23:04:29,066 - ERROR - scrobbler - utils - Failed to connect: HTTPSConnectionPool(host='api.trakt.tv', port=443): Max retries exceeded with url: /oauth/device/code (Caused by ResponseError('too many 503 error responses')) 2022-12-18 23:04:29,066 - DEBUG - scrobbler - utils - Request: post {'url': 'https://api.trakt.tv/oauth/device/code', 'headers': {'Content-Type': 'application/json'}, 'json': {'client_id': 'ab0133a2365b2c64d70fd2adf3c7e775a4131471b56340933335af1b94785a3a'}} 2022-12-18 23:04:29,066 - ERROR - scrobbler - trakt_auth - Could not get device code. 2022-12-18 23:04:29,066 - CRITICAL - scrobbler - trakt_auth - Unable to get access token. 2022-12-18 23:05:00,272 - ERROR - scrobbler - utils - Failed to connect: HTTPSConnectionPool(host='api.trakt.tv', port=443): Max retries exceeded with url: /search/show?query=ONE+PIECE&extended=False&field=title&page=1&limit=1 (Caused by ResponseError('too many 503 error responses')) 2022-12-18 23:05:00,273 - DEBUG - scrobbler - utils - Request: get {'url': 'https://api.trakt.tv/search/show', 'params': {'query': 'ONE PIECE', 'extended': False, 'field': 'title', 'years': None, 'page': 1, 'limit': 1}, 'headers': {'Content-Type': 'application/json', 'trakt-api-key': 'ab0133a2365b2c64d70fd2adf3c7e775a4131471b56340933335af1b94785a3a', 'trakt-api-version': '2', 'Authorization': 'Bearer None'}, 'timeout': 30} 2022-12-18 23:05:00,273 - WARNING - scrobbler - trakt_interface - Invalid trakt id for ONE PIECE 2022-12-18 23:05:00,273 - WARNING - scrobbler - scrobbler - Scrobble unsuccessful. Discarding it. 2022-12-18 23:15:27,696 - INFO - MainThread - trakt_auth - Access token not found. Initiating device authentication. 2022-12-18 23:15:59,399 - ERROR - MainThread - utils - Failed to connect: HTTPSConnectionPool(host='api.trakt.tv', port=443): Max retries exceeded with url: /oauth/device/code (Caused by ResponseError('too many 503 error responses')) 2022-12-18 23:15:59,400 - DEBUG - MainThread - utils - Request: post {'url': 'https://api.trakt.tv/oauth/device/code', 'headers': {'Content-Type': 'application/json'}, 'json': {'client_id': 'ab0133a2365b2c64d70fd2adf3c7e775a4131471b56340933335af1b94785a3a'}} 2022-12-18 23:15:59,400 - ERROR - MainThread - trakt_auth - Could not get device code. 2022-12-18 23:15:59,400 - CRITICAL - MainThread - trakt_auth - Unable to get access token. 2022-12-18 23:19:28,466 - INFO - MainThread - trakt_auth - Access token not found. Initiating device authentication. 2022-12-18 23:20:00,246 - ERROR - MainThread - utils - Failed to connect: HTTPSConnectionPool(host='api.trakt.tv', port=443): Max retries exceeded with url: /oauth/device/code (Caused by ResponseError('too many 503 error responses')) 2022-12-18 23:20:00,246 - DEBUG - MainThread - utils - Request: post {'url': 'https://api.trakt.tv/oauth/device/code', 'headers': {'Content-Type': 'application/json'}, 'json': {'client_id': 'ab0133a2365b2c64d70fd2adf3c7e775a4131471b56340933335af1b94785a3a'}} 2022-12-18 23:20:00,246 - ERROR - MainThread - trakt_auth - Could not get device code. 2022-12-18 23:20:00,246 - CRITICAL - MainThread - trakt_auth - Unable to get access token. * Command: "trakts log open" or "trakts log path" or see [FAQ](https://github.com/iamkroot/trakt-scrobbler/wiki/FAQs#where-is-the-log-fileother-data-stored). ```

yolorag commented 1 year ago

Trakt API is down for at least a week so there's nothing you can connect to

Hide Trakt Data RecoveryIMPORTANT On December 11 at 7:30 pm PST our main database crashed and corrupted some of the data. We're deeply sorry for the extended downtime and we'll do better moving forward. Updates to our automated backups are already in place and they will be tested on an ongoing basis.

Data prior to November 7 is fully restored. Watched history after November 7 is still being recovered. The data should be available next week. You'll be able to import any history we recover. All other data after November 7 has been imported. Some data might be permanently lost due to data corruption. Trakt API will be turned on next week. Active VIP members will get 2 free months of membership.

SoshiNoir commented 1 year ago

Oh, thank you!