mirror of
https://github.com/Benexl/FastAnime.git
synced 2025-12-21 06:42:55 -08:00
10 lines
276 B
Python
10 lines
276 B
Python
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,
|
|
)
|