@@ 8296-8303 (lines=8) @@ | ||
8293 | $credits = $credits_parent; |
|
8294 | } |
|
8295 | // DESCRIPTION |
|
8296 | if (isset($content['child'][SIMPLEPIE_NAMESPACE_MEDIARSS]['description'])) |
|
8297 | { |
|
8298 | $description = $this->sanitize($content['child'][SIMPLEPIE_NAMESPACE_MEDIARSS]['description'][0]['data'], SIMPLEPIE_CONSTRUCT_TEXT); |
|
8299 | } |
|
8300 | else |
|
8301 | { |
|
8302 | $description = $description_parent; |
|
8303 | } |
|
8304 | // HASHES |
|
8305 | if (isset($content['child'][SIMPLEPIE_NAMESPACE_MEDIARSS]['hash'])) |
|
8306 | { |
|
@@ 8356-8363 (lines=8) @@ | ||
8353 | $keywords = $keywords_parent; |
|
8354 | } |
|
8355 | // PLAYER |
|
8356 | if (isset($content['child'][SIMPLEPIE_NAMESPACE_MEDIARSS]['player'])) |
|
8357 | { |
|
8358 | $player = $this->sanitize($content['child'][SIMPLEPIE_NAMESPACE_MEDIARSS]['player'][0]['attribs']['']['url'], SIMPLEPIE_CONSTRUCT_IRI); |
|
8359 | } |
|
8360 | else |
|
8361 | { |
|
8362 | $player = $player_parent; |
|
8363 | } |
|
8364 | // RATINGS |
|
8365 | if (isset($content['child'][SIMPLEPIE_NAMESPACE_MEDIARSS]['rating'])) |
|
8366 | { |
|
@@ 8442-8449 (lines=8) @@ | ||
8439 | $thumbnails = $thumbnails_parent; |
|
8440 | } |
|
8441 | // TITLES |
|
8442 | if (isset($content['child'][SIMPLEPIE_NAMESPACE_MEDIARSS]['title'])) |
|
8443 | { |
|
8444 | $title = $this->sanitize($content['child'][SIMPLEPIE_NAMESPACE_MEDIARSS]['title'][0]['data'], SIMPLEPIE_CONSTRUCT_TEXT); |
|
8445 | } |
|
8446 | else |
|
8447 | { |
|
8448 | $title = $title_parent; |
|
8449 | } |
|
8450 | $this->data['enclosures'][] = $this->registry->create('Enclosure', array($url, $type, $length, null, $bitrate, $captions, $categories, $channels, $copyrights, $credits, $description, $duration, $expression, $framerate, $hashes, $height, $keywords, $lang, $medium, $player, $ratings, $restrictions, $samplingrate, $thumbnails, $title, $width)); |
|
8451 | } |
|
8452 | } |