nekoshita/obsidian-auto-card-link

Add additional parsers

Opened this issue · 3 comments

On this plugin and others, Iframely seems to have problems fetching images for youtube link or spotify.
(Wrong url, doesn’t display image).

On this plugin, the Microlink parser seems to get better result :
https://github.com/Seraphli/obsidian-link-embed

But i find your codeblock approach better that the other plugin, and would like to have better result for youtube.

@NekoSensei06 Thank you for your feedback and a sample plugin!!

I looked through the plugin and compared the methods getting metadata of given url(JSONLink, MicroLink, Iframely, parsing HTML myself). Then I found out that parsing HTML myself is the best way because it has no limit, fastest and implementation is not so hard. So I implemented it (#20) and released it as v1.1.1.

Now you can show YouTube links and Spotify links too!
スクリーンショット 2022-04-28 19 03 57

Please update your plugin and try the new version, thanks!

Thanks a lot !
It works well now for Youtube and Spotify, on desktop.

But when i try it on mobile (ipad or iphone), the youtube link doesn't works, it gets the default youtube text without image.
Spotify link works on mobile and desktop, so it's only Youtube.

It seems to work when emulating the mobile app on desktop : app.emulateMobile(true), so it's only on true mobile.

Hi, not sure if it's related to the same issue, but trying this on tweets doesn't work too