From 51c59af29aafe6f8ab242ee77e415ed3dfa4a4d5 Mon Sep 17 00:00:00 2001 From: Dym Sohin Date: Tue, 30 Apr 2024 21:16:11 +0200 Subject: [PATCH] __ 20240430@211611 --- dir2pod.php | 6 +++--- dir2rss.php | 6 +++--- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/dir2pod.php b/dir2pod.php index 8b91c13..b5bf6bb 100644 --- a/dir2pod.php +++ b/dir2pod.php @@ -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 ''; ?> @@ -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); @@ -60,4 +60,4 @@ __item__; } ?> - \ No newline at end of file + diff --git a/dir2rss.php b/dir2rss.php index fbe914d..e8782d8 100644 --- a/dir2rss.php +++ b/dir2rss.php @@ -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 ''; ?> @@ -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); @@ -60,4 +60,4 @@ __item__; } ?> - \ No newline at end of file +