-
Notifications
You must be signed in to change notification settings - Fork 9
/
Copy pathconstants.py
28 lines (21 loc) · 1.65 KB
/
constants.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
from questionary import Style
re_exp = {
'SITE_REGEX': r"(?P<scheme>https?://)?(?P<host>(?:\S+.)?9anime\.(?:to|id|club|center))/?(?P<watch>watch)?/?(?P<slug>[-a-zA-Z0-9]+)\.?(?P<id>[-a-zA-Z0-9]+)?/?(?:ep-(?P<ep>[0-9]+))?",
'VIDSTREAM_RE': r"(?P<scheme>https?://)?(?P<host>(?:\S+.)?(?:vidstreamz|vidstream|vizcloud2)\.(?:online|pro))/(?:embed|e)/(?P<id>[A-Z0-9]+)",
'MCLOUD_RE': r"(?P<scheme>https?://)?(?P<host>(?:\S+.)?mcloud\.to)/(?:embed|e)/(?P<id>[a-zA-Z0-9]+)",
'VIDEOVARD_RE': r"(?P<scheme>https?://)?(?P<host>(?:\S+.)?videovard\.(?:sx|to))/[ved]/(?P<id>[a-zA-Z0-9]+)",
'STREAMTAPE_RE': r"(?P<scheme>https?://)?(?P<host>(?:\S+.)?s(?:tr)?(?:eam)?(?:ta?p?e?|cloud)\.(?:com|cloud|net|pe|site|link|cc|online))/(?:e|v)/(?P<id>[a-zA-Z0-9]+)",
'MP4UPLOAD_RE': r"(?P<scheme>https?://)?(?P<host>(?:\S+.)?mp4upload\.com)/(?:embed-)?(?P<id>[a-zA-Z0-9]+)",
}
questionary_styles = Style([
('qmark', 'fg:#673ab7 bold'), # token in front of the question
('question', 'bold'), # question text
('answer', 'fg:#ffa530 bold'), # submitted answer text behind the question
('pointer', 'fg:#ffa530 bold'), # pointer used in select and checkbox prompts
('highlighted', 'fg:#75e653 bold'), # pointed-at choice in select and checkbox prompts
('selected', 'fg:#95ff2b'), # style for a selected item of a checkbox
('separator', 'fg:#cc5454'), # separator in lists
('instruction', ''), # user instructions for select, rawselect, checkbox
('text', ''), # plain text
('disabled', 'fg:#858585 italic') # disabled choices for select and checkbox prompts
])