From: Vincent Date: Wed, 19 Feb 2020 16:45:55 +0000 (+0100) Subject: . X-Git-Url: http://git.cubedesigners.com/?a=commitdiff_plain;h=bf4bce229fb6ecfbb70226026523afe055109498;p=tortuga-home.git . --- diff --git a/.idea/workspace.xml b/.idea/workspace.xml index 6c4fe93..fff4c1b 100644 --- a/.idea/workspace.xml +++ b/.idea/workspace.xml @@ -3,9 +3,7 @@ - - - + @@ -1208,12 +1207,12 @@ - - + + - - + + @@ -1227,16 +1226,17 @@ - - + + - + - - + + + diff --git a/scripts/lib/medialibrary.php b/scripts/lib/medialibrary.php index b7e9458..f7e0e44 100644 --- a/scripts/lib/medialibrary.php +++ b/scripts/lib/medialibrary.php @@ -128,7 +128,6 @@ function transcodeOneVideo() $list = getVideosList(true); - foreach ($list as $item) { /** @var SplFileInfo $item */ @@ -250,7 +249,7 @@ function getVideoCodec($path) function getVideoDuration($path) { - $cacheKey = 'duration_4_' . md5($path . '-' . filemtime($path)); + $cacheKey = 'duration_4_' . md5($path . '-' . filemtime($path) . '-' . filesize($path)); $res = getState($cacheKey, null); if (null === $res) { $res = `ffprobe -i "$path" -show_entries format=duration -v quiet -of csv="p=0"`;