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] dots are stripped from file name leads to wrong title matched #287

Closed
soredake opened this issue Mar 27, 2024 · 2 comments
Closed

Comments

@soredake
Copy link

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):

  • OS and Version: Windows 11 23H2
  • Python Version: Python 3.12.2
  • Player and Version: mpv.net 7.1.1.0

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
Copy link
Owner

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 iamkroot closed this as completed Apr 1, 2024
@iamkroot
Copy link
Owner

iamkroot commented Apr 1, 2024

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

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