[divan] RSS, on répare ce que l'on a cassé
This commit is contained in:
parent
9a9898a0a0
commit
a850c4a27b
@ -24,6 +24,7 @@ if(strpos($file, '.xml') or strpos($file, '.php')) {
|
|||||||
|
|
||||||
|
|
||||||
$dir = getcwd();
|
$dir = getcwd();
|
||||||
|
$dirprim = getcwd();
|
||||||
if($diradd) {
|
if($diradd) {
|
||||||
$dir = $dir.'/'.$diradd;
|
$dir = $dir.'/'.$diradd;
|
||||||
}
|
}
|
||||||
@ -147,13 +148,9 @@ if(is_array($array)) {
|
|||||||
for ($i = 0; $i < count($array); $i++) {
|
for ($i = 0; $i < count($array); $i++) {
|
||||||
|
|
||||||
$getID3 = new getID3;
|
$getID3 = new getID3;
|
||||||
$tags = $getID3->analyze($dir."/".$array[$i]);
|
$tags = $getID3->analyze($dirprim."/".$array[$i]);
|
||||||
|
|
||||||
if($diradd) {
|
|
||||||
$mp3_url = $link.$diradd.'/'.$array[$i];
|
|
||||||
}else{
|
|
||||||
$mp3_url = $link.$array[$i];
|
$mp3_url = $link.$array[$i];
|
||||||
}
|
|
||||||
|
|
||||||
$mp3_poids = filesize($array[$i]);
|
$mp3_poids = filesize($array[$i]);
|
||||||
$mp3_date = date('D, d M Y H:i:s', filectime($array[$i]));
|
$mp3_date = date('D, d M Y H:i:s', filectime($array[$i]));
|
||||||
@ -218,7 +215,7 @@ if(is_array($array)) {
|
|||||||
$xml .='<googleplay:block>'.$googleblock.'</googleplay:block>'."\n";
|
$xml .='<googleplay:block>'.$googleblock.'</googleplay:block>'."\n";
|
||||||
|
|
||||||
if(isset($tags['comments']['picture'][0])) {
|
if(isset($tags['comments']['picture'][0])) {
|
||||||
$url = $dir.'/'.$array[$i];
|
$url = $dirprim.'/'.$array[$i];
|
||||||
|
|
||||||
if($tags['comments']['picture'][0]['image_mime'] == 'image/png') {
|
if($tags['comments']['picture'][0]['image_mime'] == 'image/png') {
|
||||||
$url = str_replace('.mp3', '.png', $url);
|
$url = str_replace('.mp3', '.png', $url);
|
||||||
|
Loading…
Reference in New Issue
Block a user