diff --git a/index.php b/index.php index 5d39589..517c777 100644 --- a/index.php +++ b/index.php @@ -486,6 +486,8 @@ function listVideo($breadcrumb) { } function makePLaylist($breadcrumb) { + $path = chunk_split($breadcrumb, 8, '/'); + $allFile = glob($GLOBALS['config']['VIDEODIR'].'/'.$path."*.webm"); $allFile = glob($GLOBALS['config']['VIDEODIR'].'/'.$breadcrumb."/*.webm"); $m3u = ''; foreach ($allFile as $value) { @@ -499,7 +501,8 @@ function makePLaylist($breadcrumb) { } function makeRss($breadcrumb, $fullListFile) { - $allFile = glob($GLOBALS['config']['VIDEODIR'].'/'.$breadcrumb."/*.webm"); + $path = chunk_split($breadcrumb, 8, '/'); + $allFile = glob($GLOBALS['config']['VIDEODIR'].'/'.$path."*.webm"); $rss = '