#551: Fixes wrong bonus detection

This commit is contained in:
Rato
2019-02-16 14:31:19 +01:00
parent 05a0c96cdc
commit 4c10925e97
2 changed files with 12 additions and 1 deletions
+2 -1
View File
@@ -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__')
+10
View File
@@ -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