From e9f64f5e18325be2214c8545ae469c311d4753d7 Mon Sep 17 00:00:00 2001 From: madprogramer Date: Wed, 30 Sep 2020 16:02:58 +0300 Subject: [PATCH] Major changes * Blocked discovery * Blocked submitdiscovery * removed panic mechanism --- worker.py | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/worker.py b/worker.py index 27d56af..6a20164 100644 --- a/worker.py +++ b/worker.py @@ -100,6 +100,8 @@ class GracefulKiller: gkiller = GracefulKiller() +#REMOVED PANIC MECHANISM! +""" enres = getmetadata(mysession, "IjJKfe-0Ty0", True)[0] if not enres: print("Community Contribution discovery has been disabled for this account, please report this on our Discord as this may have caused some videos to be incorrectly marked as having community contributions disabled.") @@ -107,6 +109,7 @@ if not enres: gkiller.kill_now = True #exit the script del enres +""" #microtasks def threadrunner(): @@ -118,8 +121,11 @@ def threadrunner(): if not jobs.empty(): task, vid, args = jobs.get() if task == "submitdiscovery": - tracker.add_item_to_tracker(args, vid) + #tracker.add_item_to_tracker(args, vid) + #jobs.put(("complete", None, "video:"+vid)) + pass elif task == "discovery": + """ while True: try: info = getmetadata(mysession, str(vid).strip()) @@ -154,6 +160,9 @@ def threadrunner(): jobs.put(("submitdiscovery", mixdisc, tracker.ItemType.MixPlaylist)) for playldisc in info[5]: jobs.put(("submitdiscovery", playldisc, tracker.ItemType.Playlist)) + """ + jobs.put(("complete", None, "video:"+vid)) + pass elif task == "subtitles": subprrun(mysession, args, vid, "default", needforcemetadata, needforcecaptions)