FLIX VISION v2.8.2版本的 MD5 值为:4d33b143293b36f23ce5a6a5834e6993

以下内容为反编译后的 t.java 源代码,内容仅作参考


package xb;

import android.os.AsyncTask;
import android.util.Log;
import flix.com.vision.activities.MovieDetailActivity;
import flix.com.vision.api.realdebrid.RealDebridCommon;
import flix.com.vision.helpers.Constants;
import flix.com.vision.models.torrent.AllTorrentsInfoDTO;
import flix.com.vision.models.torrent.RealDebridException;
import flix.com.vision.models.torrent.TorrentInfoDTO;
import java.net.HttpURLConnection;
import java.net.URL;
import java.util.ArrayList;
import java.util.LinkedHashMap;

public final class t extends AsyncTask<Void, Void, String> {

    public final String f19873a;

    public final String f19874b;

    public final s f19875c;

    public t(s sVar, String str, String str2) {
        this.f19875c = sVar;
        this.f19873a = str;
        this.f19874b = str2;
    }

    @Override
    public String doInBackground(Void... voidArr) {
        String readJSON;
        String str = this.f19873a;
        String str2 = this.f19874b;
        s sVar = this.f19875c;
        sVar.getClass();
        try {
            try {
                TorrentInfoDTO torrentInfoDTO = (TorrentInfoDTO) cc.c.getObjectMapper().readValue(str, TorrentInfoDTO.class);
                int selectCorrectFileId = cc.c.selectCorrectFileId(torrentInfoDTO);
                LinkedHashMap linkedHashMap = new LinkedHashMap();
                linkedHashMap.put("files", String.valueOf(selectCorrectFileId));
                cc.c.postAndGetData("https://api.real-debrid.com/rest/1.0/torrents/selectFiles/" + str2, RealDebridCommon.f12030b, linkedHashMap);
                HttpURLConnection httpUrlConnection = cc.c.getHttpUrlConnection(new URL("https://api.real-debrid.com/rest/1.0/torrents"), RealDebridCommon.f12030b);
                if (httpUrlConnection.getResponseCode() == 200 && (readJSON = Constants.readJSON(httpUrlConnection.getInputStream())) != null) {
                    ArrayList arrayList = new ArrayList();
                    com.google.gson.l asJsonArray = com.google.gson.r.parseString(readJSON).getAsJsonArray();
                    for (int i10 = 0; i10 < asJsonArray.size(); i10++) {
                        try {
                            com.google.gson.q asJsonObject = asJsonArray.get(i10).getAsJsonObject();
                            AllTorrentsInfoDTO allTorrentsInfoDTO = new AllTorrentsInfoDTO();
                            allTorrentsInfoDTO.setHash(asJsonObject.get("hash").getAsString());
                            com.google.gson.l asJsonArray2 = asJsonObject.get("links").getAsJsonArray();
                            ArrayList arrayList2 = new ArrayList();
                            for (int i11 = 0; i11 < asJsonArray2.size(); i11++) {
                                arrayList2.add(asJsonArray2.get(i11).getAsString());
                            }
                            allTorrentsInfoDTO.setLinks(arrayList2);
                            arrayList.add(allTorrentsInfoDTO);
                        } catch (Exception unused) {
                        }
                    }
                    String linkOfSelectedTorrentFromTorrentInfo = cc.c.getLinkOfSelectedTorrentFromTorrentInfo(torrentInfoDTO, arrayList);
                    ib.o oVar = new ib.o();
                    oVar.f13829l = true;
                    oVar.f13838u = linkOfSelectedTorrentFromTorrentInfo;
                    sVar.addLink(oVar);
                    return null;
                }
                return null;
            } catch (RealDebridException e10) {
                Log.d(MovieDetailActivity.class.toString(), "", e10);
                return null;
            }
        } catch (Exception e11) {
            Log.d(MovieDetailActivity.class.toString(), "", e11);
            return null;
        }
    }

    @Override
    public void onPostExecute(String str) {
        super.onPostExecute((t) str);
    }
}