Remove possible path separators from patterns

Close #264
This commit is contained in:
Toilal
2016-01-30 19:23:39 +01:00
parent 3f7284a635
commit 27bc2b391a
2 changed files with 12 additions and 3 deletions
+6 -3
View File
@@ -3,9 +3,12 @@
"""
Common module
"""
seps = r' [](){}+*|=§-_~#/\.,;:' # list of tags/words separators
import re
seps = r' [](){}+*|=-_~#/\\.,;:' # list of tags/words separators
seps_no_fs = seps.replace('/', '').replace('\\', '')
title_seps = r'-+/\|' # separators for title
dash = (r'-', r'[\W_]') # abbreviation used by many rebulk objects.
alt_dash = (r'@', r'[\W_]') # abbreviation used by many rebulk objects.
dash = (r'-', r'['+re.escape(seps_no_fs)+']') # abbreviation used by many rebulk objects.
alt_dash = (r'@', r'['+re.escape(seps_no_fs)+']') # abbreviation used by many rebulk objects.
+6
View File
@@ -117,3 +117,9 @@
? A very special episode
: options: -t episode
episode_details: Special
? 12 Monkeys\Season 01\Episode 05\12 Monkeys - S01E05 - The Night Room.mkv
: container: mkv
title: 12 Monkeys
episode: 5
season: 1