diff --git a/src/main/java/com/bw/fileDownload/service/DownloadExecService.java b/src/main/java/com/bw/fileDownload/service/DownloadExecService.java index 46bf67e..ae86cc3 100644 --- a/src/main/java/com/bw/fileDownload/service/DownloadExecService.java +++ b/src/main/java/com/bw/fileDownload/service/DownloadExecService.java @@ -72,6 +72,7 @@ public class DownloadExecService { } String[] split = url.split("###"); String videoType = split[1]; + videoType = "." + videoType; String fileType = videoType; String m3u8Type = ".m3u8"; String youtubeTypeFr = "youtube"; @@ -503,6 +504,7 @@ public class DownloadExecService { String[] split = url.split("###"); String fileUrl = split[0]; String fileType = split[1]; + fileType = "." + fileType; try { if (!StringUtil.hasValue(fileUrl)) { downloadStatusCode = Constants.IMAGE_LIST_NULL; @@ -604,6 +606,7 @@ public class DownloadExecService { String[] split = url.split("###"); String fileUrl = split[0]; String fileType = split[1]; + fileType = "." + fileType; try { if (!StringUtil.hasValue(fileUrl)) { downloadStatusCode = Constants.IMAGE_LIST_NULL; @@ -739,6 +742,7 @@ public class DownloadExecService { String[] split = url.split("###"); String fileUrl = split[0]; String fileType = split[1]; + fileType = "." + fileType; try { if (!StringUtil.hasValue(fileUrl)) { downloadStatusCode = Constants.IMAGE_LIST_NULL; @@ -818,6 +822,7 @@ public class DownloadExecService { String[] split = url.split("###"); String fileUrl = split[0]; String fileType = split[1]; + fileType = "." + fileType; try { if (!StringUtil.hasValue(fileUrl)) { downloadStatusCode = Constants.IMAGE_LIST_NULL;