Added audio downloading, switched to yt-dlp

- enabling and disabling mods using config.json works now
- switched to yt-dlp (it supports YouTube without problems)
- added audio downloading
- changed 'mvd' mod tag to 'md'
- added filesize in qualities list
- changed thumbnail size 280x280 at most
- .webm and .mhtml extensions are ignored now
- fixed encoding errors in utils.get_md5 (they are ignored now, so not an actual fix, but it 100% won't break anythink)
This commit is contained in:
Nikita Tyukalov, ASUS, Linux
2025-11-24 00:31:03 +03:00
parent fce7968a72
commit 0bcd47ab4c
3 changed files with 218 additions and 61 deletions

View File

@@ -36,7 +36,7 @@ def get_all_mods() -> list[str]:
def get_md5(data: str) -> str:
''' Returns MD5 for data '''
md5_hash = hashlib.md5()
md5_hash.update(str(data).encode('ascii'))
md5_hash.update(str(data).encode('ascii', errors='ignore'))
return md5_hash.hexdigest()