obsidian-library-plugin icon indicating copy to clipboard operation
obsidian-library-plugin copied to clipboard

add YouTube Videos as a category

Open ramenIgirl opened this issue 1 month ago • 6 comments

What you would like

Pretty much the name

ramenIgirl avatar Oct 29 '26 10:10 ramenIgirl

Thanks for the idea! It's a good fit, and we'd like to add it.

The catch is on YouTube's side. Since around August 2025, YouTube's embedded player requires every app to identify itself with an HTTP Referer header, and Obsidian's pages don't send one, so YouTube videos inside Obsidian (and in Feedly, Anytype and other apps) now show "Error 153" instead of playing. A YouTube category is only worth having if the videos play in the note, so we're working on a way around it before we add the category.

I'll keep this issue open and post here when there's news.

venvk avatar Oct 29 '26 13:10 venvk

Oh thank you I understand. Right now I'm using this estension to embedd YouTube videos and it works great (it also supports Instagram and tiktok), I'll leave it there in case it could help :)

ramenIgirl avatar Oct 29 '26 13:10 ramenIgirl

Thanks for the link, I had a look! That plugin embeds videos through youtube-nocookie.com with a referrer policy set, and that's the same way Library already plays trailers in the note header. So I need to correct what I wrote above: playing a YouTube video inside a note works fine. Error 153 only hits embeds that don't send that referrer.

The hard part of a YouTube category is everything around the video:

  • Search. YouTube has no open search. Its official API needs a personal API key, and the free quota covers about a hundred searches a day.
  • Details. Without a key, a pasted link gives the title, the channel and the thumbnail, but no length, date or description.

So the likely shape is a YouTube category where you paste a link: it gets its title, channel and cover and plays right in the note, no key needed. Search would come on top for anyone who adds their own YouTube API key.

I'll keep this open and post here when it's in.

venvk avatar Oct 29 '26 15:10 venvk

Seems pretty good thank you

ramenIgirl avatar Oct 29 '26 18:10 ramenIgirl

It's in! 2.5.0 adds YouTube, though in a different shape from the paste-a-link idea above: Library now syncs what you watch.

Connect YouTube in Settings → Library → Connectors and sign in once (desktop only). Every video you watch becomes a note in a new Video category: it plays right in the note, with the channel, publish date, views, likes, the description, and how much of it you watched, so the time shows up in your statistics. The last 7 days come in first, then one older month a day. Shorts are left out. You can also like a video or subscribe to its channel from the note.

Details are on the YouTube wiki page. Thanks again for the idea, I'm closing this one now.

venvk avatar Oct 30 '26 05:10 venvk

Thats really cool! Unfortunately right now I got no PC, cause they cost too much :(

So I wuold love to have the option to just paste a video link or maybe even a playlists one directly, but anyway thank you for work :)

ramenIgirl avatar Oct 30 '26 13:10 ramenIgirl