Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[BUG] Backlog doesn't clear #82

Closed
haykkh opened this issue Sep 22, 2020 · 2 comments
Closed

[BUG] Backlog doesn't clear #82

haykkh opened this issue Sep 22, 2020 · 2 comments

Comments

@haykkh
Copy link

haykkh commented Sep 22, 2020

Describe the bug
Fails to clear backlog both with trakts backlog clear and it auto clearing once it gets a connection.

Desktop (please complete the following information):

  • OS: macOS
  • Python Version: 3.8.0
  • Player: Plex Media Player
  • Player Version: 4.29.2

To Reproduce
Steps to reproduce the behavior:

  1. Watch anything without network connection
  2. It logs in watched_backlog.json
  3. Fails to clear it

Log file

Click to see log contents

2020-09-22 09:39:12,657 - DEBUG - scrobbler - scrobbler - Scrobbling stop at 0.35% for What We Do in the Shadows
2020-09-22 09:39:13,083 - INFO - scrobbler - scrobbler - Scrobble stop successful for What We Do in the Shadows S01E01
2020-09-22 09:39:13,289 - DEBUG - scrobbler - backlog_cleaner - Adding item to history {'state': 2, 'progress': 99.71, 'media_info': {'type': 'episode', 'title': 'The X-Files', 'season': '1', 'episode': 1}, 'updated_at': 1600518114.526402}
2020-09-22 09:39:13,800 - DEBUG - scrobbler - backlog_cleaner - Adding item to history {'state': 2, 'progress': 95.65, 'media_info': {'type': 'episode', 'title': 'The Spy', 'season': '1', 'episode': 3}, 'updated_at': 1600539429.3437939}
2020-09-22 09:39:14,383 - DEBUG - scrobbler - backlog_cleaner - Adding item to history {'state': 2, 'progress': 95.69, 'media_info': {'type': 'episode', 'title': 'The Spy', 'season': '1', 'episode': 4}, 'updated_at': 1600542651.411433}
2020-09-22 09:39:14,927 - DEBUG - scrobbler - backlog_cleaner - Adding item to history {'state': 2, 'progress': 95.45, 'media_info': {'type': 'episode', 'title': 'The Spy', 'season': '1', 'episode': 5}, 'updated_at': 1600547718.157074}
2020-09-22 09:39:15,484 - DEBUG - scrobbler - backlog_cleaner - Adding item to history {'state': 2, 'progress': 96.17, 'media_info': {'type': 'episode', 'title': 'The Spy', 'season': '1', 'episode': 6}, 'updated_at': 1600619220.821142}
2020-09-22 09:43:19,198 - DEBUG - MainThread - backlog_cleaner - Adding item to history {'state': 2, 'progress': 99.71, 'media_info': {'type': 'episode', 'title': 'The X-Files', 'season': '1', 'episode': 1}, 'updated_at': 1600518114.526402}
2020-09-22 09:43:20,267 - DEBUG - MainThread - backlog_cleaner - Adding item to history {'state': 2, 'progress': 95.65, 'media_info': {'type': 'episode', 'title': 'The Spy', 'season': '1', 'episode': 3}, 'updated_at': 1600539429.3437939}
2020-09-22 09:43:21,249 - DEBUG - MainThread - backlog_cleaner - Adding item to history {'state': 2, 'progress': 95.69, 'media_info': {'type': 'episode', 'title': 'The Spy', 'season': '1', 'episode': 4}, 'updated_at': 1600542651.411433}
2020-09-22 09:43:21,886 - DEBUG - MainThread - backlog_cleaner - Adding item to history {'state': 2, 'progress': 95.45, 'media_info': {'type': 'episode', 'title': 'The Spy', 'season': '1', 'episode': 5}, 'updated_at': 1600547718.157074}
2020-09-22 09:43:22,375 - DEBUG - MainThread - backlog_cleaner - Adding item to history {'state': 2, 'progress': 96.17, 'media_info': {'type': 'episode', 'title': 'The Spy', 'season': '1', 'episode': 6}, 'updated_at': 1600619220.821142}

@iamkroot
Copy link
Owner

iamkroot commented Sep 22, 2020

Thanks for the detailed bug report! From what I can see, the problem seems to be that the season value is "1", that is, it's a string, instead of number 1. I'm not sure why this is happening, since I have explicitly handled this case. Could you send the log entries from a bit further up, showing something like ... - file_info - Filepath ... for one of the episodes that's failing?

EDIT: Never mind, got it. Plex has a different way of getting this info, and I haven't handled this case for it. Will push a fix soon.

@haykkh
Copy link
Author

haykkh commented Sep 22, 2020

Thanks a lot @iamkroot! Do you still want the log entries?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants