mirror of
https://github.com/yt-dlp/yt-dlp.git
synced 2026-08-30 07:41:42 +03:00
Whitespace according to autopep8
This commit is contained in:
+2
-1
@@ -1643,7 +1643,7 @@ class YoutubeDL:
|
|||||||
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 @@ class YoutubeDL:
|
|||||||
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'
|
||||||
|
|||||||
Reference in New Issue
Block a user