|
@@ -299,6 +299,11 @@ public class CrawlerVideoServiceImpl {
|
|
|
String coverPath = VideoDownloader.downloadCover(outVideoId, platform, crawlerVideo.getCoverUrl());
|
|
|
if (StringUtils.isNotEmpty(videoPath)) {
|
|
|
String videoOssPath = OSSUploader.uploadToOSS(videoPath, "video");
|
|
|
+ int uploadOssCount = 0;
|
|
|
+ while (StringUtils.isEmpty(videoOssPath) && uploadOssCount < 3) {
|
|
|
+ videoOssPath = OSSUploader.uploadToOSS(videoPath, "video");
|
|
|
+ uploadOssCount++;
|
|
|
+ }
|
|
|
if (StringUtils.isNotEmpty(videoOssPath)) {
|
|
|
CrawlerVideo udpateCrawlerVideo = new CrawlerVideo();
|
|
|
udpateCrawlerVideo.setVideoOssPath(videoOssPath);
|