|
|
|
|
@ -218,7 +218,7 @@ public class VodConfig { |
|
|
|
|
if (TextUtils.isEmpty(api)) return api; |
|
|
|
|
if (api.startsWith("http")) return api; |
|
|
|
|
if (api.startsWith("file")) return UrlUtil.convert(api); |
|
|
|
|
if (api.endsWith(".js") || api.endsWith(".py")) return parseApi(UrlUtil.convert(config.getUrl(), api)); |
|
|
|
|
if (api.startsWith("clan")) return parseApi(UrlUtil.fixUrl(api)); |
|
|
|
|
return api; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
@ -227,8 +227,7 @@ public class VodConfig { |
|
|
|
|
if (ext.startsWith("http")) return ext; |
|
|
|
|
if (ext.startsWith("img+")) return Decoder.getExt(ext); |
|
|
|
|
if (ext.startsWith("file")) return UrlUtil.convert(ext); |
|
|
|
|
if (ext.contains("http") || ext.contains("file")) return ext; |
|
|
|
|
if (ext.endsWith(".txt") || ext.endsWith(".json") || ext.endsWith(".js") || ext.endsWith(".py")) return parseExt(UrlUtil.convert(config.getUrl(), ext)); |
|
|
|
|
if (ext.startsWith("clan")) return parseExt(UrlUtil.fixUrl(ext)); |
|
|
|
|
return ext; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|