mirror of
https://github.com/DanielnetoDotCom/YouPHPTube
synced 2025-10-03 01:39:24 +02:00
fixDummyfiles
This commit is contained in:
parent
507daa7e62
commit
5cf13d0739
1 changed files with 2 additions and 2 deletions
|
@ -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);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue