Add set_content into generic_extractor.py.

This commit is contained in:
erinhmclark
2025-02-25 20:07:00 +00:00
parent cf1219f798
commit 9bc6dd5c3c

View File

@@ -86,7 +86,7 @@ class GenericExtractor(Extractor):
# keep both 'title' and 'fulltitle', but prefer 'title', falling back to 'fulltitle' if it doesn't exist
result.set_title(video_data.pop('title', video_data.pop('fulltitle', "")))
result.set_url(url)
if "description" in video_data: result.set_content(video_data["description"])
# extract comments if enabled
if self.comments:
result.set("comments", [{