|
|
@@ -1236,13 +1236,14 @@ class Item implements RegistryAware
|
|
|
}
|
|
|
|
|
|
// PLAYER
|
|
|
- if ($player_parent = $this->get_item_tags(\SimplePie\SimplePie::NAMESPACE_MEDIARSS, 'player')) {
|
|
|
- if (isset($player_parent[0]['attribs']['']['url'])) {
|
|
|
- $player_parent = $this->sanitize($player_parent[0]['attribs']['']['url'], \SimplePie\SimplePie::CONSTRUCT_IRI, $this->get_own_base($player_parent[0]));
|
|
|
+ $player_parent = null;
|
|
|
+ if ($player_tags = $this->get_item_tags(\SimplePie\SimplePie::NAMESPACE_MEDIARSS, 'player')) {
|
|
|
+ if (isset($player_tags[0]['attribs']['']['url'])) {
|
|
|
+ $player_parent = $this->sanitize($player_tags[0]['attribs']['']['url'], \SimplePie\SimplePie::CONSTRUCT_IRI, $this->get_own_base($player_tags[0]));
|
|
|
}
|
|
|
- } elseif ($player_parent = $parent->get_channel_tags(\SimplePie\SimplePie::NAMESPACE_MEDIARSS, 'player')) {
|
|
|
- if (isset($player_parent[0]['attribs']['']['url'])) {
|
|
|
- $player_parent = $this->sanitize($player_parent[0]['attribs']['']['url'], \SimplePie\SimplePie::CONSTRUCT_IRI, $this->get_own_base($player_parent[0]));
|
|
|
+ } elseif ($player_tags = $parent->get_channel_tags(\SimplePie\SimplePie::NAMESPACE_MEDIARSS, 'player')) {
|
|
|
+ if (isset($player_tags[0]['attribs']['']['url'])) {
|
|
|
+ $player_parent = $this->sanitize($player_tags[0]['attribs']['']['url'], \SimplePie\SimplePie::CONSTRUCT_IRI, $this->get_own_base($player_tags[0]));
|
|
|
}
|
|
|
}
|
|
|
|