From e9f64f5e18325be2214c8545ae469c311d4753d7 Mon Sep 17 00:00:00 2001 From: madprogramer Date: Wed, 30 Sep 2020 16:02:58 +0300 Subject: [PATCH 1/3] 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) From cac031b425782edf5b306bd49cc6bfc72034bb4d Mon Sep 17 00:00:00 2001 From: madprogramer Date: Wed, 30 Sep 2020 16:08:26 +0300 Subject: [PATCH 2/3] Protection Mechanism #2 Disarmed --- worker.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/worker.py b/worker.py index 6a20164..6b1e88b 100644 --- a/worker.py +++ b/worker.py @@ -236,6 +236,8 @@ def threadrunner(): # get a new task from tracker collect() #cleanup + #Protection Mechanism Disarmed + """ #check that the account has community contributions enabled every 50th item validationtimes += 1 if not validationtimes % 50: @@ -245,6 +247,7 @@ def threadrunner(): shouldgetjob = False gkiller.kill_now = True #exit the script del enres + """ if shouldgetjob: desit = tracker.request_item_from_tracker() From df266998238db51a5c1258ec86a1dacb753addd6 Mon Sep 17 00:00:00 2001 From: madprogramer Date: Wed, 30 Sep 2020 16:12:57 +0300 Subject: [PATCH 3/3] Added a message if somehow shouldgetjob is set to false --- worker.py | 1 + 1 file changed, 1 insertion(+) diff --git a/worker.py b/worker.py index 6b1e88b..081a4d7 100644 --- a/worker.py +++ b/worker.py @@ -311,6 +311,7 @@ for x in threads: del x if not shouldgetjob: + print("PROTECTION MECHANISM #3 WAS SOMEHOW TRIGERRED") 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.") print("Exiting...") \ No newline at end of file