added loader, added video format check, fix video download

This commit is contained in:
nikili0n authored and Dantenerosas committed 2023-11-21 23:36:58 +03:00
1 parent 87cc8a0648
commit 934fde77ec
4 files changed
+67 -18

No files matched your search

+1 -1
View File
@@ -12,7 +12,7 @@ from src.exceptions.download_exceptions import SiteNotImplementedException
class VideoDownloader:
SUPPORTING_WEBSITES = [
"ok.ru", "vk.com", "www.youtube.com"
"ok.ru", "vk.com", "www.youtube.com",
]
BASE_DIR = os.path.dirname(os.path.dirname(os.path.abspath(__file__)))
BASE_DOWNLOAD_DIR = os.path.join(BASE_DIR, "downloads")