mirror of
https://github.com/ytdl-org/youtube-dl.git
synced 2025-08-24 07:05:53 -07:00
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:
parent
8cc6857f22
commit
49fccd687b
1 changed files with 1 additions and 0 deletions
|
@ -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):
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue