From 94345ae9a53adb670140cefbd85d31ee16c9f0f2 Mon Sep 17 00:00:00 2001 From: galaxyoyo Date: Sat, 21 Sep 2019 17:36:07 +0200 Subject: [PATCH] Support de Vimeo --- server_files/model.php | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/server_files/model.php b/server_files/model.php index d0e2207..e1f0425 100644 --- a/server_files/model.php +++ b/server_files/model.php @@ -175,4 +175,9 @@ function displayVideo($link) $code = $matches[3]; echo "

\n"; } + elseif (preg_match("#(https?\://|)(www\.|)vimeo\.com/([0-9]*)#", $link, $matches)) { + $code = $matches[3]; + echo "
"; + + } } \ No newline at end of file