diff --git a/plugin/AdsForJesus/AdsForJesus.php b/plugin/AdsForJesus/AdsForJesus.php
index 04fb78a702..adf74ce94a 100644
--- a/plugin/AdsForJesus/AdsForJesus.php
+++ b/plugin/AdsForJesus/AdsForJesus.php
@@ -67,11 +67,13 @@ class AdsForJesus extends PluginAbstract {
if (!empty($videos_id)) {
$showAds = AVideoPlugin::showAds($videos_id);
if (!$showAds) {
- return "";
+ return "";
}
global $global;
$css .= '';
$css .= '';
+ }else{
+ $css .= "";
}
return $js . $css;
}
@@ -88,10 +90,10 @@ class AdsForJesus extends PluginAbstract {
if (!empty($videos_id)) {
$showAds = AVideoPlugin::showAds($videos_id);
if (!$showAds) {
- return "";
+ return "";
}
if (empty($_GET['u'])) {
- $video = Video::getVideoFromCleanTitle($_GET['videoName']);
+ $video = Video::getVideoLight($videos_id);
$showAds = AVideoPlugin::showAds($video['id']);
if (!$showAds) {
return "";
@@ -104,7 +106,9 @@ class AdsForJesus extends PluginAbstract {
$video_length = parseDurationToSeconds($video['duration']);
$obj = $this->getDataObject();
PlayerSkins::setIMAADTag("https://forjesus.tv/vmap.xml?video_durarion={$video_length}&start={$obj->start}&mid25Percent={$obj->mid25Percent}&mid50Percent={$obj->mid50Percent}&mid75Percent={$obj->mid75Percent}&end={$obj->end}");
- }
+ }else{
+ $js .= "";
+ }
return $js;
}
diff --git a/plugin/PlayLists/embed.php b/plugin/PlayLists/embed.php
index 2478649732..273dc6525d 100644
--- a/plugin/PlayLists/embed.php
+++ b/plugin/PlayLists/embed.php
@@ -84,9 +84,9 @@ if (empty($playListData)) {
$url = PlayLists::getLink($pl->getId());
$title = $pl->getName();
-if($serie = PlayLists::isPlayListASerie($pl->getId())){
+if ($serie = PlayLists::isPlayListASerie($pl->getId())) {
setVideos_id($serie['id']);
-}else if(!empty($playList[$playlist_index])){
+} else if (!empty($playList[$playlist_index])) {
setVideos_id($playList[$playlist_index]['id']);
}
//var_dump($playListData);exit;
@@ -246,36 +246,45 @@ if($serie = PlayLists::isPlayListASerie($pl->getId())){