aboutsummaryrefslogtreecommitdiffhomepage
path: root/libs/guessit/rules/common/__init__.py
blob: 444dc72a908825b62cf2cf33e746fe174b2ed635 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
#!/usr/bin/env python
# -*- coding: utf-8 -*-
"""
Common module
"""
import re

seps = r' [](){}+*|=-_~#/\\.,;:'  # list of tags/words separators
seps_no_groups = seps.replace('[](){}', '')
seps_no_fs = seps.replace('/', '').replace('\\', '')

title_seps = r'-+/\|'  # separators for title

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.