Skip to content

Commit

Permalink
Update
Browse files Browse the repository at this point in the history
  • Loading branch information
Daniel Neto committed Mar 20, 2024
1 parent 6388091 commit e4cba9a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 18 deletions.
4 changes: 2 additions & 2 deletions plugin/AVideoPlugin.php
Original file line number Diff line number Diff line change
Expand Up @@ -666,13 +666,13 @@ public static function getNetflixActionButton($videos_id)
$plugins = Plugin::getAllEnabled();
$str = "";
foreach ($plugins as $value) {
self::YPTstart();
self::YPTstart(__FUNCTION__);
$p = static::loadPlugin($value['dirName']);

if (is_object($p)) {
$str .= $p->getNetflixActionButton($videos_id);
}
self::YPTend("{$value['dirName']}::" . __FUNCTION__, 0.2);
self::YPTend("{$value['dirName']}::" . __FUNCTION__, 0.2, __FUNCTION__);
}
return $str;
}
Expand Down
16 changes: 0 additions & 16 deletions plugin/YouPHPFlix2/view/row.php
Original file line number Diff line number Diff line change
Expand Up @@ -112,10 +112,7 @@ class="tile__img <?php echo $cssClass; ?> thumbsJPG img img-responsive carousel-

<?php
TimeLogEnd($timeLog3, __LINE__);
$startRowTime = microtime(true);
$longLogs = array();
foreach ($videos as $_index => $value) {
$startRowTime2 = microtime(true);
$timeLog5Limit = 0.5;
$timeLog5 = "{$timeLog3} second foreach {$value['clean_title']}";
TimeLogStart($timeLog5);
Expand Down Expand Up @@ -157,19 +154,6 @@ class="tile__img <?php echo $cssClass; ?> thumbsJPG img img-responsive carousel-
TimeLogEnd($timeLog5, __LINE__, $timeLog5Limit);
}

$endRowTime2 = microtime(true) - $startRowTime2;
if($endRowTime2>0.2){
$rowCount = count($videos);
$longLogs[] = "<!-- videos_id={$value['id']} $endRowTime2 seconds -->";
}
}

$endRowTime = microtime(true) - $startRowTime;

if($endRowTime>1){
$rowCount = count($videos);
echo PHP_EOL."<!-- rowCount=$rowCount in $endRowTime seconds -->".PHP_EOL;
echo implode(PHP_EOL, $longLogs);
}

TimeLogEnd($timeLog3, __LINE__);
Expand Down

0 comments on commit e4cba9a

Please sign in to comment.