ytdl-org / youtube-dl

Command-line program to download videos from YouTube.com and other video sites
http://ytdl-org.github.io/youtube-dl/
The Unlicense
130.89k stars 9.89k forks source link

YouTube's self-referential playlist, 'Albums & Signals' #30273

Open OnesAndZer0s opened 2 years ago

OnesAndZer0s commented 2 years ago

Checklist

Verbose log

youtube-dl --flat-playlist -J -v "https://www.youtube.com/c/porterrobinson/playlists?view=71&sort=dd&shelf_id=0"
[debug] System config: []
[debug] User config: []
[debug] Custom config: []
[debug] Command-line args: ['--flat-playlist', '-J', '-v', 'https://www.youtube.com/c/porterrobinson/playlists?view=71&sort=dd&shelf_id=0']
[debug] Encodings: locale UTF-8, fs utf-8, out utf-8, pref UTF-8
[debug] youtube-dl version 2021.04.26
[debug] Python version 3.8.10 (CPython) - Linux-5.8.0-050800-generic-x86_64-with-glibc2.29
[debug] exe versions: ffmpeg 4.2.4, ffprobe 4.2.4
[debug] Proxy map: {}
{"_type": "playlist", "entries": [{"_type": "url", "url": "https://www.youtube.com/c/porterrobinson/playlists?view=1&sort=dd&shelf_id=0", "ie_key": null, "title": "Created playlists"}, {"_type": "url", "url": "https://www.youtube.com/c/porterrobinson/playlists?view=71&sort=dd&shelf_id=0", "ie_key": null, "title": "Albums & Singles"}], "id": "UCKKKYE55BVswHgKihx5YXew", "title": "Porter Robinson - Playlists", "extractor": "youtube:tab", "webpage_url": "https://www.youtube.com/c/porterrobinson/playlists?view=71&sort=dd&shelf_id=0", "webpage_url_basename": "playlists", "extractor_key": "YoutubeTab"}

Description

The playlist link for any music creators 'Albums & Signals' always links to the normal playlist page. In essence ( Using Porter Robinson purely as an example, this applies to 6 other channels I've tested ), https://www.youtube.com/c/porterrobinson/playlists?view=71&sort=dd&shelf_id=0 ( Link to 'Albums & Signals' ) is equal to https://www.youtube.com/c/porterrobinson/playlists

This causes the youtube-dl app to not be able to query anything inside of the playlist.

ghost commented 2 years ago

[debug] youtube-dl version 2021.04.26

Not version 2021.06.06.

OnesAndZer0s commented 2 years ago
youtube-dl --flat-playlist -J -v "https://www.youtube.com/c/porterrobinson/playlists?view=71&sort=dd&shelf_id=0"
[debug] System config: []
[debug] User config: []
[debug] Custom config: []
[debug] Command-line args: [u'--flat-playlist', u'-J', u'-v', u'https://www.youtube.com/c/porterrobinson/playlists?view=71&sort=dd&shelf_id=0']
[debug] Encodings: locale UTF-8, fs UTF-8, out UTF-8, pref UTF-8
[debug] youtube-dl version 2021.06.06
[debug] Python version 2.7.18 (CPython) - Linux-5.8.0-050800-generic-x86_64-with-LinuxMint-20.2-uma
[debug] exe versions: ffmpeg 4.2.4, ffprobe 4.2.4
[debug] Proxy map: {}
{"extractor": "youtube:tab", "_type": "playlist", "title": "Porter Robinson - Playlists", "extractor_key": "YoutubeTab", "webpage_url": "https://www.youtube.com/c/porterrobinson/playlists?view=71&sort=dd&shelf_id=0", "entries": [{"url": "https://www.youtube.com/c/porterrobinson/playlists?view=1&sort=dd&shelf_id=0", "_type": "url", "ie_key": null, "title": "Created playlists"}, {"url": "https://www.youtube.com/c/porterrobinson/playlists?view=71&sort=dd&shelf_id=0", "_type": "url", "ie_key": null, "title": "Albums & Singles"}], "id": "UCKKKYE55BVswHgKihx5YXew", "webpage_url_basename": "playlists"}

issue persists.

dirkf commented 2 years ago

In the channel page there are two playlist rows, 'Playlists' above and 'Albums and Signals' below. The lower one corresponds to the problem URL https://www.youtube.com/c/porterrobinson/playlists?view=71&sort=dd&shelf_id=0, but, when you navigate to it, it redirects to https://www.youtube.com/c/porterrobinson/playlists.

Since YT itself can't distinguish between 'Playlists' and 'Albums and Signals', it might be a bit of a stretch for yt-dl to do so, but suggestions are surely welcome.