added loader, added video format check, fix video download

This commit is contained in:
2023-08-15 01:38:45 +03:00
committed by nikili0n
parent acc48c7bc8
commit e89855d91a
4 changed files with 67 additions and 18 deletions

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")