aboutsummaryrefslogtreecommitdiffstats
path: root/vinotjs/processor.php
diff options
context:
space:
mode:
Diffstat (limited to 'vinotjs/processor.php')
-rw-r--r--vinotjs/processor.php3
1 files changed, 2 insertions, 1 deletions
diff --git a/vinotjs/processor.php b/vinotjs/processor.php
index 555a081..579a1ee 100644
--- a/vinotjs/processor.php
+++ b/vinotjs/processor.php
@@ -1,9 +1,10 @@
<?php
$yturllarge = "www.youtube.com";
+$ytmobile = "m.youtube.com";
$yturlshort = 'youtu.be/';
-if (strpos($url, $yturlshort) !== false || strpos($url, $yturllarge) !== false ){
+if (strpos($url, $yturlshort) !== false || strpos($url, $yturllarge) !== false || strpos($url, $ytmobile) !== false){
$link = $url;
$id = substr($link, -11); //Extract the youtube video ID
$format = "video/webm"; //the MIME type of the video. e.g. video/webm, etc.