Skip to content

Commit

Permalink
Update
Browse files Browse the repository at this point in the history
  • Loading branch information
Daniel Neto committed Feb 5, 2025
1 parent 5c63d3c commit 11d525d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion plugin/Live/getImage.php
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
$f = md5(@$_REQUEST['u'] .'_'. @$_REQUEST['live_servers_id'] .'_'. @$_REQUEST['live_index'] .'_'. @$_REQUEST['playlists_id_live']);
$cacheFileImageName = dirname(__FILE__) . "/../../videos/cache/liveImage_{$f}.{$_REQUEST['format']}";
$cacheFileImageNameResized = dirname(__FILE__) . "/../../videos/cache/liveImage_{$f}_{$facebookSizeRecomendationW}X{$facebookSizeRecomendationH}.{$_REQUEST['format']}";
if (file_exists($cacheFileImageName) && (time() - $lifetime <= filemtime($cacheFileImageName))) {
if (empty($_REQUEST['debug']) && file_exists($cacheFileImageName) && (time() - $lifetime <= filemtime($cacheFileImageName))) {
if(file_exists($cacheFileImageNameResized)){
$content = file_get_contents($cacheFileImageNameResized);
if (!empty($content)) {
Expand Down

0 comments on commit 11d525d

Please sign in to comment.