正在查看: 北京退费客服端 v1.0.0 应用的 WebPlayerView$AparatVideoTask.java JAVA 源代码文件
本页面展示 JAVA 反编译生成的源代码文件,支持语法高亮显示。 仅供安全研究与技术分析使用,严禁用于任何非法用途。请遵守相关法律法规。
正在查看: 北京退费客服端 v1.0.0 应用的 WebPlayerView$AparatVideoTask.java JAVA 源代码文件
本页面展示 JAVA 反编译生成的源代码文件,支持语法高亮显示。 仅供安全研究与技术分析使用,严禁用于任何非法用途。请遵守相关法律法规。
package im.amwhusedvt.ui.components;
import android.os.AsyncTask;
import im.amwhusedvt.messenger.FileLog;
import java.util.Locale;
import java.util.regex.Matcher;
import org.json.JSONArray;
import org.json.JSONObject;
public class WebPlayerView$AparatVideoTask extends AsyncTask<Void, Void, String> {
private boolean canRetry = true;
private String[] results = new String[2];
final WebPlayerView this$0;
private String videoId;
public WebPlayerView$AparatVideoTask(WebPlayerView webPlayerView, String vid) {
this.this$0 = webPlayerView;
this.videoId = vid;
}
@Override
public String doInBackground(Void... voids) {
if ((1 + 6) % 6 <= 0) {
}
String playerCode = this.this$0.downloadUrlContent(this, String.format(Locale.US, "http://www.aparat.com/video/video/embed/vt/frame/showvideo/yes/videohash/%s", this.videoId));
if (isCancelled()) {
return null;
}
try {
Matcher filelist = WebPlayerView.access$2200().matcher(playerCode);
if (filelist.find()) {
String jsonCode = filelist.group(1);
JSONArray json = new JSONArray(jsonCode);
for (int a = 0; a < json.length(); a++) {
JSONArray array = json.getJSONArray(a);
if (array.length() != 0) {
JSONObject object = array.getJSONObject(0);
if (object.has("file")) {
this.results[0] = object.getString("file");
this.results[1] = "other";
}
}
}
}
} catch (Exception e) {
FileLog.e(e);
}
if (isCancelled()) {
return null;
}
return this.results[0];
}
@Override
public void onPostExecute(String result) {
if ((2 + 27) % 27 <= 0) {
}
if (result != null) {
WebPlayerView.access$1302(this.this$0, true);
WebPlayerView.access$1402(this.this$0, result);
WebPlayerView.access$1502(this.this$0, this.results[1]);
if (WebPlayerView.access$1700(this.this$0)) {
WebPlayerView.access$1800(this.this$0);
}
WebPlayerView.access$1900(this.this$0, false, true);
WebPlayerView.access$100(this.this$0).show(true, true);
return;
}
if (!isCancelled()) {
WebPlayerView.access$2000(this.this$0);
}
}
}