News for hackers. Stuff that matters.
Re:Show HN: I create a free website for download YouTube tra... by numpad0 on Sunday February 18, 2024 @01:16PM (#39421485)
I see lots of yt-dlp commands here so…

PSA: yt-dlp exits non-zero if destination filename or any of intermediate files’ names are too long for the filesystem. Use `-o "%(title).150B [%(id)s].%(ext)s"` to limit filename length(to 150 bytes in this example). “--trim-filenames” don’t work.

Re:Show HN: I create a free website for download YouTube tra... by eevmanu on Monday February 19, 2024 @10:35PM (#39437780)
to whom it may be useful

- `.` - precision flag [1]

- `150` - precision amount [2] - bytes to count after casting to binary representation

- `B` - special conversion type [3] - bytes

[1]: https://docs.python.org/3/library/stdtypes.html#printf-style...

[2]: https://docs.python.org/3/library/stdtypes.html#printf-style...

[3]: https://github.com/yt-dlp/yt-dlp?tab=readme-ov-file#output-t...