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
464 stars 30 forks source link

[BUG] dots are stripped from file name leads to wrong title matched #287

Closed soredake closed 7 months ago

soredake commented 8 months ago

Describe the bug

Dots are stripped from file name leads to wrong title matched, P. E. Teacher - S01E01 - Episode 1.mkv are matched to Teachers on trakt.

Desktop (please complete the following information):

To Reproduce

Steps to reproduce the behavior:

  1. Name file P. E. Teacher - S01E01 - Episode 1.mkv
  2. Open it.
  3. trakt-scrobbler will match it to "Teachers"

Log file

Click to see log contents

``` 2024-03-27 17:14:06,053 - DEBUG - mpv - file_info - Raw filepath 'C:\\Users\\user\\torrents\\tv\\P. E. Teacher\\Season 1\\P. E. Teacher - S01E01 - Episode 1.mkv' 2024-03-27 17:14:06,054 - DEBUG - mpv - file_info - Matched whitelist entry WindowsPath('C:/Users/user/torrents/tv') 2024-03-27 17:14:06,074 - DEBUG - mpv - file_info - Guess: MatchesDict({'title': 'P E Teacher', 'season': 1, 'episode': 1, 'episode_title': 'Episode 1', 'container': 'mkv', 'mimetype': 'video/x-matroska', 'type': 'episode'}) 2024-03-27 17:14:06,075 - DEBUG - mpv - monitor - action=scrobble 2024-03-27 17:14:06,075 - DEBUG - mpv - monitor - {'state': 2, 'progress': 0.28, 'media_info': {'type': 'episode', 'title': 'P E Teacher', 'season': 1, 'episode': 1}, 'updated_at': 1711552446.0753891} 2024-03-27 17:14:06,075 - DEBUG - scrobbler - scrobbler - Scrobbling start at 0.28% for P E Teacher ```

iamkroot commented 7 months ago

Not sure if we can do much here. This is just one of those edge cases that need to be fixed manually using a remap_rules.toml file

iamkroot commented 7 months ago

Happy to reopen if you/others have more ideas on how this can be fixed.