MD5 校验值:d7f913ab91d7343430e85d5ce2e5aff0
d.java 文件包含反编译后的源代码,请注意,该内容仅供学习和参考使用,不得用于非法用途。
package xe; import android.content.Context; import com.iptv.player.R; import com.ottplay.ottplay.ForegroundService; import com.ottplay.ottplay.database.EpgDatabase; import com.ottplay.ottplay.epg.EpgSource; import java.io.File; import java.io.IOException; import java.util.List; import java.util.Objects; import java.util.concurrent.TimeUnit; public final class d implements lg.a, lg.b { public final int f44784a; public final com.ottplay.ottplay.b f44785b; public d(com.ottplay.ottplay.b bVar, int i10) { this.f44784a = i10; this.f44785b = bVar; } @Override public void a(Object obj) { com.ottplay.ottplay.b bVar = this.f44785b; Objects.requireNonNull(bVar); ((Throwable) obj).printStackTrace(); if (bVar.f20086a + 3600 <= cg.a.w()) { bVar.f20086a = cg.a.w(); } androidx.appcompat.widget.o.f9580a = false; androidx.appcompat.widget.o.f9581b = false; bVar.i(""); cg.a.k(bVar.f20089d, 0L, 101); cg.a.Z(bVar.f20089d, ForegroundService.a.f20030b); } @Override public void run() { int i10; boolean z10; long j10; long j11 = 0; switch (this.f44784a) { case 0: com.ottplay.ottplay.b bVar = this.f44785b; EpgDatabase w10 = EpgDatabase.w(bVar.f20089d); if (w10.u().d()) { com.ottplay.ottplay.b.h(bVar.f20089d).f20086a = 0L; w10.v().j(); w10.v().e(); w10.v().h(); } List<EpgSource> i11 = w10.v().i(); if (i11 == null || i11.isEmpty()) { return; } for (EpgSource epgSource : i11) { bVar.i(bVar.f20089d.getString(R.string.f65860_resource_name_obfuscated_res_0x7f13029c)); long epgLastUpdated = epgSource.getEpgLastUpdated(); long j12 = bVar.f20086a; if (j12 == j11 || j12 + 3600 < cg.a.w()) { if (bVar.f20087b) { bVar.f20087b = false; try { TimeUnit.SECONDS.sleep(3L); } catch (InterruptedException e10) { e10.printStackTrace(); } } int epgUpdateFrequency = epgSource.getEpgUpdateFrequency(); if (epgUpdateFrequency == 0 && (epgSource.getEpgUrl().contains("http://m3u4u.com/") || epgSource.getEpgUrl().contains("https://m3u4u.com/"))) { epgUpdateFrequency = 3; } switch (epgUpdateFrequency) { case 1: i10 = Math.round(21600.0f); epgSource.setEpgLastUpdated(cg.a.w()); if (epgLastUpdated != j11) { break; } z10 = true; break; case 2: i10 = Math.round(43200.0f); epgSource.setEpgLastUpdated(cg.a.w()); if (epgLastUpdated != j11) { } z10 = true; break; case 3: i10 = 86400; epgSource.setEpgLastUpdated(cg.a.w()); if (epgLastUpdated != j11) { } z10 = true; break; case 4: i10 = 172800; epgSource.setEpgLastUpdated(cg.a.w()); if (epgLastUpdated != j11) { } z10 = true; break; case 5: i10 = 259200; epgSource.setEpgLastUpdated(cg.a.w()); if (epgLastUpdated != j11) { } z10 = true; break; case 6: i10 = 345600; epgSource.setEpgLastUpdated(cg.a.w()); if (epgLastUpdated != j11) { } z10 = true; break; case 7: i10 = 432000; epgSource.setEpgLastUpdated(cg.a.w()); if (epgLastUpdated != j11) { } z10 = true; break; case 8: i10 = 518400; epgSource.setEpgLastUpdated(cg.a.w()); if (epgLastUpdated != j11) { } z10 = true; break; case 9: i10 = 604800; epgSource.setEpgLastUpdated(cg.a.w()); if (epgLastUpdated != j11) { } z10 = true; break; default: if (epgSource.getEpgUrl().contains("http://") || epgSource.getEpgUrl().contains("https://")) { try { epgSource.getEpgUrl(); j10 = cg.a.x(epgSource.getEpgUrl(), "HEAD"); } catch (IOException unused) { epgSource.getEpgUrl(); try { epgSource.getEpgUrl(); j10 = cg.a.x(epgSource.getEpgUrl(), "GET"); } catch (IOException unused2) { epgSource.getEpgUrl(); j10 = j11; } } if (j10 != j11) { if (epgLastUpdated <= j11 || j10 - epgLastUpdated > 1800) { epgSource.setEpgLastUpdated(j10); z10 = true; break; } else { epgSource.setEpgLastUpdated(j10); break; } } } i10 = 86400; epgSource.setEpgLastUpdated(cg.a.w()); if (epgLastUpdated != j11) { } z10 = true; break; } if (z10) { if (androidx.appcompat.widget.o.f9580a) { epgSource.getEpgName(); cg.a.Y(bVar.f20089d, ForegroundService.a.f20029a); androidx.appcompat.widget.o.f9581b = true; if (cg.a.s(bVar.f20089d, "", true).getUsableSpace() < 209715200) { if (androidx.appcompat.widget.o.f9580a) { Context context = bVar.f20089d; cg.a.X(context, context.getString(R.string.f59860_resource_name_obfuscated_res_0x7f130044), 1); } } else if (epgSource.getEpgUrl().contains("http://") || epgSource.getEpgUrl().contains("https://") || epgSource.getEpgUrl().contains("ftp://")) { try { File e11 = bVar.e(epgSource); if (e11 == null) { epgSource.getEpgName(); throw new IOException(); break; } else { epgSource.getEpgName(); bVar.j(e11, epgSource); } } catch (IOException e12) { e12.printStackTrace(); if (androidx.appcompat.widget.o.f9580a && !cg.a.G(bVar.f20089d)) { cg.a.X(bVar.f20089d, bVar.f20089d.getString(R.string.f65040_resource_name_obfuscated_res_0x7f13024a), 0); } else if (!cg.a.a0(e12.getMessage()).equals("JTV format is not supported!")) { EpgDatabase.w(bVar.f20089d).v().g(epgSource.getId(), true); } } } else if (androidx.appcompat.widget.o.f9580a) { EpgDatabase.w(bVar.f20089d).v().g(epgSource.getId(), true); } } else { epgSource.getEpgName(); } } j11 = 0; } z10 = false; if (z10) { } j11 = 0; } return; default: com.ottplay.ottplay.b bVar2 = this.f44785b; if (bVar2.f20086a + 3600 <= cg.a.w()) { bVar2.f20086a = cg.a.w(); } androidx.appcompat.widget.o.f9580a = false; androidx.appcompat.widget.o.f9581b = false; bVar2.i(""); cg.a.k(bVar2.f20089d, 0L, 101); cg.a.Z(bVar2.f20089d, ForegroundService.a.f20030b); return; } } }