-
-
Notifications
You must be signed in to change notification settings - Fork 708
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
OpenGraph/oEmbed support #1362
Comments
+1 |
+1 Is there any workaround for this issue? |
I had developed this proxy as a workaround for this some time ago, so I don't know if it still works. |
Same problem on Mastodon, no preview cards. |
kinda surprised this isnt considered high priority. its a pretty large blocker for the average person to be willing to use piped. i have for now resorted to just providing both links, with the pipe linked set to not preview so it can just piggyback off the youtube preview but that just means the ty link is used 99% of the time sadly. once i convince people to load the actual piped page they have no problem with piped player for the most part but its never going to be viable as a true replacement missing something as basic as link previews |
+1 big need <3 |
Any progress with the Caddy extension? I would love this feature as I am quite surprised it isn't implemented yet from the last time I checked. |
There is no progress on the Caddy extension, but the proxy works. Please open an issue there if you need more help to configure it for your instance. |
I've created a small service (needs to be hosted by the server admin) that can be used to share Piped links, located at https://github.com/TeamPiped/piped-opengraph. There's an example Usage:
Works for:
Demo: |
Awesome stuff, I was messing around with the demo and I'm just curious if there's any customization to what it previews that can be done? At the moment the thumbnail is Tiny and it's just a huge wall of the description text which isn't ideal but is at least better than nothing |
Not as far as I know, and looking at the OpenGraph specs at https://ogp.me/ it doesn't seem so. |
Describe the feature
Comparison of meta-information received in the same video from Piped and YouTube:
oEmbed and OpenGraph is a simple tools to get meta-information and even a built-in player for YouTube videos that can be implemented in Piped. Thanks to it, all links to an instance in any provider will not look identical to each other and allow you to see the context of the video before you click on the link.
Why would this be useful to add?
Concept(s)
OpenGraph
Here it's simple, just specify in the template a set of
meta
nodes with the keys with the prefixog:
and values obtained from the YouTube video page and adapted for the Piped instance:oEmbed
Architecturally, you should provide a router intended only for receiving requests from providers for previews and responding to them, like
/oembed
, like YouTube. This router should accept GET requests with query parameters and respond to them with JSON/XML (depending on provider's preferences) in a special format.Since Piped instances cannot appear in the global providers list in time, to detect and exploit the oEmbed router by a provider, it needs to be prompted with a
link
node in the template and/orLink
server header.Headers examples:
Template examples:
It is desirable to support both formats and both methods of routing identification for backward compatibility with older ISPs that do not know how to JSON or get data from headers.
A JSON response to an oEmbed request for a video might look something like this:
Additional context
No response
Acknowledgements
The text was updated successfully, but these errors were encountered: