mirror of
https://github.com/Benexl/FastAnime.git
synced 2026-01-09 03:41:02 -08:00
chore: correct package issues
This commit is contained in:
9
viu_cli/core/patterns.py
Normal file
9
viu_cli/core/patterns.py
Normal file
@@ -0,0 +1,9 @@
|
||||
import re
|
||||
|
||||
YOUTUBE_REGEX = re.compile(
|
||||
r"(https?://)?(www\.)?(youtube|youtu|youtube-nocookie)\.(com|be)/.+", re.IGNORECASE
|
||||
)
|
||||
TORRENT_REGEX = re.compile(
|
||||
r"^(?:(magnet:\?xt=urn:btih:(?:[a-zA-Z0-9]{32}|[a-zA-Z0-9]{40}).*)|(https?://.*\.torrent))$",
|
||||
re.IGNORECASE,
|
||||
)
|
||||
Reference in New Issue
Block a user