From 5cf13d0739e56d0825829214f8d1ca7b07a281b9 Mon Sep 17 00:00:00 2001 From: DanieL Date: Thu, 7 Apr 2022 18:29:00 -0300 Subject: [PATCH] fixDummyfiles --- install/importChannel.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/install/importChannel.php b/install/importChannel.php index fbff264551..d5b6fb4c81 100644 --- a/install/importChannel.php +++ b/install/importChannel.php @@ -67,7 +67,7 @@ while($hasNewContent){ if(!empty($json) && !empty($json->response) && !empty($json->response->totalRows)){ _error_log("importChannel: JSON SUCCESS totalRows={$json->response->totalRows}"); $hasNewContent = true; - foreach ($json->response->rows as $value) { + foreach ($json->response->rows as $key => $value) { $videos_id = 0; @@ -103,7 +103,7 @@ while($hasNewContent){ download($value->images->thumbsGif, $value->filename, $path); foreach ($value->videos->mp4 as $value2) { - _error_log("importChannel: APIURL = $APIURL"); + _error_log("importChannel: key = {$key} APIURL = $APIURL"); download($value2, $value->filename, $path); } $video->setStatus(Video::$statusActive);