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

[BUG] `TypeError: WPARAM is simple, so must be an int object (got NoneType)` error in log #270

Closed soredake closed 10 months ago

soredake commented 10 months ago

Describe the bug

I am getting TypeError: WPARAM is simple, so must be an int object (got NoneType) errors in log

Desktop (please complete the following information):

To Reproduce

Steps to reproduce the behavior:

  1. Setup trakt-scrobbler
  2. Play some media
  3. See error in log file

Log file

Click to see log contents

``` 2024-01-05 13:31:11,126 - INFO - scrobbler - scrobbler - Scrobble resume successful for Monarch: Legacy of Monsters S01E09 at 0.36% 2024-01-05 13:31:16,168 - ERROR - Thread-368 (_show_toast) - __init__ - Unhandled exception TypeError: WPARAM is simple, so must be an int object (got NoneType) 2024-01-05 13:43:10,895 - DEBUG - syncplay@mpv - monitor - action=scrobble 2024-01-05 13:43:10,895 - DEBUG - syncplay@mpv - monitor - {'state': 1, 'progress': 27.17, 'media_info': {'type': 'episode', 'title': 'monarch legacy of monsters', 'season': 1, 'episode': 9}, 'updated_at': 1704454990.895303} 2024-01-05 13:43:10,896 - DEBUG - scrobbler - scrobbler - Scrobbling pause at 27.17% for monarch legacy of monsters 2024-01-05 13:43:11,608 - INFO - scrobbler - scrobbler - Scrobble pause successful for Monarch: Legacy of Monsters S01E09 at 27.17% 2024-01-05 13:43:16,652 - ERROR - Thread-442 (_show_toast) - __init__ - Unhandled exception TypeError: WPARAM is simple, so must be an int object (got NoneType) 2024-01-05 13:47:00,908 - DEBUG - syncplay@mpv - monitor - action=scrobble 2024-01-05 13:47:00,908 - DEBUG - syncplay@mpv - monitor - {'state': 2, 'progress': 27.24, 'media_info': {'type': 'episode', 'title': 'monarch legacy of monsters', 'season': 1, 'episode': 9}, 'updated_at': 1704455220.9076269} 2024-01-05 13:47:00,908 - DEBUG - scrobbler - scrobbler - Scrobbling start at 27.24% for monarch legacy of monsters 2024-01-05 13:47:01,567 - INFO - scrobbler - scrobbler - Scrobble resume successful for Monarch: Legacy of Monsters S01E09 at 27.24% 2024-01-05 13:47:06,607 - ERROR - Thread-467 (_show_toast) - __init__ - Unhandled exception TypeError: WPARAM is simple, so must be an int object (got NoneType) ```

iamkroot commented 10 months ago

Fixed in master #259