diff --git a/api/application/controllers/Test.php b/api/application/controllers/Test.php index 06855ee9..727281f2 100644 --- a/api/application/controllers/Test.php +++ b/api/application/controllers/Test.php @@ -189,6 +189,7 @@ class Test extends REST_Controller { $driveFilesList = $this->googleapi->getDriveFilesList($pd_details[0]['gmeet_code']); if(count($driveFilesList)) { + log_message('ERROR','###Videos Found'.count($driveFilesList).' - PDID - '. $pdid); foreach ($driveFilesList as $key => $file) { $this->handleGoolgeVideoFile($file,$pd_details); @@ -201,6 +202,7 @@ class Test extends REST_Controller { } else { + log_message('ERROR','###Videos not found/not available in drive yet Found'.count($driveFilesList).' - PDID - '. $pdid); $data['dataStatus'] = true; $data['status'] = REST_Controller::HTTP_NO_CONTENT; // $data['msg'] = 'Officers Records Not Found!'; diff --git a/api/application/helpers/video_grabber_helper.php b/api/application/helpers/video_grabber_helper.php index b032e616..ad06153e 100644 --- a/api/application/helpers/video_grabber_helper.php +++ b/api/application/helpers/video_grabber_helper.php @@ -33,7 +33,7 @@ class video_grabber_helper foreach ($video_info as $key => $value) { $video_name = $value['composition_id'].'.mp4'; - if($value['is_uploaded']){$video_name = $value['composition_id'];} + if($value['is_uploaded'] || $value['vps'] == 'google'){$video_name = $value['composition_id'];} $file_name = $video_name; if($value['s3_copied'])