obsidian-thumbnails icon indicating copy to clipboard operation
obsidian-thumbnails copied to clipboard

Plugin does not work without shortlink format

Open witecat opened this issue 1 year ago • 1 comments

Case: youtu.be links work:

https://youtu.be/dQw4w9WgXcQ

But "normal" links do not work. (Return "Cannot find video):

https://m.youtube.com/watch?v=dQw4w9WgXcQ
https://youtube.com/watch?v=dQw4w9WgXcQ

Is there a chance that you can make non youtu.be links work so that it's possible to copy/paste from browser without having to manually rewrite the URL?

Thank you

witecat avatar Oct 25 '23 21:10 witecat

@Meikul I think changing the pattern matching to the following

{match: 'youtube.com/watch?v=', idPattern: /v=([-\w\d]+)/}

should be general enough.

mardukbp avatar Dec 31 '23 21:12 mardukbp