From 49fccd687bc07963c4c9afbe90474b9121705af9 Mon Sep 17 00:00:00 2001 From: Delusive Miraj Date: Fri, 28 Jan 2022 17:54:04 -0500 Subject: [PATCH] I set a time to sleep between each retry I set to sleep for a few seconds before each retry. --- youtube_dl/YoutubeDL.py | 1 + 1 file changed, 1 insertion(+) diff --git a/youtube_dl/YoutubeDL.py b/youtube_dl/YoutubeDL.py index 4a3cefb3c..1eacea152 100755 --- a/youtube_dl/YoutubeDL.py +++ b/youtube_dl/YoutubeDL.py @@ -832,6 +832,7 @@ class YoutubeDL(object): global playlist_pos_total playlist_pos_total += err.playlist_pos self.params['playliststart'] = playlist_pos_total + time.sleep(random.randint(3, 13)) # Lets not abuse of this 😜 we don't want to get brutal, on the server. wrapper(self, *args, **kwargs) # Execute the wrapper function. except Exception as e: if self.params.get('ignoreerrors', False):