From bb8e80d702550ed41de0243416b252a1a689269f Mon Sep 17 00:00:00 2001 From: Knah Tsaeb Date: Fri, 26 Jun 2015 11:00:13 +0200 Subject: [PATCH] [fix] playlist and rss generation --- index.php | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) 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 = '