Add fix for the RadioFrance podcast and ignore a php warning

This commit is contained in:
Frédéric Guillot 2014-07-05 16:10:58 -03:00
parent 8813d46c1f
commit 342f56b9d1
2 changed files with 2 additions and 2 deletions

View File

@ -92,7 +92,7 @@ class Stream extends Client
}
if (isset($headers['Content-Encoding']) && $headers['Content-Encoding'] === 'gzip') {
$body = gzdecode($body);
$body = @gzdecode($body);
}
return array(

View File

@ -227,7 +227,7 @@ class Rss20 extends Parser
$feed_permalink = $feed->url;
}
if ($entry->guid->count() > 0 && (string) $entry->guid['isPermaLink'] === 'false') {
if ($entry->guid->count() > 0 && ((string) $entry->guid['isPermaLink'] === 'false' || ! isset($entry->guid['isPermaLink']))) {
$item->id = $this->generateId($item_permalink, $feed_permalink, (string) $entry->guid);
}
else {