-
Task
-
Resolution: Unresolved
-
Normal
-
None
Several YouTube Music URLs that should use music.youtube.com were entered using www.youtube.com instead. Presumably due to overzealous YouTube URL clean-up:
Examples:
- https://musicbrainz.org/search/edits?conditions.0.args.0=90024290&conditions.0.field=id&conditions.0.args.1=90024291&conditions.0.operator=BETWEEN
- https://musicbrainz.org/search/edits?conditions.0.args.0=90024394&conditions.0.operator=BETWEEN&conditions.0.field=id&conditions.0.args.1=90024395
- https://musicbrainz.org/edit/90024638
These can't be updated without following a "redirect". Unfortunately this requires to parse the HTML response unless the YouTube Music API is used in some way.
In script tag, search for:[...] initialData.push({ path: '\/browse', [...]
Parse data to find:
{ "microformatDataRenderer": { "urlCanonical": "https://music.youtube.com/playlist?list=OLAK5uy_k6ICDchO9n37IfEc_LuLwZYdUvywQqoUM" } }
Playlist IDs starting with OLAK5uy_ are YouTube Music albums that would map to a MB release.
YouTube Music URL relationships should also be changed to actually use the YouTube Music relationship type.