You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
I'm playing this video file: M:\tmp\Mr Inbetween S01-S03 1080p WEBRip DD5.1Ch HEVC 10Bit-Shieldearer\Season 01\Mr Inbetween - S01E01 - The Pee Pee Guy.mkv
Note that the filename contains all details necessary to properly scrobble this video. However, trakts returns this message: Multiple probable seasons found: (1,2,3). Consider renaming the folder.
Thank you for the detailed bug report! It is very concise and clear.
The current code indeed tries to run the validations before applying remap rules. And I'm not sure if I would like to change this behaviour. The reasoning is that remap rules, at least in my head, are meant for mapping one valid media info to another. It greatly simplifies things to assume valid media info as the input for remap rules.
Quick solution
Since you mention renaming is not an option, the appropriate solution for this is to use custom regexes.
Example, I have used .*?/Breaking Bad \(2008\) Season 1-5 S01-S05 .*?/Season \d+/(?P<title>Breaking Bad) .*? - S(?P<season>\d+)E(?P<episode>\d+) - (?:.*) for this issue of multiple seasons.
Considerations for changing logic
(This is mostly for my own benefit, but please feel free to comment if you have opinions.)
If we start allowing raw media info for remap rules, I fear the data might be too arbitrary to make sense. For instance - what happens when the user adds match.season = "1:2" to your rule above?
[[rules]]
match.path = ".*Mr Inbetween.*Season 01.*"match.season = "1:2"# match either 1 or 2type = "episode"id.trakt_slug = "mr-inbetween"season = 1
Does this rule apply to the given file? You can have two answers:
season = [1,2,3] implies all three seasons are present in the file. So this match rule shouldn't apply.
the above is clearly non-sensical. season = [1,2,3] should imply any of the three seasons. Sure, but now the logic breaks down for multi-episode files (like double-episodes) which does include all the listed episodes.
To maintain consistency, we have to go with option 1, and that is also confusing for the end user.
Even after all this, I do feel it might be best to allow remap_rules to work with raw input. Need to come up with a coherent design that subsumes include_regexes and validations.
Describe the bug
I'm playing this video file:
M:\tmp\Mr Inbetween S01-S03 1080p WEBRip DD5.1Ch HEVC 10Bit-Shieldearer\Season 01\Mr Inbetween - S01E01 - The Pee Pee Guy.mkv
Note that the filename contains all details necessary to properly scrobble this video. However, trakts returns this message:
Multiple probable seasons found: (1,2,3). Consider renaming the folder.
So I add the following remap rule:
Still, trakts returns:
Multiple probable seasons found: (1,2,3). Consider renaming the folder.
Renaming the folder is not an option.
Desktop (please complete the following information):
To Reproduce
Steps to reproduce the behavior:
Mr Inbetween S01-S03 1080p WEBRip DD5.1Ch HEVC 10Bit-Shieldearer
Season 01
Mr Inbetween - S01E01 - The Pee Pee Guy.mkv
in theSeason 01
folderremap_rules.toml
Log file
Click to see log contents
The text was updated successfully, but these errors were encountered: