diff --git a/plugin/API/API.php b/plugin/API/API.php index eab8f07590..359e0ad54b 100644 --- a/plugin/API/API.php +++ b/plugin/API/API.php @@ -24,6 +24,20 @@ class API extends PluginAbstract { return "1apicbec-91db-4357-bb10-ee08b0913778"; } + private static function addRowInfo($obj){ + if(!isset($obj->current)){ + $obj->current = getCurrentPage(); + } + $obj->hasMore = true; + if(count($obj->rows) < $obj->rowCount){ + $obj->hasMore = false; + } + if($obj->current*$obj->rowCount >= $obj->totalRows){ + $obj->hasMore = false; + } + return $obj; + } + public function getEmptyDataObject() { global $global; $obj = new stdClass(); @@ -468,6 +482,7 @@ class API extends PluginAbstract { } $obj->totalRows = $totalRows; $obj->rows = $rows; + $obj = self::addRowInfo($obj); //var_dump($obj->rows );exit; ObjectYPT::setCache($cacheName, $obj); return new ApiObject("", false, $obj); diff --git a/plugin/AVideoPlugin.php b/plugin/AVideoPlugin.php index 031d97f735..29704a24cb 100644 --- a/plugin/AVideoPlugin.php +++ b/plugin/AVideoPlugin.php @@ -632,8 +632,7 @@ class AVideoPlugin } } - public static function getEnd() - { + public static function getEnd(){ $plugins = Plugin::getAllEnabled(); usort($plugins, function ($a, $b) { if ($a['name'] == 'Cache') { @@ -651,7 +650,9 @@ class AVideoPlugin self::YPTstart(); $p = static::loadPlugin($value['dirName']); if (is_object($p)) { - //_error_log("{$value['dirName']}::" . __FUNCTION__); + $func = "{$value['dirName']}::" . __FUNCTION__; + //echo $func.PHP_EOL; + //_error_log($func); if(!empty($_REQUEST['debug'])){ echo "".PHP_EOL; } diff --git a/plugin/Layout/Layout.php b/plugin/Layout/Layout.php index a1b4082e6e..da71a95ae4 100644 --- a/plugin/Layout/Layout.php +++ b/plugin/Layout/Layout.php @@ -527,6 +527,7 @@ class Layout extends PluginAbstract { //$html = preg_replace('/<\/script>/i', '', $html); //return $html; //var_dump(self::$tags['script']);exit; + //var_dump(self::$tags['tagscript']);exit; if (!empty(self::$tags['tagcss'])) { self::$tags['tagcss'] = self::removeDuplicated(self::$tags['tagcss']); $html = str_replace('', PHP_EOL.implode(PHP_EOL, array_unique(self::$tags['tagcss'])) . '', $html); diff --git a/plugin/PlayLists/View/getPlaylistButtons.php b/plugin/PlayLists/View/getPlaylistButtons.php index 998f0ad46b..def99f7658 100644 --- a/plugin/PlayLists/View/getPlaylistButtons.php +++ b/plugin/PlayLists/View/getPlaylistButtons.php @@ -139,6 +139,7 @@ if ($isMyChannel) { ?>" data-toggle="tooltip" title="" > diff --git a/plugin/PlayLists/addVideoModal.php b/plugin/PlayLists/addVideoModal.php new file mode 100644 index 0000000000..7d66a7b124 --- /dev/null +++ b/plugin/PlayLists/addVideoModal.php @@ -0,0 +1,156 @@ + + + + + \ No newline at end of file diff --git a/view/channelProgram.php b/view/channelProgram.php index 6847ffb185..56e8bf2154 100644 --- a/view/channelProgram.php +++ b/view/channelProgram.php @@ -117,12 +117,14 @@ $playListsObj = AVideoPlugin::getObjectData("PlayLists");
'; } - if ($count % 3 === 0) { + if ($realCount % 3 === 0) { echo ''; } - if ($count % 2 === 0) { + if ($realCount % 2 === 0) { echo ''; } } @@ -250,59 +252,6 @@ $playListsObj = AVideoPlugin::getObjectData("PlayLists"); $_GET['channelName'] = $channelName; ?> - \ No newline at end of file diff --git a/view/mini-upload-form/upload.php b/view/mini-upload-form/upload.php index 04d452eb8c..8ff8e21ea9 100644 --- a/view/mini-upload-form/upload.php +++ b/view/mini-upload-form/upload.php @@ -119,7 +119,7 @@ if (isset($_FILES['upl']) && $_FILES['upl']['error'] == 0) { $obj->filename = $filename; $obj->duration = $duration; $obj->videos_id = $id; - + //var_dump($obj->videos_id);exit; if ($extension !== "jpg" && $video->getType() == "image") { sleep(1); // to make sure the file will be available $file = $video->getFilename();