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 +