chore: correct package issues

This commit is contained in:
Benexl
2025-08-16 19:08:39 +03:00
parent 99c67a4bc0
commit 5976ab43b2
246 changed files with 96 additions and 96 deletions

9
viu_cli/core/patterns.py Normal file
View 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,
)