Closed p0psicles closed 7 years ago
Guessit shouldn't add information that's not in the release name; and season 1 is not in the release name.
On the other hand, our name parser uses guessit and post process the result enhancing with indexer information and sometimes db info as well. So, in short, our name parser needs to be enhanced to default it to season 1, not guessit.
Btw, the name parser logic is still messy
That is actually already being done (under certain circumstances) here: https://github.com/pymedusa/Medusa/blob/develop/medusa/post_processor.py#L611-L624
I wonder why it didn't work for you @p0psicles. Does the show have more than one season?
I have the feeling that this kind of logic is spread all over the place. Shouldn't this be in the name parser only?
Yes the show has more then 1 season. But if the season is not added, it should assume it's season 1. @ratoaq2, I know it's not guessit related, but more has somthing todo with our NameParser. I have to be specific to avoid confusion. Your right.
@ratoaq2, yes that's the point of this issue. It should be in one location. And as the NameParser is used almost everywhere (sometimes used too much), I would think this would be proper location.
Besides the fact that the logic is messy and all over the place, we should think about the negative consequences that @p0psicles' suggestion could cause. Should that rule be applied to all anime shows? What if guessit doesn't parse the season correctly and the episode ends up in season 1 by mistake? Are there any "rules" we can follow? Anyway, I agree, this is not something guessit should handle.
Yes I agree @medariox. That's also the reason why i'm discussing it, and not have changed it yet.
@p0psicles we can close this right?
Before submitting your issue:
Enable debug logging in Medusa settings, reproduce the error (be sure to disable after the bug is fixed)
Branch/Commit: Develop
Hi @ratoaq2, should guessit parse into season 1 by default, when parsing below result?
The reason why i'm asking this is because, currently is doesn't. And that is an issue for anime shows, which depend on it.
The shows are parsed without season number (None). Then adding it to cache, works fine, as we default back to season 1. https://github.com/pymedusa/Medusa/blob/develop/medusa/tv_cache.py#L376
But this only applies to adding the results to cache. Searching them through a backlog, daily or forced search, doesn't work.
So my question is, should we implement the rule by default for anime shows in
guessitthe nameparser, or add it to the GenericProvider find_search_result? As now there is a discrepancy.