From 7db458051c9c84a7f90e63a33f3f04b435ca8cec Mon Sep 17 00:00:00 2001 From: Navindra Umanee Date: Mon, 16 Mar 2026 22:29:04 -0700 Subject: [PATCH] Added support for embedding videos from sproutvideo.com. --- .../Configurator/Collections/CachedDefinitionCollection.php | 1 + 1 file changed, 1 insertion(+) diff --git a/src/Plugins/MediaEmbed/Configurator/Collections/CachedDefinitionCollection.php b/src/Plugins/MediaEmbed/Configurator/Collections/CachedDefinitionCollection.php index f8e645b43..8e85fd6a2 100644 --- a/src/Plugins/MediaEmbed/Configurator/Collections/CachedDefinitionCollection.php +++ b/src/Plugins/MediaEmbed/Configurator/Collections/CachedDefinitionCollection.php @@ -108,6 +108,7 @@ class CachedDefinitionCollection extends SiteDefinitionCollection 'sportsnet'=>['attributes'=>[],'example'=>'https://www.sportsnet.ca/soccer/west-ham-2-hull-2/','extract'=>[],'homepage'=>'https://www.sportsnet.ca/','host'=>['sportsnet.ca'],'iframe'=>['src'=>'//players.brightcove.net/1704050871/rkedLxwfab_default/index.html?videoId={@id}'],'name'=>'Sportsnet','scrape'=>[['extract'=>['@bc_videos\\s*:\\s*(?\'id\'\\d+)@'],'match'=>['//']]],'tags'=>['.ca','sports']], 'spotify'=>['attributes'=>[],'example'=>['https://open.spotify.com/user/ryan.lloyd.french/playlist/4jHNeLTj7CnL5JwZzmnqOL','https://open.spotify.com/track/3CPjqkaMwrbht1lJpELoY0?si=K7cm7-dWTR6U7BjDn1oP7g','https://open.spotify.com/episode/4zhSJwkVdndcVvwCypfl9b'],'extract'=>['!(?:open|play)\\.spotify\\.com/(?:intl-\\w+/|user/[-.\\w]+/)*(?\'id\'(?:album|artist|episode|playlist|show|track)(?:[:/][-.\\w]+)+)!'],'homepage'=>'https://www.spotify.com/','host'=>['link.tospotify.com','open.spotify.com','play.spotify.com','spotify.link'],'iframe'=>['allow'=>'encrypted-media','height'=>'152380','max-width'=>900,'src'=>'https://open.spotify.com/embed/{translate(@id,\':\',\'/\')}{@path}','style'=>['border-radius'=>'12px'],'width'=>'100%'],'name'=>'Spotify','scrape'=>[['extract'=>['!(?:open|play)\\.spotify\\.com/(?:intl-\\w+/|user/[-.\\w]+/)*(?\'id\'(?:album|artist|episode|playlist|show|track)(?:[:/][-.\\w]+)+)!'],'header'=>'User-agent: PHP (not Mozilla)','match'=>['!https?://(?:link\\.tospotify\\.com|spotify\\.link)/.!']]],'source'=>'https://developer.spotify.com/technologies/widgets/spotify-play-button/','tags'=>['music','podcasts']], 'spreaker'=>['attributes'=>[],'choose'=>['otherwise'=>['iframe'=>['height'=>400,'max-width'=>900,'src'=>'https://widget.spreaker.com/player?episode_id={@episode_id}&show_id={@show_id}&theme={$MEDIAEMBED_THEME}','width'=>'100%']],'when'=>['iframe'=>['height'=>200,'max-width'=>900,'src'=>'https://widget.spreaker.com/player?episode_id={@episode_id}&show_id={@show_id}&theme={$MEDIAEMBED_THEME}','width'=>'100%'],'test'=>'@episode_id']],'example'=>['https://www.spreaker.com/show/a-ha-ranking-highs-and-lows','https://www.spreaker.com/user/15738288/stabbing-final_1'],'extract'=>['!spreaker\\.com/episode/(?\'episode_id\'\\d+)!'],'homepage'=>'https://www.spreaker.com','host'=>['spreaker.com'],'name'=>'Spreaker','scrape'=>[['extract'=>['!episode_id=(?\'episode_id\'\\d+)!','!show_id=(?\'show_id\'\\d+)!'],'match'=>['!spreaker\\.com/(?:show|user)/.!']]],'tags'=>['podcasts']], + 'sproutvideo'=>['attributes'=>[],'example'=>'https://videos.sproutvideo.com/embed/8c9bd3b4111ee5cb06/ceed13c50e173bb7','extract'=>['!videos\\.sproutvideo\\.com/embed/(?\'id\'[0-9a-f]+)/(?\'token\'[0-9a-f]+)!'],'homepage'=>'https://sproutvideo.com/','host'=>['videos.sproutvideo.com','sproutvideo.com'],'iframe'=>['height'=>360,'src'=>'https://videos.sproutvideo.com/embed/{@id}/{@token}','width'=>640],'name'=>'SproutVideo','scrape'=>[],'tags'=>['videos']], 'steamstore'=>['attributes'=>[],'example'=>'https://store.steampowered.com/app/250520/','extract'=>['!store.steampowered.com/app/(?\'id\'\\d+)!'],'homepage'=>'https://store.steampowered.com/','host'=>['store.steampowered.com'],'iframe'=>['height'=>190,'max-width'=>900,'src'=>'//store.steampowered.com/widget/{@id}','width'=>'100%'],'name'=>'Steam store','scrape'=>[],'tags'=>['gaming']], 'strawpoll'=>['attributes'=>[],'example'=>'https://strawpoll.me/738091','extract'=>['!strawpoll\\.me/(?\'id\'\\d+)!'],'homepage'=>'https://strawpoll.me/','host'=>['strawpoll.me'],'iframe'=>['scrolling'=>'','src'=>'//www.strawpoll.me/embed_1/{@id}'],'name'=>'Straw Poll','scrape'=>[]], 'streamable'=>['attributes'=>[],'example'=>'https://streamable.com/e4d','extract'=>['!streamable\\.com/(?:e/)?(?\'id\'\\w+)!'],'homepage'=>'https://streamable.com/','host'=>['streamable.com'],'iframe'=>['src'=>'//streamable.com/e/{@id}'],'name'=>'Streamable','oembed'=>['endpoint'=>'https://api.streamable.com/oembed.json','scheme'=>'https://streamable.com/{@id}'],'scrape'=>[],'source'=>'https://support.streamable.com/article/46-streamable-api','tags'=>['videos']],