[fix] playlist and rss generation
This commit is contained in:
parent
803393a502
commit
bb8e80d702
|
@ -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 = '<?xml version="1.0" encoding="UTF-8"?>
|
||||
<rss version="2.0">
|
||||
<channel>
|
||||
|
|
Loading…
Reference in New Issue