[Bug]: YouTube Extension accepting music.youtube.com/playlist links, but failing on them #6087
Open
1 task done
Labels
Category: Open Source
The issue or pull reuqest is related to the open source packages of Tiptap.
Type: Bug
The issue or pullrequest is related to a bug
Affected Packages
@tiptap/extension-youtube
Version(s)
2.11.2
Bug Description
We are on version 2.11.2, but I see the same basic issue on the extension's page in the Tiptap docs. Here's what happens when pasting the YouTube Music playlist URL
https://music.youtube.com/playlist?list=PLrggHaKS2xueclxIYbhkSiPai3da7cdWB&si=Xgxani5KWk3ieFnc
into the editor on the docs site:CleanShot.2025-02-05.at.23.11.17.mp4
YouTube Music links to albums (e.g.
https://music.youtube.com/playlist?list=OLAK5uy_mrF_EHJJul_9cUfE-snfFgdEY_nggl9c0&feature=shared
) also fail in a similar way. Albums appear to be implemented as playlists by YouTube music.Browser Used
Chrome
Code Example URL
No response
Expected Behavior
I would be fine if such links did not get caught by the YouTube extension and thus did not resolve at all.
Unless there is a way to provide a "video player" like what happens when YouTube Music links directly to songs (e.g.
https://music.youtube.com/watch?v=FPrHuDvXEBw
) are embedded.This could potentially be found by going from the YouTube Music link:
https://music.youtube.com/playlist?list=OLAK5uy_mrF_EHJJul_9cUfE-snfFgdEY_nggl9c0
To the embed code similar to what is found at the YouTube link (e.g. replace the
music
subdomain withwww
):https://www.youtube.com/playlist?list=OLAK5uy_mrF_EHJJul_9cUfE-snfFgdEY_nggl9c0
In this example, the embed code is:
Additional Context (Optional)
No response
Dependency Updates
The text was updated successfully, but these errors were encountered: