0

If a video is titled "5/12", then using %(title)s produces "5_12". Is there any way to preserve special characters in the filename? I would be okay with something like "5%2F12".

Alternatively if there's a fast way to download only video names from a playlist (-e or -j seems do to one video at a time) I will accept that as well.

--get-title does one video at a time for playlists. In fact when using --download-archive the names are all printed, albeit with extra text.

  • 1
    Having a "/" in a file name would be a problem. It would be interpreted as a directory. – stumblebee May 17 '18 at 18:22
0

youtube-dl -J --flat-playlist produces a JSON dump for the whole playlist, including the original titles (with escaped double quotes). -j for a JSON dump of each video.

Your Answer

By clicking "Post Your Answer", you acknowledge that you have read our updated terms of service, privacy policy and cookie policy, and that your continued use of the website is subject to these policies.

Not the answer you're looking for? Browse other questions tagged or ask your own question.