mirror of
https://github.com/zoriya/guessit.git
synced 2026-06-07 12:15:13 +00:00
#551: Fixes wrong bonus detection
This commit is contained in:
@@ -26,7 +26,8 @@ def bonus(config): # pylint:disable=unused-argument
|
||||
rebulk = rebulk.regex_defaults(flags=re.IGNORECASE)
|
||||
|
||||
rebulk.regex(r'x(\d+)', name='bonus', private_parent=True, children=True, formatter=int,
|
||||
validator={'__parent__': lambda match: seps_surround},
|
||||
validator={'__parent__': seps_surround},
|
||||
validate_all=True,
|
||||
conflict_solver=lambda match, conflicting: match
|
||||
if conflicting.name in ('video_codec', 'episode') and 'weak-episode' not in conflicting.tags
|
||||
else '__default__')
|
||||
|
||||
@@ -974,3 +974,13 @@
|
||||
subtitle_language: und
|
||||
container: mp4
|
||||
type: episode
|
||||
|
||||
? Shaolin 2011.720p.BluRay.x264-x0r.mkv
|
||||
: title: Shaolin
|
||||
year: 2011
|
||||
screen_size: 720p
|
||||
source: Blu-ray
|
||||
video_codec: H.264
|
||||
release_group: x0r
|
||||
container: mkv
|
||||
type: movie
|
||||
|
||||
Reference in New Issue
Block a user