I want to get the playlist title of a youtube playlist and store it in a variable in a bash script.
I have already tried these things:
-e
flag but it lists only the video titles-o
flag and--get-filename
but again the same- the best try was to run yt-dlp and grep the first download line that contains the playlist name, but that seems too much for a basic job
Also note that I don't want to use:
yt-dlp -o "%(playlist_title)s"
because I want the name of the playlist only.
Is it possible to get the playlist title with yt-dlp? or I have to use a workaround like Pafy?