-
-
Notifications
You must be signed in to change notification settings - Fork 6.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Respect --ignore-errors
for --write-info-json
#7576
Comments
use the output template to shorten the filename, e.g.: |
try again with - yt-dlp -o '%(title).4s' --write-info-json "xo5qfiAR6GY" |
OMG i completely missed the last line, Thanks I don't like to use -output, trying to keep the file, name intact for archival purpose, is there any way to ignore json/name errors and keep downloading the video? |
|
The name will be too long for the video too. |
Apparently not, see my verbose logs below:
|
This is strange .description is 12 char and .info.json is 10 char but yt-dlp able to download description but not the json.
|
why does the info json have |
Even its add .ittz5zw_.tmp to the name its shouldn't be a a problem since max file name is 255 and path length is 4096. not sure why even its add "ittz5zw" to the name 🙄. Total char count 104 "땡큐 수트댄스_점핑안무 점핑 점핑피트니스 최신점핑 점핑작품 점핑동작 최신가요 다이어트점핑 쉬운점핑 트램펄린안무⧸에어로점핑 [xo5qfiAR6GY].info.json.ittz5zw_.tmp" Total char count is 134 |
I'll fix this, but you should shorten the filename anyway imho
In Linux, it's 255 UTF-8 bytes so UTF-16 chars count double
Like video, infojson is written to temp file first and then renamed. This is done to make sure large infojson are written atomically. |
.description got more characters than .info.json so why yt-dlp able to download description file without encountering any "name too long" error? is it because description is written without temp file? |
yes |
why not just .tmp then? |
Not sure. ytdl-org/youtube-dl@181c865 - could be just that it was eaier to use NamedTemporaryFile, or there could be some actual reason |
for video its understandable since its require muxing but why yt-dlp need to create temp file for json? |
|
--ignore-errors
for --write-info-json
DO NOT REMOVE OR SKIP THE ISSUE TEMPLATE
Checklist
Please make sure the question is worded well enough to be understood
video in question is xo5qfiAR6GY
yt-dlp --write-info-json --continue --ignore-errors xo5qfiAR6GY
It downloads perfectly on windows but getting error on linux
I thought "/" on the title causing the issue but video downloads without any issue when not using "--write-info-json" parameters.
is there any way to ignore json errors and keep downloading the video and what causing this error?
Provide verbose output that clearly demonstrates the problem
yt-dlp -vU <your command line>
)'verbose': True
toYoutubeDL
params instead[debug] Command-line config
) and insert it belowComplete Verbose Output
The text was updated successfully, but these errors were encountered: