mirror of
https://github.com/Bigherollc/wticreatorstudio.git
synced 2026-07-31 05:16:49 -04:00
StudioPlus Module Update
Fix download video filename
This commit is contained in:
@@ -844,6 +844,16 @@ class StudioPlusVideoController extends Controller
|
||||
if (!isset($validated['amazon_total_reviews'])) {
|
||||
$validated['amazon_total_reviews'] = $studioPlusVideo->amazon_total_reviews;
|
||||
}
|
||||
|
||||
|
||||
if(preg_match('#/wticreatorhub/([^>]*)#', $video->video_url, $match)){
|
||||
if($video->videoType->vertical_video && $video->title != $validated['title']){
|
||||
(new GoogleCloudPlatform)->updateVideoMetaData($match[1], $validated['title']);
|
||||
} else {
|
||||
(new GoogleCloudPlatform)->updateVideoMetaData($match[1], $validated['asin']);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
$video->update($validated);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user