FLIX VISION v2.8.2版本的 MD5 值为:4c8f04d6db90386313134c0796491235
以下内容为反编译后的 a.java 源代码,内容仅作参考
package nb;
import a.b;
import flix.com.vision.App;
import java.net.URI;
import java.util.Random;
import q2.i;
import v9.n0;
public final class a {
public static String checkLinkLabel(String str) {
String str2;
String domainName = getDomainName(str);
if (hasMultiRes(str)) {
return b.k("1080p - 720p - 480p - ", domainName);
}
if (new Random().nextInt(10) > 2) {
try {
str2 = "720p - [" + domainName + "]";
} catch (Exception e10) {
e10.printStackTrace();
str2 = "720p - [" + domainName + "]";
}
} else {
try {
str2 = "1080p - [" + domainName + "]";
} catch (Exception e11) {
e11.printStackTrace();
str2 = "1080p - [" + domainName + "]";
}
}
if (str.contains(".m3u8")) {
str2 = b.C(str2, "[HLS]");
}
return str2.replace("OPENLOAD", "OLOAD");
}
public static void fetchTMDBAPI() {
if (App.getInstance().f11732q.getString("tmdb_base_url", null) == null) {
App.getInstance().f11732q.edit().putString("tmdb_base_url", "http://image.tmdb.org/t/p/").apply();
}
App.getInstance().addToRequestQueue(new i(0, "https://api.themoviedb.org/3/configuration?api_key=2f3cb5763db1117fcba3948632f8aad9", null, new n0(18), new n0(19)), "TMDBAPIREQ");
}
public static String getDomainName(String str) {
String str2;
String str3;
if (str.contains("google") || str.contains("blogspot")) {
return "GOOGLEVIDEO";
}
try {
str2 = new URI(str).getHost();
} catch (Exception e10) {
e = e10;
str2 = "";
}
try {
if (str2.startsWith("www.")) {
str2 = str2.substring(4);
}
} catch (Exception e11) {
e = e11;
e.printStackTrace();
try {
str2 = str.split("/")[2];
} catch (Exception e12) {
e12.printStackTrace();
}
if (str2 != null) {
}
if (str3.contains(".")) {
}
return str3.toUpperCase();
}
str3 = str2 != null ? str2 : "";
if (str3.contains(".")) {
try {
String[] split = str3.split("\\.");
str3 = split[split.length - 2];
} catch (Exception e13) {
e13.printStackTrace();
}
}
return str3.toUpperCase();
}
public static boolean hasMultiRes(String str) {
return str != null && str.toLowerCase().contains("2embed");
}
}