mirror of
https://github.com/yt-dlp/yt-dlp.git
synced 2025-07-11 15:58:31 +00:00
Whitespace according to autopep8
This commit is contained in:
parent
2b5c77c10a
commit
e23560b490
@ -1643,7 +1643,7 @@ def wrapper(self, *args, **kwargs):
|
|||||||
except ReExtractInfoLater as e:
|
except ReExtractInfoLater as e:
|
||||||
if wait_retries > max_retries:
|
if wait_retries > max_retries:
|
||||||
if max_retries > 0:
|
if max_retries > 0:
|
||||||
self.report_error(f'[wait] Giving up after {wait_retries-1} {"retries" if wait_retries != 2 else "retry"} while waiting.')
|
self.report_error(f'[wait] Giving up after {wait_retries - 1} {"retries" if wait_retries != 2 else "retry"} while waiting.')
|
||||||
else:
|
else:
|
||||||
self.report_error('[wait] Video is still unavailable after waiting.')
|
self.report_error('[wait] Video is still unavailable after waiting.')
|
||||||
return
|
return
|
||||||
@ -1678,6 +1678,7 @@ def wrapper(self, *args, **kwargs):
|
|||||||
def _wait_until(self, till):
|
def _wait_until(self, till):
|
||||||
format_dur = lambda dur: '%02d:%02d:%02d' % timetuple_from_msec(dur * 1000)[:-1]
|
format_dur = lambda dur: '%02d:%02d:%02d' % timetuple_from_msec(dur * 1000)[:-1]
|
||||||
last_msg = ''
|
last_msg = ''
|
||||||
|
|
||||||
def progress(msg):
|
def progress(msg):
|
||||||
nonlocal last_msg
|
nonlocal last_msg
|
||||||
full_msg = f'{msg}\n'
|
full_msg = f'{msg}\n'
|
||||||
|
Loading…
Reference in New Issue
Block a user