This commit is contained in:
paboum 2025-04-09 01:32:12 +02:00 committed by GitHub
commit 0d079e0cdc
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -2,5 +2,18 @@
import youtube_dl
import os
MAX_LENGTH = 0
for i in range(1000):
try:
os.stat('a' * i)
except FileNotFoundError:
pass
except OSError:
MAX_LENGTH = i - 1
break
if __name__ == '__main__':
youtube_dl.main()