Skip to content

Commit 01edc67

Browse files
bazilinskyyclaude
andcommitted
Workers: a NO_YOUTUBE machine's helper line says it asks YouTube nothing, not that YouTube asks it to sign in
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
1 parent daac6bd commit 01edc67

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

‎propose_segments.py‎

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -248,7 +248,9 @@ def _yt_dlp_elsewhere(args, timeout, why):
248248
if local_dir is not None:
249249
subprocess.run(['scp', '-q', '-o', 'BatchMode=yes', f'{host}:{far}/*', local_dir or '.'],
250250
check=True, capture_output=True, timeout=3600)
251-
print(f' fetched through {host} (YouTube asks this machine to sign in)', flush=True)
251+
why_here = ('this machine asks YouTube nothing' if me in NO_YOUTUBE
252+
else 'YouTube asks this machine to sign in')
253+
print(f' fetched through {host} ({why_here})', flush=True)
252254
return got['out']
253255
except (subprocess.SubprocessError, OSError, ValueError) as e:
254256
print(f' {host} could not help: {str(e)[:150]}', flush=True)

0 commit comments

Comments
 (0)