__ 20240430@211611

This commit is contained in:
Dym Sohin 2024-04-30 21:16:11 +02:00
parent 5335ca72e5
commit 51c59af29a
2 changed files with 6 additions and 6 deletions

View File

@ -10,7 +10,7 @@ $feedDesc = "feed of audio files";
$feedURL = "https://web.dym.sh/audio/rss.xml";
$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" ?>';
?>
@ -33,7 +33,7 @@ while( $file = readdir($dir) )
&& 'index.html' !== $file
&& !is_dir($file)
&& 0 < strpos($allowed_ext, $ext)
) {
) {
$item['name'] = $sub.$file;
$item['timestamp'] = filectime($sub.$file);
$item['size'] = filesize($sub.$file);

View File

@ -10,7 +10,7 @@ $feedDesc = "feed of audio files";
$feedURL = "https://web.dym.sh/audio/rss.xml";
$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" ?>';
?>
@ -33,7 +33,7 @@ while( $file = readdir($dir) )
&& 'index.html' !== $file
&& !is_dir($file)
// && 0 < strpos($allowed_ext, $ext)
) {
) {
$item['name'] = $sub.$file;
$item['timestamp'] = filectime($sub.$file);
$item['size'] = filesize($sub.$file);