Repository navigation
|
I've built Summaly into a container, using a browser's user-agent, but youtube's previews can't be seen ... Any hint for debugging? |
Replies: 1 comment 5 replies
|
YouTube is the usual suspect here. When the request comes from a server/datacenter IP (or from the EU), YouTube often doesn't return the normal page: you get the cookie-consent page ( To debug, run from inside the container: If that prints nothing, it's YouTube blocking/redirecting, not Summaly. A reliable workaround is YouTube's oEmbed endpoint, which isn't blocked like the watch page: |
Glad it helped! In case it saves you some time with the plugin: you can avoid scraping the watch page entirely. The thumbnail and the embed URL can be built from the video ID alone, and the title can come from YouTube's oEmbed endpoint (
https://www.youtube.com/oembed?url=...&format=json), which is a different and much lighter endpoint than the watch page.A minimal plugin matching Summaly's
SummalyPlugininterface (test+summarize):