From 06789199c483e43cf102237ebf3ed6f49ec2da66 Mon Sep 17 00:00:00 2001 From: madprogramer Date: Wed, 30 Sep 2020 16:58:12 +0300 Subject: [PATCH] Fixed "completion" of playlist/channels (I hope) --- worker.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/worker.py b/worker.py index 5b5dd3b..5cce803 100644 --- a/worker.py +++ b/worker.py @@ -171,7 +171,7 @@ def threadrunner(): subprrun(mysession, args, vid, "forceedit-metadata", needforcemetadata, needforcecaptions) elif task == "channel": try: - y = ydl.extract_info("https://www.youtube.com/channel/"+desit.split(":", 1)[1], download=False) + #y = ydl.extract_info("https://www.youtube.com/channel/"+desit.split(":", 1)[1], download=False) #for itemyv in y["entries"]: # jobs.put(("submitdiscovery", itemyv["id"], tracker.ItemType.Video)) jobs.put(("complete", None, "channel:"+args)) @@ -179,7 +179,7 @@ def threadrunner(): print("YouTube-DL error, ignoring but not marking as complete...", "https://www.youtube.com/channel/"+desit.split(":", 1)[1]) elif task == "playlist": try: - y = ydl.extract_info("https://www.youtube.com/playlist?list="+desit.split(":", 1)[1], download=False) + #y = ydl.extract_info("https://www.youtube.com/playlist?list="+desit.split(":", 1)[1], download=False) #for itemyvp in y["entries"]: # jobs.put(("submitdiscovery", itemyvp["id"], tracker.ItemType.Video)) jobs.put(("complete", None, "playlist:"+args))