Repository: yt-dlp
Issue: YouTube/YouTube Music: Wrong album name
Labels: geo-blocked,site-enhancement,site:youtube

### DO NOT REMOVE OR SKIP THE ISSUE TEMPLATE

- [X] I understand that I will be **blocked** if I *intentionally* remove or skip any mandatory\* field

### Checklist

- [X] I'm reporting that yt-dlp is broken on a **supported** site
- [X] I've verified that I have **updated yt-dlp to nightly or master** ([update instructions](https://github.com/yt-dlp/yt-dlp#update-channels))
- [X] I've checked that all provided URLs are playable in a browser with the same IP and same login details
- [X] I've checked that all URLs and arguments with special characters are [properly quoted or escaped](https://github.com/yt-dlp/yt-dlp/wiki/FAQ#video-url-contains-an-ampersand--and-im-getting-some-strange-output-1-2839-or-v-is-not-recognized-as-an-internal-or-external-command)
- [X] I've searched [known issues](https://github.com/yt-dlp/yt-dlp/issues/3766) and the [bugtracker](https://github.com/yt-dlp/yt-dlp/issues?q=) for similar issues **including closed ones**. DO NOT post duplicates
- [X] I've read the [guidelines for opening an issue](https://github.com/yt-dlp/yt-dlp/blob/master/CONTRIBUTING.md#opening-an-issue)
- [X] I've read about [sharing account credentials](https://github.com/yt-dlp/yt-dlp/blob/master/CONTRIBUTING.md#are-you-willing-to-share-account-details-if-needed) and I'm willing to share it if required

### Region

Germany

### Provide a description that is worded well enough to be understood

For some reason the Album name is wrong:

yt-dlp uses this playlist-link instead of the one I give as an input:
https://www.youtube.com/playlist?list=OLAK5uy_lHa3_q4J0gQo6dJLtjAajASoQgLBjziFI

The Album is called "Back in Black (Live)". But yt-dlp adds the Album name "Back in Black", which is the wrong one.
In the description of the Songs the album name is "Back in Black" but I think, that might be the wrong spot to aquire the albumname. The right one is in that box below the description:

![image](https://github.com/yt-dlp/yt-dlp/assets/62517154/8ea7d8e7-e670-4298-9ae1-460f68ed4b17)


I think that this a bug. Not sure.

```bash
yt-dlp -f bestaudio --extract-audio --parse-metadata "release_year:(?s)(?P<meta_date>.+)" --parse-metadata "playlist_index:(?s)(?P<track_number>.+)" --audio-format m4a --embed-metadata --add-metadata --embed-thumbnail --output "%(album)s/%(title)s.%(ext)s" "https://music.youtube.com/playlist?list=OLAK5uy_lHa3_q4J0gQo6dJLtjAajASoQgLBjziFI"
```

### Provide verbose output that clearly demonstrates the problem

- [X] Run **your** yt-dlp command with **-vU** flag added (`yt-dlp -vU <your command line>`)
- [ ] If using API, add `'verbose': True` to `YoutubeDL` params instead
- [X] Copy the WHOLE output (starting with `[debug] Command-line config`) and insert it below

### Complete Verbose Output

```shell
[debug] Command-line config: ['-vU', '-f', 'bestaudio', '--extract-audio', '--parse-metadata', 'release_year:(?s)(?P<meta_date>.+)', '--parse-metadata', 'playlist_index:(?s)(?P<track_number>.+)', '--audio-format', 'm4a', '--embed-metadata', '--add-metadata', '--embed-thumbnail', '--output', '%(album)s/%(title)s.%(ext)s', 'https://music.youtube.com/playlist?list=OLAK5uy_lHa3_q4J0gQo6dJLtjAajASoQgLBjziFI']
[debug] Encodings: locale UTF-8, fs utf-8, pref UTF-8, out utf-8, error utf-8, screen utf-8
[debug] yt-dlp version stable@2024.05.27 from yt-dlp/yt-dlp [12b248ce6]
[debug] Python 3.12.4 (CPython x86_64 64bit) - Linux-6.9.4-201.fsync.fc40.x86_64-x86_64-with-glibc2.39 (OpenSSL 3.3.1 4 Jun 2024, glibc 2.39)
[debug] exe versions: ffmpeg 6.1.1 (setts), ffprobe 6.1.1, rtmpdump 2.4
[debug] Optional libraries: certifi-2024.06.02, mutagen-1.47.0, requests-2.32.3, secretstorage-3.3.3, sqlite3-3.46.0, urllib3-1.26.18
[debug] Proxy map: {}
[debug] Request Handlers: urllib, requests
[debug] Loaded 1820 extractors
[debug] Fetching release info: https://api.github.com/repos/yt-dlp/yt-dlp/releases/latest
Latest version: stable@2024.05.27 from yt-dlp/yt-dlp
yt-dlp is up to date (stable@2024.05.27 from yt-dlp/yt-dlp)
[youtube:tab] Extracting URL: https://music.youtube.com/playlist?list=OLAK5uy_lHa3_q4J0gQo6dJLtjAajASoQgLBjziFI
WARNING: [youtube:tab] YouTube Music is not directly supported. Redirecting to https://www.youtube.com/playlist?list=OLAK5uy_lHa3_q4J0gQo6dJLtjAajASoQgLBjziFI
[youtube:tab] OLAK5uy_lHa3_q4J0gQo6dJLtjAajASoQgLBjziFI: Downloading webpage
[youtube:tab] OLAK5uy_lHa3_q4J0gQo6dJLtjAajASoQgLBjziFI: Redownloading playlist API JSON with unavailable videos
[download] Downloading playlist: Album - Back In Black (Live)
[debug] Skipping writing playlist thumbnail
[youtube:tab] Playlist Album - Back In Black (Live): Downloading 5 items of 5
[download] Downloading item 1 of 5
[youtube] Extracting URL: https://music.youtube.com/watch?v=jvLtXUwvYbk
[youtube] jvLtXUwvYbk: Downloading webpage
[youtube] jvLtXUwvYbk: Downloading ios player API JSON
[youtube] jvLtXUwvYbk: Downloading ios music player API JSON
[youtube] jvLtXUwvYbk: Downloading web music client config
[youtube] jvLtXUwvYbk: Downloading player 84314bef
[youtube] jvLtXUwvYbk: Downloading web music player API JSON
[debug] [youtube] Extracting signature function js_84314bef_111
[debug] Loading youtube-sigfuncs.js_84314bef_111 from cache
[debug] Loading youtube-nsig.84314bef from cache
[debug] [youtube] Decrypted nsig pAgcP1XSbwxJ6KBGRC => Hk3aVZUNp9dozg
[debug] [youtube] Extracting signature function js_84314bef_107
[debug] Loading youtube-sigfuncs.js_84314bef_107 from cache
[debug] Loading youtube-nsig.84314bef from cache
[debug] [youtube] Decrypted nsig 5meu4FFPP7sytle1y2 => CdH36qf6FmNHng
[youtube] jvLtXUwvYbk: Downloading m3u8 information
[youtube] jvLtXUwvYbk: Downloading m3u8 information
[debug] Sort order given by extractor: quality, res, fps, hdr:12, source, vcodec:vp9.2, channels, acodec, lang, proto
[debug] Formats sorted by: hasvid, ie_pref, quality, res, fps, hdr:12(7), source, vcodec:vp9.2(10), channels, acodec, lang, proto, size, br, asr, vext, aext, hasaud, id
[debug] Searching for '(?s)(?P<meta_date>.+)' in '%(release_year)s'
[MetadataParser] Parsed meta_date from '%(release_year)s': 'NA'
[debug] Searching for '(?s)(?P<track_number>.+)' in '%(playlist_index)s'
[MetadataParser] Parsed track_number from '%(playlist_index)s': '1'
[info] jvLtXUwvYbk: Downloading 1 format(s): 251
[info] Downloading video thumbnail 47 ...
[info] Writing video thumbnail 47 to: Back In Black/Back In Black (Live).webp
[download] Back In Black/Back In Black (Live).m4a has already been downloaded
[debug] ffmpeg command line: ffprobe -show_streams 'file:Back In Black/Back In Black (Live).m4a'
[ExtractAudio] Not converting audio Back In Black/Back In Black (Live).m4a; file is already in target format m4a
[Metadata] Adding metadata to "Back In Black/Back In Black (Live).m4a"
[debug] ffmpeg command line: ffmpeg -y -loglevel repeat+info -i 'file:Back In Black/Back In Black (Live).m4a' -map 0 -dn -ignore_unknown -vn -acodec copy -write_id3v1 1 -metadata 'title=Back In Black (Live)' -metadata date=NA -metadata 'description=Provided to YouTube by IIP-DDS

Back In Black (Live) · AC/DC · Brian Johnson

Back In Black

℗ Staten Island

Released on: 2020-03-20

Music  Publisher: Copyright Control

Auto-generated by YouTube.' -metadata 'synopsis=Provided to YouTube by IIP-DDS

Back In Black (Live) · AC/DC · Brian Johnson

Back In Black

℗ Staten Island

Released on: 2020-03-20

Music  Publisher: Copyright Control

Auto-generated by YouTube.' -metadata 'purl=https://www.youtube.com/watch?v=jvLtXUwvYbk' -metadata 'comment=https://www.youtube.com/watch?v=jvLtXUwvYbk' -metadata track=1 -metadata 'artist=AC/DC, Brian Johnson' -metadata 'album=Back In Black' -movflags +faststart 'file:Back In Black/Back In Black (Live).temp.m4a'
[ThumbnailsConvertor] Converting thumbnail "Back In Black/Back In Black (Live).webp" to png
[debug] ffmpeg command line: ffmpeg -y -loglevel repeat+info -f image2 -pattern_type none -i 'file:Back In Black/Back In Black (Live).webp' -update 1 -movflags +faststart 'file:Back In Black/Back In Black (Live).png'
[EmbedThumbnail] mutagen: Adding thumbnail to "Back In Black/Back In Black (Live).m4a"
```