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] Unhandled Expression "season" check log file #298

Closed
abusayed0206 opened this issue May 22, 2024 · 4 comments
Closed

[BUG] Unhandled Expression "season" check log file #298

abusayed0206 opened this issue May 22, 2024 · 4 comments
Labels
setup Trouble with installation

Comments

@abusayed0206
Copy link

Describe the bug

A clear and concise description of what the bug/error is.

Desktop (please complete the following information):

  • Window 11 23H2
  • Python 3.12.3
  • MPC-hc latest

To Reproduce

Steps to reproduce the behavior:
simply stopped working.

Log file

Click to see log contents

2024-05-22 14:24:23,744 - ERROR - backlog_cleaner - init - Unhandled exception
Traceback (most recent call last):
File "C:\Python\Lib\threading.py", line 1073, in _bootstrap_inner
self.run()
File "C:\Python\Lib\threading.py", line 1431, in run
self.function(*self.args, **self.kwargs)
File "C:\Users\Sayed\pipx\venvs\trakt-scrobbler\Lib\site-packages\trakt_scrobbler\backlog_cleaner.py", line 50, in clear
if trakt.add_to_history(**item) is True:
^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\Sayed\pipx\venvs\trakt-scrobbler\Lib\site-packages\trakt_scrobbler\trakt_interface.py", line 149, in add_to_history
history = prepare_history_data(watched_at, media_info)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\Sayed\pipx\venvs\trakt-scrobbler\Lib\site-packages\trakt_scrobbler\trakt_interface.py", line 140, in prepare_history_data
{'number': media_info['season'], 'episodes': [
~~~~~~~~~~^^^^^^^^^^
KeyError: 'season'

I use the latest beta version. cause, regular version is not working for this issue. now, the beta version stopped working.
But, when I try to monitor via cmd its working.
WindowsTerminal_1of9LXpp6r

@iamkroot
Copy link
Owner

I guess something is wrong with your backlog file (see https://github.com/iamkroot/trakt-scrobbler/wiki/FAQs#what-happens-when-there-is-no-internet-connection for what it is), if you don't care about it, try deleting the watched_backlog.json file from https://github.com/iamkroot/trakt-scrobbler/wiki/FAQs#where-is-the-log-fileother-data-stored) and restart with trakts start -r.

Deleting the file will cause the scrobbler to forget some of the events that happened when trakt.tv wasn't reachable, so make sure you add those manually.

@iamkroot iamkroot added the setup Trouble with installation label Jun 13, 2024
@iamkroot
Copy link
Owner

What does trakts backlog list give btw?

@abusayed0206
Copy link
Author

Sorry for delayed reply. AFK for few days for Eid Festival.

I'll check & provide update here soon.

Thanks for the tool.

@abusayed0206
Copy link
Author

after deleting the watched_backlog.json it's working perfectly. thanks champ🫡

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

No branches or pull requests

2 participants