Update 'rss.php'

Update 'rss.php' to include filesize in XML data
This commit is contained in:
buttstuf 2021-02-28 02:14:48 +00:00
parent 62b1a4d29a
commit 3bd3b72e30
1 changed files with 2 additions and 0 deletions

View File

@ -21,6 +21,7 @@ $allowed_ext = ".mp3,.MP3";
foreach ($files as $file) { foreach ($files as $file) {
$timestamp = filectime($file); $timestamp = filectime($file);
$filesize = filesize($file);
list($author, $filename) = explode("/", $file, 2); list($author, $filename) = explode("/", $file, 2);
?> ?>
<item> <item>
@ -29,6 +30,7 @@ $allowed_ext = ".mp3,.MP3";
<link><?=$feedBaseURL?><?=$file?></link> <link><?=$feedBaseURL?><?=$file?></link>
<guid><?=$feedBaseURL?><?=$file?></guid> <guid><?=$feedBaseURL?><?=$file?></guid>
<pubDate><?=date(DATE_RSS, $timestamp)?></pubDate> <pubDate><?=date(DATE_RSS, $timestamp)?></pubDate>
<fileSize><?=$filesize?></fileSize>
</item> </item>
<?php } ?> <?php } ?>