mirror of
https://git.tt-rss.org/fox/tt-rss.git
synced 2025-09-03 12:41:02 +02:00
properly import multiple media-tag enclosures in feeds (magpie)
This commit is contained in:
parent
a3eeb47167
commit
b652fdae29
@ -1033,7 +1033,7 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
// <media:content>
|
// <media:content>
|
||||||
// can there be many of those? -fox
|
// can there be many of those? yes -fox
|
||||||
|
|
||||||
$m_ctr = $item['media']['content#'];
|
$m_ctr = $item['media']['content#'];
|
||||||
|
|
||||||
@ -1043,9 +1043,18 @@
|
|||||||
$item['media']['content@length']);
|
$item['media']['content@length']);
|
||||||
|
|
||||||
array_push($enclosures, $e_item);
|
array_push($enclosures, $e_item);
|
||||||
}
|
|
||||||
|
|
||||||
// FIXME: parse more of those, if needed.
|
for ($i = 0; $i <= $m_ctr; $i++ ) {
|
||||||
|
|
||||||
|
if ($item["media"]["content#$i@url"]) {
|
||||||
|
$e_item = array($item["media"]["content#$i@url"],
|
||||||
|
$item["media"]["content#$i@medium"],
|
||||||
|
$item["media"]["content#$i@length"]);
|
||||||
|
array_push($enclosures, $e_item);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
# sanitize content
|
# sanitize content
|
||||||
|
Loading…
x
Reference in New Issue
Block a user