mirror of
https://github.com/RSS-Bridge/rss-bridge.git
synced 2025-01-17 14:18:35 +01:00
fix: flickr (#3104)
This commit is contained in:
parent
37f1ab726b
commit
58e321c915
@ -243,7 +243,8 @@ class FlickrBridge extends BridgeAbstract
|
||||
{
|
||||
$areas = [];
|
||||
|
||||
foreach ($model['sizes'] as $size) {
|
||||
foreach ($model['sizes']['data'] as $size) {
|
||||
$size = $size['data'];
|
||||
$areas[$size['width'] * $size['height']] = $size['url'];
|
||||
}
|
||||
|
||||
@ -255,7 +256,8 @@ class FlickrBridge extends BridgeAbstract
|
||||
$areas = [];
|
||||
$limit = 320 * 240;
|
||||
|
||||
foreach ($model['sizes'] as $size) {
|
||||
foreach ($model['sizes']['data'] as $size) {
|
||||
$size = $size['data'];
|
||||
$image_area = $size['width'] * $size['height'];
|
||||
|
||||
if ($image_area >= $limit) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user