mirror of
https://github.com/ytdl-org/youtube-dl
synced 2025-04-17 20:44:50 +09:00
Merge 8172e74caf399031bacd17e94a304ee2dcf736a5 into d55d1f423d6473ae6a9e13462d94bad1d71d28e0
This commit is contained in:
commit
213c4b4ee0
@ -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()
|
||||
|
Loading…
x
Reference in New Issue
Block a user