__ 20240430@211611
This commit is contained in:
parent
5335ca72e5
commit
51c59af29a
|
@ -10,7 +10,7 @@ $feedDesc = "feed of audio files";
|
||||||
$feedURL = "https://web.dym.sh/audio/rss.xml";
|
$feedURL = "https://web.dym.sh/audio/rss.xml";
|
||||||
$feedBaseURL = "https://web.dym.sh/audio/"; // must end in trailing forward slash (/).
|
$feedBaseURL = "https://web.dym.sh/audio/"; // must end in trailing forward slash (/).
|
||||||
|
|
||||||
$allowed_ext = ".mp4,.mp3,.webm,.ogg,.flac";
|
$allowed_ext = ".mp4,.mp3,.webm,.ogg,.flac,.opus";
|
||||||
|
|
||||||
echo '<?xml version="1.0" ?>';
|
echo '<?xml version="1.0" ?>';
|
||||||
?>
|
?>
|
||||||
|
@ -33,7 +33,7 @@ while( $file = readdir($dir) )
|
||||||
&& 'index.html' !== $file
|
&& 'index.html' !== $file
|
||||||
&& !is_dir($file)
|
&& !is_dir($file)
|
||||||
&& 0 < strpos($allowed_ext, $ext)
|
&& 0 < strpos($allowed_ext, $ext)
|
||||||
) {
|
) {
|
||||||
$item['name'] = $sub.$file;
|
$item['name'] = $sub.$file;
|
||||||
$item['timestamp'] = filectime($sub.$file);
|
$item['timestamp'] = filectime($sub.$file);
|
||||||
$item['size'] = filesize($sub.$file);
|
$item['size'] = filesize($sub.$file);
|
||||||
|
|
|
@ -10,7 +10,7 @@ $feedDesc = "feed of audio files";
|
||||||
$feedURL = "https://web.dym.sh/audio/rss.xml";
|
$feedURL = "https://web.dym.sh/audio/rss.xml";
|
||||||
$feedBaseURL = "https://web.dym.sh/audio/"; // must end in trailing forward slash (/).
|
$feedBaseURL = "https://web.dym.sh/audio/"; // must end in trailing forward slash (/).
|
||||||
|
|
||||||
// $allowed_ext = ".mp4,.mp3,.webm,.ogg,.flac";
|
// $allowed_ext = ".mp4,.mp3,.webm,.ogg,.flac,.opus";
|
||||||
|
|
||||||
echo '<?xml version="1.0" ?>';
|
echo '<?xml version="1.0" ?>';
|
||||||
?>
|
?>
|
||||||
|
@ -33,7 +33,7 @@ while( $file = readdir($dir) )
|
||||||
&& 'index.html' !== $file
|
&& 'index.html' !== $file
|
||||||
&& !is_dir($file)
|
&& !is_dir($file)
|
||||||
// && 0 < strpos($allowed_ext, $ext)
|
// && 0 < strpos($allowed_ext, $ext)
|
||||||
) {
|
) {
|
||||||
$item['name'] = $sub.$file;
|
$item['name'] = $sub.$file;
|
||||||
$item['timestamp'] = filectime($sub.$file);
|
$item['timestamp'] = filectime($sub.$file);
|
||||||
$item['size'] = filesize($sub.$file);
|
$item['size'] = filesize($sub.$file);
|
||||||
|
|
Loading…
Reference in New Issue