yt-dlp : How can I have separate file format for playlists and single videos

Issue

This Content is from Stack Overflow. Question asked by Eir Nym

I have an urls file where I store all links I want to download. I download from it using yt-dlp -a urls.

For playlists I’d like to put videos into a folder, like it’s shown in documentation examples, while for single videos I’d like to keep the separate file format though.

How can I do it with a single configuration file? If it’s not possible with a single configuration file, I’d want to have other options in a single common place.

Note: In documentation I saw TYPES: in --output, but I don’t know how to use it and if it’s applicable to my case.



Solution

This question is not yet answered, be the first one who answer using the comment. Later the confirmed answer will be published as the solution.

This Question and Answer are collected from stackoverflow and tested by JTuto community, is licensed under the terms of CC BY-SA 2.5. - CC BY-SA 3.0. - CC BY-SA 4.0.

people found this article helpful. What about you?