aboutsummaryrefslogtreecommitdiffstats
path: root/python_update
diff options
context:
space:
mode:
Diffstat (limited to 'python_update')
-rwxr-xr-xpython_update/raw_update.py14
1 files changed, 10 insertions, 4 deletions
diff --git a/python_update/raw_update.py b/python_update/raw_update.py
index c443960..21569d2 100755
--- a/python_update/raw_update.py
+++ b/python_update/raw_update.py
@@ -118,10 +118,16 @@ class Fetcher:
with yt_dlp.YoutubeDL(self.ydl_opts) as ydl:
processed = ydl.process_ie_result(entry, False)
- # walk through the ie_result dictionary to force evaluation of lazily loaded resources
- repr(processed)
-
- return processed
+ return {
+ "description": processed.get("description"),
+ "duration": processed.get("duration"),
+ "upload_date": processed.get("upload_date"),
+ "thumbnails": processed.get("thumbnails"),
+ "thumbnail": processed.get("thumbnail"),
+ "title": processed.get("title"),
+ "webpage_url": processed.get("webpage_url"),
+ "id": processed.get("id")
+ }
async def process_entry(self, url: str, entry: Any) -> Optional[Any]:
try: