aboutsummaryrefslogtreecommitdiffstats
path: root/vinotjs
diff options
context:
space:
mode:
Diffstat (limited to 'vinotjs')
-rw-r--r--vinotjs/processor.php3
-rw-r--r--vinotjs/vinotjs.php4
2 files changed, 4 insertions, 3 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.
diff --git a/vinotjs/vinotjs.php b/vinotjs/vinotjs.php
index 1ab4be2..8e1337e 100644
--- a/vinotjs/vinotjs.php
+++ b/vinotjs/vinotjs.php
@@ -1,6 +1,6 @@
<?php
-/* Implementación de LibreVideoJS
+/* Implementación de ViNotJS
==============================================================================================*/
include_once 'libre-panel.php';
@@ -162,4 +162,4 @@ function track_vinotjs($atts, $content=null){
return $track;
}
-add_shortcode('track', 'track_vinotjs'); \ No newline at end of file
+add_shortcode('track', 'track_vinotjs');