。。。
This commit is contained in:
parent
6b63979594
commit
8cb469de89
|
@ -46,7 +46,7 @@ public class TsingtaoXHAVideoPreviewService extends AbstractVideoPreviewService
|
|||
@Override
|
||||
public String getHls(String key) {
|
||||
List<String> result = new CopyOnWriteArrayList<>();
|
||||
String url = String.format(tsingtao_xhaProperties.getCloudhls(), key);
|
||||
String url = String.format(tsingtao_xhaProperties.getCloudhls(), key.replaceAll("\"", ""));
|
||||
Request request = new Request.Builder().url(url).build();
|
||||
try (Response response = client.newCall(request).execute()) {
|
||||
if (response.isSuccessful()) {
|
||||
|
@ -58,7 +58,7 @@ public class TsingtaoXHAVideoPreviewService extends AbstractVideoPreviewService
|
|||
logger.error("西海岸预览地址获取失败:{}", url);
|
||||
}
|
||||
} catch (Exception exception) {
|
||||
logger.error("西海岸预览地址获取失败:", url, exception);
|
||||
logger.error("西海岸预览地址获取失败:{}", url, exception);
|
||||
}
|
||||
return result.stream().filter(index -> StringUtils.isNotEmpty(index)).findAny().orElse(null);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue