From eaf9f73927b90f6758ceda08af994928d057c9cc Mon Sep 17 00:00:00 2001 From: khuxkm Date: Fri, 29 Jun 2018 20:39:21 -0400 Subject: [PATCH] Add google drive video link type --- bump.php | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/bump.php b/bump.php index 6259630..55d5de1 100644 --- a/bump.php +++ b/bump.php @@ -15,6 +15,10 @@ $bump_embed = str_replace("/watch?v=","/embed/",$data["bump_url"]); echo "\t\n"; } + if ($data["bump_url_type"]=="gdrive") { + $bump_embed = str_replace("/view","/preview",$data["bump_url"]); + echo "\t\n"; + } } else { echo "\t

Something's wrong. Please contact the sitemaster at khuxkm<at>tilde<dot>team.

\n"; }