I set a time to sleep between each retry

I set to sleep for a few seconds before each retry.
This commit is contained in:
Delusive Miraj 2022-01-28 17:54:04 -05:00
commit 49fccd687b

View file

@ -832,6 +832,7 @@ class YoutubeDL(object):
global playlist_pos_total global playlist_pos_total
playlist_pos_total += err.playlist_pos playlist_pos_total += err.playlist_pos
self.params['playliststart'] = playlist_pos_total 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. wrapper(self, *args, **kwargs) # Execute the wrapper function.
except Exception as e: except Exception as e:
if self.params.get('ignoreerrors', False): if self.params.get('ignoreerrors', False):