fix: rebuild formats from yt-dlp data

makes yattee and freetube work
This commit is contained in:
2025-06-27 23:02:57 +02:00
parent 837567f8c8
commit 4e066e4b23
3 changed files with 125 additions and 8 deletions

View File

@@ -105,7 +105,7 @@ def hot(data):
# try to get the data
try:
started = time.time()
extracted_dict = ythdd_extractor.extract(url_lookup[data[1]] + videoId, getcomments=getcomments, maxcomments=comment_count)
extracted_dict = ythdd_extractor.extract(url_lookup[data[1]] + videoId, getcomments=getcomments, maxcomments=comment_count, manifest_fix=True)
extracted_dict["took"] = time.time() - started
return 200, "OK", extracted_dict
except Exception as e: