blackjack4494 / yt-dlc

media downloader and library for various sites.
The Unlicense
2.91k stars 368 forks source link

[Broken] Youtube output folder title problems #283

Open snvoid opened 3 years ago

snvoid commented 3 years ago

Checklist

Verbose log


!youtube-dlc --download-archive '/content/archive/archive.txt' -v --force-ipv4 --playlist-start 1 --playlist-end 33  -f best -icw -o  "/content/download/%(playlist)s/%(upload_date)s - %(title)s.%(ext)s" https://www.youtube.com/user/RSDMaximilian/videos
[debug] System config: []
[debug] User config: []
[debug] Custom config: []
[debug] Command-line args: ['--download-archive', '/content/archive/archive.txt', '-v', '--force-ipv4', '--playlist-start', '1', '--playlist-end', '33', '-f', 'best', '-icw', '-o', '/content/download/%(playlist)s/%(upload_date)s - %(title)s.%(ext)s', 'https://www.youtube.com/user/RSDMaximilian/videos']
[debug] Loading archive file '/content/archive/archive.txt'
[debug] Encodings: locale UTF-8, fs utf-8, out UTF-8, pref UTF-8
[debug] youtube-dlc version 2020.11.11-3
[debug] Python version 3.6.9 (CPython) - Linux-4.19.112+-x86_64-with-Ubuntu-18.04-bionic
[debug] exe versions: ffmpeg 3.4.8, ffprobe 3.4.8
[debug] Proxy map: {}
[youtube:user] RSDMaximilian: Downloading channel page
[youtube:playlist] UUmIq20BSpfq7Y5qS-dQudog: Downloading webpage
[download] Downloading playlist: UUmIq20BSpfq7Y5qS-dQudog```

## Description

<!--
Provide an explanation of your issue in an arbitrary form. Provide any additional information, suggested solution and as much context and examples as possible.
If work on your issue requires account credentials please provide them or explain how one can obtain them.
-->

Comparing this functionality with youtube-dl (original) which works fine. 

When using yt-dlc, when selecting output as (playlist) the name of the folder ends up being the string "UUmIq20BSpfq7Y5qS-dQudog" instead of the title of the playlist or in this case channel. I tried changing the output to (channel), (playlist_title) and (playlist) and all result in the same url string. 

In youtube-dl (original) the folder is titled correctly with the playlist or channel name regardless of if you use (channel) or (playlist). 

playlist (string): Name or id of the playlist that contains the video
channel (string): Full name of the channel the video is uploaded on
pukkandan commented 3 years ago

channel is not currently working for either ytdl or dlc. playlist is fixed in #280