Skip to content

Commit 94ae992

Browse files
committed
update oembed endpoints
1 parent 1151baf commit 94ae992

File tree

3 files changed

+16
-2
lines changed

3 files changed

+16
-2
lines changed

scripts/update-oembed.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33

44
require dirname(__DIR__).'/vendor/autoload.php';
55

6-
use Symfony\Component\VarExporter\VarExporter;
6+
use Brick\VarExporter\VarExporter;
77

88
//Fetch endpoint from https://oembed.com
99
$providers = json_decode(file_get_contents('https://oembed.com/providers.json'));

scripts/update-suffix.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33

44
require dirname(__DIR__).'/vendor/autoload.php';
55

6-
use Symfony\Component\VarExporter\VarExporter;
6+
use Brick\VarExporter\VarExporter;
77

88
$lines = file(__DIR__.'/suffix.dat', FILE_IGNORE_NEW_LINES | FILE_SKIP_EMPTY_LINES);
99
$lines = array_filter($lines, fn ($line) => $line[0] !== '/');

src/resources/oembed.php

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -427,6 +427,14 @@
427427
'https://me.me/oembed' => [
428428
'|^https?://me\\.me/i/.*$|i',
429429
],
430+
'https://*.medialab.(co|app)/api/oembed/' => [
431+
'|^https?://.*\\.medialab\\.app/share/watch/.*$|i',
432+
'|^https?://.*\\.medialab\\.co/share/watch/.*$|i',
433+
'|^https?://.*\\.medialab\\.app/share/social/.*$|i',
434+
'|^https?://.*\\.medialab\\.co/share/social/.*$|i',
435+
'|^https?://.*\\.medialab\\.app/share/embed/.*$|i',
436+
'|^https?://.*\\.medialab\\.co/share/embed/.*$|i',
437+
],
430438
'https://medienarchiv.zhdk.ch/oembed.json' => [
431439
'|^https?://medienarchiv\\.zhdk\\.ch/entries/.*$|i',
432440
],
@@ -810,6 +818,9 @@
810818
'|^https?://vimeo\\.com/ondemand/.*/.*$|i',
811819
'|^https?://player\\.vimeo\\.com/video/.*$|i',
812820
],
821+
'https://www.viously.com/oembed' => [
822+
'|^https?://www\\.viously\\.com/.*/.*$|i',
823+
],
813824
'http://viziosphere.com/services/oembed/' => [
814825
'|^https?://viziosphere\\.com/3dphoto.*$|i',
815826
],
@@ -873,6 +884,9 @@
873884
'https://api.znipe.tv/v3/oembed/' => [
874885
'|^https?://.*\\.znipe\\.tv/.*$|i',
875886
],
887+
'https://srv2.zoomable.ca/oembed' => [
888+
'|^https?://srv2\\.zoomable\\.ca/viewer\\.php.*$|i',
889+
],
876890
'http://jsbin.com/oembed' => [
877891
'|^https?://output\\.jsbin\\.com/.*$|i',
878892
],

0 commit comments

Comments
 (0)