Open toby3d opened 2 years ago
+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. The code can be found here: piped-html-proxy I have been thinking of writing an extension for Caddy, in order to replace it. I don't know which approach best fits the project.
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
I had developed this proxy as a workaround for this some time ago, so I don't know if it still works. The code can be found here: piped-html-proxy I have been thinking of writing an extension for Caddy, in order to replace it. I don't know which approach best fits the project.
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.
I had developed this proxy as a workaround for this some time ago, so I don't know if it still works. The code can be found here: piped-html-proxy I have been thinking of writing an extension for Caddy, in order to replace it. I don't know which approach best fits the project.
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 docker-compose.yml
you should use, I've additionally pushed the image to codeberg.org/bnyro/opengraph
(arm64 only) for now as I don't have access to Kavin's DockerHub Account.
Usage:
piped-opengraph
service, e.g. https://piped.example.com/watch?v=abcedfg
with https://piped-opengraph.example.com/watch?v=abcedfg
Works for:
/watch
)/playlist
)/channel/
)Demo:
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
docker-compose.yml
you should use, I've additionally pushed the image tocodeberg.org/bnyro/opengraph
(arm64 only) for now as I don't have access to Kavin's DockerHub Account.Usage:
* replace the domain of the url you want to share with the one of the `piped-opengraph` service, e.g. `https://piped.example.com/watch?v=abcedfg` with `https://piped-opengraph.example.com/watch?v=abcedfg` * That's it. You now get a preview and clicking the link will redirect you to the normal Piped frontend as you'd expect to.
Works for:
* Videos (`/watch`) * Playlists (`/playlist`)
Known quirks:
* Channel previews are currently broken due to YouTube changes.
Demo:
* https://ppv.chatoyer.de/watch?v=myAHrXIwqXs * view-source:https://ppv.chatoyer.de/watch?v=myAHrXIwqXs
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
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. Did you try the URL previews of other services (e.g. Mastodon, Twitter, ...) to see if they have a larger thumbnail?
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