change series - Expose identified_by and exact#1796
Merged
liiight merged 1 commit intoFlexget:developfrom Apr 18, 2017
Merged
Conversation
Exposing these values allows other plugins to determine what their values were at the time of parsing.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Motivation for changes:
Exposing the
identified_byandexactvalues allows other plugins to determine what their values were at the time of parsing. This allows, for example, the btn plugin to determine if the user wants a search done with the exact series name only, or if a second search (which strips any parenthetical information from the title) should also be run. It also allows thenext_episode_*plugins to determine if an unknown series, or a series still being learned (i.e. set toidentified_by: autoin the database) should be treated as ep or sequence ID type, or rejected.Detailed changes:
series_identified_byandseries_exactto the entry when itsseries_*fields are populated after parsing.series_identified_bywill be one of the ID types orauto.series_exactwill beTrueorFalse.Addressed issues:
Logs:
Note: irrelevant fields and lines were snipped from all logs.
Config 1 -
exactnot enabled by config or auto;identified_byisautodue to new seriesLog 1 (irrelevant fields snipped)
Config 2 - auto enabling of
exact;identified_byisautodue to new seriesLog 2:
Config 3 (after removing My Show and My Show: The Spinoff from the database) - explicit enabling of
exact; explicit setting ofidentified_byfor a new series that would otherwise beautoLog 3: