This commit is contained in:
Harvey Zack committed 2018-10-13 18:14:38 +08:00
1 parent 093e5b213f
commit a79a3cef87
2 files changed
+3 -4

No files matched your search

+2 -3
View File
@@ -472,9 +472,8 @@
var option = this.art.option;
if (!option.type) {
var urlArr = option.url.trim().toLowerCase().split('.');
var type = urlArr[urlArr.length - 1];
errorHandle(Object.keys(mimeCodeces).includes(type), "Can't find video's type from ".concat(option.url));
var type = option.url.trim().toLowerCase().split('.').pop();
errorHandle(Object.keys(mimeCodeces).includes(type), "Can't find video's type '".concat(type, "' from '").concat(option.url, "'"));
option.type = type;
}