forked from tilderadio/archive
Update 'rss.php'
Update 'rss.php' to include filesize in XML data
This commit is contained in:
parent
62b1a4d29a
commit
3bd3b72e30
2
rss.php
2
rss.php
|
@ -21,6 +21,7 @@ $allowed_ext = ".mp3,.MP3";
|
|||
|
||||
foreach ($files as $file) {
|
||||
$timestamp = filectime($file);
|
||||
$filesize = filesize($file);
|
||||
list($author, $filename) = explode("/", $file, 2);
|
||||
?>
|
||||
<item>
|
||||
|
@ -29,6 +30,7 @@ $allowed_ext = ".mp3,.MP3";
|
|||
<link><?=$feedBaseURL?><?=$file?></link>
|
||||
<guid><?=$feedBaseURL?><?=$file?></guid>
|
||||
<pubDate><?=date(DATE_RSS, $timestamp)?></pubDate>
|
||||
<fileSize><?=$filesize?></fileSize>
|
||||
</item>
|
||||
<?php } ?>
|
||||
|
||||
|
|
Loading…
Reference in New Issue