FLIX VISION v2.8.2版本的 MD5 值为:4d33b143293b36f23ce5a6a5834e6993
以下内容为反编译后的 BaseProcessor.java 源代码,内容仅作参考
package flix.com.vision.processors.english;
import a.b;
import android.annotation.SuppressLint;
import android.content.Context;
import cz.msebera.android.httpclient.client.utils.URLEncodedUtils;
import e6.f;
import flix.com.vision.App;
import flix.com.vision.api.premiumize.PremiumizeCommon;
import flix.com.vision.helpers.Constants;
import hb.e;
import ib.o;
import java.net.URI;
import java.util.ArrayDeque;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import java.util.Random;
import org.apache.commons.lang3.StringUtils;
import q2.m;
import v9.n0;
public abstract class BaseProcessor {
public e f12420b;
public Context f12421c;
public int f12419a = 5;
public String f12422d = "";
public final ArrayDeque<Integer> f12423e = new ArrayDeque<>();
public enum TorrentServiceType {
REAL_DEBRID,
PREMIUMIZE,
ALL_DEBRID
}
public class a extends m {
public final String f12428h;
public a(String str, rb.e eVar, n0 n0Var, String str2) {
super(1, str, eVar, n0Var);
this.f12428h = str2;
}
@Override
public String getBodyContentType() {
return "application/x-www-form-urlencoded; charset=UTF-8";
}
@Override
public Map<String, String> getHeaders() {
return b.t("Content-Type", URLEncodedUtils.CONTENT_TYPE);
}
@Override
public Map<String, String> getParams() {
HashMap hashMap = new HashMap();
hashMap.put("src", this.f12428h);
return hashMap;
}
}
public static boolean isEnglishlang(String str, String str2) {
if (str != null && str.length() >= 10) {
String lowerCase = str.toLowerCase();
for (String str3 : Constants.f12307g) {
if (!lowerCase.contains("." + str3 + ".")) {
if (!lowerCase.toLowerCase().contains(StringUtils.SPACE + str3 + StringUtils.SPACE)) {
continue;
}
}
if (!str2.contains(StringUtils.SPACE + str3 + StringUtils.SPACE) && !lowerCase.contains("eng") && !lowerCase.contains("english")) {
return false;
}
}
}
return true;
}
public static String removeSpecialCharsOld(String str) {
return str.replaceAll("[-+.^:,]", "");
}
public final void a(int i10) {
ca.a.getMagnetStatusAllDebrid(i10 + "").observeOn(oc.a.mainThread()).subscribeOn(fd.a.newThread()).subscribe(new f(this, i10), new o.a(i10));
}
public void addLink(o oVar) {
if (oVar.f13829l || !(oVar.f13838u.contains("streamango") || oVar.f13838u.contains("rapidvideo") || oVar.f13838u.contains("vidcloud") || oVar.f13838u.contains("loadvid") || oVar.f13837t.toLowerCase().contains("hydrax"))) {
String str = oVar.f13838u;
if (str != null && str.contains("mixdrop")) {
oVar.f13829l = true;
}
if (!oVar.f13832o && oVar.isDoodlink()) {
new cb.b(this.f12421c, this.f12420b).fetchLinks(oVar);
return;
}
if (oVar.f13840w) {
oVar.f13837t = b.n(new StringBuilder(), oVar.f13837t, "- [EMBED]");
if (oVar.f13831n) {
oVar.f13837t = b.n(new StringBuilder(), oVar.f13837t, "- [HINDI]");
}
this.f12420b.OnSuccess(oVar);
return;
}
if (oVar.f13838u.contains("openload") || oVar.f13838u.contains("oload.")) {
oVar.f13840w = true;
oVar.f13837t = b.n(new StringBuilder(), oVar.f13837t, "- [EMBED]");
} else if (oVar.f13838u.contains("embed") || oVar.f13838u.contains("viduplayer")) {
oVar.f13840w = true;
oVar.f13837t = b.n(new StringBuilder(), oVar.f13837t, "- [EMBED]");
this.f12420b.OnSuccess(oVar);
return;
}
this.f12420b.OnSuccess(oVar);
}
}
@SuppressLint({"CheckResult"})
public void addMagnetsAllDebrid(List<String> list) {
ca.a.addMagnetAllDebrid(list).observeOn(oc.a.mainThread()).subscribeOn(fd.a.newThread()).subscribe(new rb.e(this, 1), new n0(23));
}
public String checkLinkLabel(String str) {
String str2;
String domainName = getDomainName(str);
int nextInt = new Random().nextInt(10);
if (nextInt == 1) {
try {
str2 = "480p - [" + domainName + "]";
} catch (Exception e10) {
e10.printStackTrace();
str2 = "480p - [" + domainName + "]";
}
} else if (nextInt > 3) {
try {
str2 = "720p - [" + domainName + "]";
} catch (Exception e11) {
e11.printStackTrace();
str2 = "720p - [" + domainName + "]";
}
} else {
try {
str2 = "1080p - [" + domainName + "]";
} catch (Exception e12) {
e12.printStackTrace();
str2 = "1080p - [" + domainName + "]";
}
}
if (str.contains(".m3u8")) {
str2 = b.C(str2, "[HLS]");
}
return str2.replace("OPENLOAD", "OLOAD");
}
public 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 void getMagnetPrem(String str) {
App.getInstance().getRequestQueue().add(new a(b.k("https://www.premiumize.me/api/transfer/directdl?apikey=", PremiumizeCommon.f12029g), new rb.e(this, 0), new n0(22), str));
}
public String removeSpecialChars(String str) {
return str.replaceAll("[^a-zA-Z0-9]", "");
}
public void unlockLinkAllRebrid(String str) {
ca.a.unlockLinkAllDebrid(str).observeOn(oc.a.mainThread()).subscribeOn(fd.a.newThread()).subscribe(new rb.e(this, 2), new n0(24));
}
}