Skip to content

Commit

Permalink
Validates streaming_service with higher priority
Browse files Browse the repository at this point in the history
Close #602
  • Loading branch information
Toilal committed Aug 30, 2019
1 parent 4886863 commit 0e41d2a
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 4 deletions.
6 changes: 3 additions & 3 deletions guessit/rules/properties/episodes.py
Original file line number Diff line number Diff line change
Expand Up @@ -356,9 +356,9 @@ def validate_roman(match):
rebulk.rules(WeakConflictSolver, RemoveInvalidSeason, RemoveInvalidEpisode,
SeePatternRange(range_separators + ['_']),
EpisodeNumberSeparatorRange(range_separators),
SeasonSeparatorRange(range_separators), RemoveWeakIfMovie, RemoveWeakIfSxxExx,
RemoveWeakDuplicate, EpisodeDetailValidator, RemoveDetachedEpisodeNumber, VersionValidator,
RemoveWeak(episode_words), RenameToAbsoluteEpisode, CountValidator, EpisodeSingleDigitValidator, RenameToDiscMatch)
SeasonSeparatorRange(range_separators), RemoveWeakIfMovie, RemoveWeakIfSxxExx, RemoveWeakDuplicate,
EpisodeDetailValidator, RemoveDetachedEpisodeNumber, VersionValidator, RemoveWeak(episode_words),
RenameToAbsoluteEpisode, CountValidator, EpisodeSingleDigitValidator, RenameToDiscMatch)

return rebulk

Expand Down
2 changes: 1 addition & 1 deletion guessit/rules/properties/streaming_service.py
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ def streaming_service(config): # pylint: disable=too-many-statements,unused-arg
class ValidateStreamingService(Rule):
"""Validate streaming service matches."""

priority = 32
priority = 128
consequence = RemoveMatch

def when(self, matches, context):
Expand Down
6 changes: 6 additions & 0 deletions guessit/test/various.yml
Original file line number Diff line number Diff line change
Expand Up @@ -1139,3 +1139,9 @@
episode_title: The Siege
part: 3
type: episode

? The.Red.Line.S01E01
: title: The Red Line
season: 1
episode: 1
type: episode

0 comments on commit 0e41d2a

Please sign in to comment.