@@ 7258-7270 (lines=13) @@ | ||
7255 | $ratings_parent[] = $this->registry->create('Rating', array($rating_scheme, $rating_value)); |
|
7256 | } |
|
7257 | } |
|
7258 | elseif ($ratings = $this->get_item_tags(SIMPLEPIE_NAMESPACE_ITUNES, 'explicit')) |
|
7259 | { |
|
7260 | foreach ($ratings as $rating) |
|
7261 | { |
|
7262 | $rating_scheme = 'urn:itunes'; |
|
7263 | $rating_value = null; |
|
7264 | if (isset($rating['data'])) |
|
7265 | { |
|
7266 | $rating_value = $this->sanitize($rating['data'], SIMPLEPIE_CONSTRUCT_TEXT); |
|
7267 | } |
|
7268 | $ratings_parent[] = $this->registry->create('Rating', array($rating_scheme, $rating_value)); |
|
7269 | } |
|
7270 | } |
|
7271 | elseif ($ratings = $parent->get_channel_tags(SIMPLEPIE_NAMESPACE_MEDIARSS, 'rating')) |
|
7272 | { |
|
7273 | foreach ($ratings as $rating) |
|
@@ 7292-7304 (lines=13) @@ | ||
7289 | $ratings_parent[] = $this->registry->create('Rating', array($rating_scheme, $rating_value)); |
|
7290 | } |
|
7291 | } |
|
7292 | elseif ($ratings = $parent->get_channel_tags(SIMPLEPIE_NAMESPACE_ITUNES, 'explicit')) |
|
7293 | { |
|
7294 | foreach ($ratings as $rating) |
|
7295 | { |
|
7296 | $rating_scheme = 'urn:itunes'; |
|
7297 | $rating_value = null; |
|
7298 | if (isset($rating['data'])) |
|
7299 | { |
|
7300 | $rating_value = $this->sanitize($rating['data'], SIMPLEPIE_CONSTRUCT_TEXT); |
|
7301 | } |
|
7302 | $ratings_parent[] = $this->registry->create('Rating', array($rating_scheme, $rating_value)); |
|
7303 | } |
|
7304 | } |
|
7305 | if (is_array($ratings_parent)) |
|
7306 | { |
|
7307 | $ratings_parent = array_values(array_unique($ratings_parent)); |