MD5 校验值:d7f913ab91d7343430e85d5ce2e5aff0
b.java 文件包含反编译后的源代码,请注意,该内容仅供学习和参考使用,不得用于非法用途。
package yf; import android.content.Context; import android.util.Pair; import com.huawei.hms.support.hianalytics.HiAnalyticsConstant; import com.ottplay.ottplay.database.PlaylistDatabase; import com.ottplay.ottplay.m3u.XCInfo; import com.ottplay.ottplay.m3u.XCLiveStream; import com.ottplay.ottplay.playlists.Playlist; import java.io.BufferedReader; import java.io.InputStream; import java.io.InputStreamReader; import java.nio.charset.StandardCharsets; import java.util.ArrayList; import java.util.HashMap; import java.util.Iterator; import java.util.List; import java.util.Locale; import java.util.Map; import java.util.Objects; import java.util.regex.Matcher; import java.util.regex.Pattern; public class b { public final int a(String str) { int i10; int i11 = -1; if (str.contains("timeshift=\"")) { i11 = str.indexOf("timeshift=\"") + 11; i10 = str.indexOf("\"", i11); } else { i10 = -1; } if ((i11 < 0 || i10 < 1 || i11 == i10) && str.contains("catchup-days=\"")) { i11 = str.indexOf("catchup-days=\"") + 14; i10 = str.indexOf("\"", i11); } if ((i11 < 0 || i10 < 1 || i11 == i10) && str.contains("tvg-rec=\"")) { i11 = str.indexOf("tvg-rec=\"") + 9; i10 = str.indexOf("\"", i11); } if (i11 < 0 || i10 < 1 || i11 == i10) { return 0; } try { return Integer.parseInt(str.substring(i11, i10).trim()); } catch (NumberFormatException e10) { e10.printStackTrace(); return 0; } } public final String b(String str) { int i10; int i11 = -1; if (str.contains("catchup-source=\"")) { i11 = str.indexOf("catchup-source=\"") + 16; i10 = str.indexOf("\"", i11); } else { i10 = -1; } return (i11 < 0 || i10 < 1 || i11 == i10) ? "" : str.substring(i11, i10).trim(); } public final String c(String str) { int i10; int i11 = -1; if (str.contains("#EXTGRP:")) { i11 = str.indexOf("#EXTGRP:") + 8; i10 = str.indexOf(System.lineSeparator(), i11); } else { i10 = -1; } if ((i11 < 0 || i10 < 1 || i11 == i10) && str.contains("group-title=\"")) { i11 = str.indexOf("group-title=\"") + 13; i10 = str.indexOf("\"", i11); } if ((i11 < 0 || i10 < 1 || i11 == i10) && str.contains("tvg-group=\"")) { i11 = str.indexOf("tvg-group=\"") + 11; i10 = str.indexOf("\"", i11); } return (i11 < 0 || i10 < 1 || i11 == i10) ? "" : cg.a.f(str.substring(i11, i10).trim()); } public final String d(String str) { int lastIndexOf = str.trim().lastIndexOf(System.lineSeparator()); if (lastIndexOf == -1) { return ""; } String substring = str.substring(System.lineSeparator().length() + lastIndexOf); if (substring.contains("|referer=")) { int indexOf = substring.indexOf("|referer=") + 9; int indexOf2 = substring.indexOf(HiAnalyticsConstant.REPORT_VAL_SEPARATOR, indexOf); if (indexOf2 < 0) { indexOf2 = substring.length(); } return substring.substring(indexOf, indexOf2).trim(); } if (substring.contains("|referrer=")) { int indexOf3 = substring.indexOf("|referrer=") + 10; int indexOf4 = substring.indexOf(HiAnalyticsConstant.REPORT_VAL_SEPARATOR, indexOf3); if (indexOf4 < 0) { indexOf4 = substring.length(); } return substring.substring(indexOf3, indexOf4).trim(); } if (substring.contains("|Referer=")) { int indexOf5 = substring.indexOf("|Referer=") + 9; int indexOf6 = substring.indexOf(HiAnalyticsConstant.REPORT_VAL_SEPARATOR, indexOf5); if (indexOf6 < 0) { indexOf6 = substring.length(); } return substring.substring(indexOf5, indexOf6).trim(); } if (substring.contains("|Referrer=")) { int indexOf7 = substring.indexOf("|Referrer=") + 10; int indexOf8 = substring.indexOf(HiAnalyticsConstant.REPORT_VAL_SEPARATOR, indexOf7); if (indexOf8 < 0) { indexOf8 = substring.length(); } return substring.substring(indexOf7, indexOf8).trim(); } if (str.contains("#EXTVLCOPT:http-referer=")) { int indexOf9 = str.indexOf("#EXTVLCOPT:http-referer=") + 24; int indexOf10 = str.indexOf(System.lineSeparator(), indexOf9); if (indexOf10 < 0) { indexOf10 = str.length(); } return str.substring(indexOf9, indexOf10).trim(); } if (!str.contains("#EXTVLCOPT:http-referrer=")) { return ""; } int indexOf11 = str.indexOf("#EXTVLCOPT:http-referrer=") + 25; int indexOf12 = str.indexOf(System.lineSeparator(), indexOf11); if (indexOf12 < 0) { indexOf12 = str.length(); } return str.substring(indexOf11, indexOf12).trim(); } public final String e(String str) { int i10; int i11 = -1; if (str.contains("tvg-id=\"")) { i11 = str.indexOf("tvg-id=\"") + 8; i10 = str.indexOf("\"", i11); } else { i10 = -1; } if ((i11 < 0 || i10 < 1 || i11 == i10) && str.contains("tvg-ID=\"")) { i11 = str.indexOf("tvg-ID=\"") + 8; i10 = str.indexOf("\"", i11); } if ((i11 < 0 || i10 < 1 || i11 == i10) && str.contains("tvg-name=\"")) { i11 = str.indexOf("tvg-name=\"") + 10; i10 = str.indexOf("\"", i11); } return (i11 < 0 || i10 < 1 || i11 == i10) ? "" : str.substring(i11, i10).trim().toLowerCase(Locale.ROOT); } public final String f(String str) { int i10; String substring = str.substring(0, str.indexOf(System.lineSeparator())); int lastIndexOf = substring.lastIndexOf("\","); int lastIndexOf2 = substring.lastIndexOf("\" ,"); int indexOf = substring.indexOf(","); int i11 = -1; if (lastIndexOf != -1) { i11 = lastIndexOf + 2; i10 = substring.length(); } else if (lastIndexOf2 != -1) { i11 = lastIndexOf2 + 3; i10 = substring.length(); } else if (indexOf != -1) { i11 = indexOf + 1; i10 = substring.length(); } else { i10 = -1; } return (i11 < 0 || i10 < 1 || i11 == i10) ? "" : substring.substring(i11, i10).trim(); } public final String g(String str) { int i10; int i11 = -1; if (str.contains("url-tvg=\"")) { i11 = str.indexOf("url-tvg=\"") + 9; i10 = str.indexOf("\"", i11); } else { i10 = -1; } if ((i11 < 0 || i10 < 1 || i11 == i10) && str.contains("tvg-url=\"")) { i11 = str.indexOf("tvg-url=\"") + 9; i10 = str.indexOf("\"", i11); } if ((i11 < 0 || i10 < 1 || i11 == i10) && str.contains("x-tvg-url=\"")) { i11 = str.indexOf("x-tvg-url=\"") + 11; i10 = str.indexOf("\"", i11); } return (i11 < 0 || i10 < 1 || i11 == i10) ? "" : str.substring(i11, i10).trim(); } public final String h(String str) { int lastIndexOf = str.trim().lastIndexOf(System.lineSeparator()); if (lastIndexOf == -1) { return ""; } String substring = str.substring(System.lineSeparator().length() + lastIndexOf); if (substring.startsWith("http://yadi.sk/") || substring.startsWith("https://yadi.sk/")) { substring = "https://getfile.dokpub.com/yandex/get/".concat(substring); } if (substring.contains(HiAnalyticsConstant.REPORT_VAL_SEPARATOR)) { substring = substring.substring(0, substring.indexOf(HiAnalyticsConstant.REPORT_VAL_SEPARATOR)); } return substring.trim(); } public final boolean i(String str) { String lowerCase = str.toLowerCase(Locale.ROOT); return lowerCase.contains("catchup=\"append\"") || lowerCase.contains("catchup-type=\"append\""); } public final boolean j(String str) { String lowerCase = str.toLowerCase(Locale.ROOT); return lowerCase.contains("catchup=\"default\"") || lowerCase.contains("catchup-type=\"default\""); } public final boolean k(String str) { String lowerCase = str.toLowerCase(Locale.ROOT); return lowerCase.contains("catchup=\"flussonic\"") || lowerCase.contains("catchup=\"flussonic-ts\"") || lowerCase.contains("catchup=\"flussonic-hls\"") || lowerCase.contains("catchup-type=\"flussonic\"") || lowerCase.contains("catchup-type=\"flussonic-ts\"") || lowerCase.contains("catchup-type=\"flussonic-hls\""); } public final boolean l(String str) { String lowerCase = str.toLowerCase(Locale.ROOT); return lowerCase.contains("catchup=\"xc\"") || lowerCase.contains("catchup-type=\"xc\"") || lowerCase.contains("catchup=\"shift\"") || lowerCase.contains("catchup-type=\"shift\""); } public final String m(String str) { int lastIndexOf = str.trim().lastIndexOf(System.lineSeparator()); if (lastIndexOf == -1) { return ""; } String substring = str.substring(System.lineSeparator().length() + lastIndexOf); if (substring.contains("|user-agent=")) { int indexOf = substring.indexOf("|user-agent=") + 12; int indexOf2 = substring.indexOf(HiAnalyticsConstant.REPORT_VAL_SEPARATOR, indexOf); if (indexOf2 < 0) { indexOf2 = substring.length(); } return substring.substring(indexOf, indexOf2).trim(); } if (substring.contains("|User-Agent=")) { int indexOf3 = substring.indexOf("|User-Agent=") + 12; int indexOf4 = substring.indexOf(HiAnalyticsConstant.REPORT_VAL_SEPARATOR, indexOf3); if (indexOf4 < 0) { indexOf4 = substring.length(); } return substring.substring(indexOf3, indexOf4).trim(); } if (!str.contains("#EXTVLCOPT:http-user-agent=")) { return ""; } int indexOf5 = str.indexOf("#EXTVLCOPT:http-user-agent=") + 27; int indexOf6 = str.indexOf(System.lineSeparator(), indexOf5); if (indexOf6 < 0) { indexOf6 = str.length(); } return str.substring(indexOf5, indexOf6).trim(); } public final Map<Integer, Integer> n(Context context, String str, Playlist playlist) { String str2; String str3; HashMap hashMap = new HashMap(); try { if (str.matches("^(.+[:]//[^/]+)/([^/]+)/([^/]+)/(\\d+)$") || str.matches("^(.+[:]//[^/]+)/live/([^/]+)/([^/]+)/(\\d+[.].+)$")) { Matcher matcher = (str.matches("^(.+[:]//[^/]+)/([^/]+)/([^/]+)/(\\d+)$") ? Pattern.compile("^(.+[:]//[^/]+)/([^/]+)/([^/]+)/(\\d+)$") : Pattern.compile("^(.+[:]//[^/]+)/live/([^/]+)/([^/]+)/(\\d+[.].+)$")).matcher(str); String str4 = null; if (matcher.find()) { str4 = matcher.group(1); str3 = matcher.group(2); str2 = matcher.group(3); } else { str2 = null; str3 = null; } if (str4 != null && str3 != null && str2 != null) { Playlist a10 = Playlist.builder().a(); a10.setSource(str4); a10.setXcLogin(str3); a10.setXcPassword(str2); i iVar = new i(); XCInfo a11 = iVar.a(a10); if (a11 != null) { String valueOf = String.valueOf(cg.a.w() - cg.a.o(cg.a.a0(a11.getServerInfo().getTimeNow()))); PlaylistDatabase.s(context).u().f(playlist.getId(), valueOf); Playlist k10 = cg.f.k(); if (k10.getId() == playlist.getId()) { playlist.setXcTimezone(valueOf); k10.setXcTimezone(valueOf); } cg.f.R(k10); } List<XCLiveStream> c10 = iVar.c(a10); if (c10 != null) { for (XCLiveStream xCLiveStream : c10) { if (xCLiveStream.getCatchupDays() > 0) { hashMap.put(Integer.valueOf(xCLiveStream.getStreamId()), Integer.valueOf(xCLiveStream.getCatchupDays())); } } } } return hashMap; } } catch (Exception e10) { e10.printStackTrace(); } return hashMap; } public f3.c o(Context context, InputStream inputStream, Playlist playlist) { int i10; int i11; String[] strArr; int i12; f3.c cVar; int i13; int i14; int i15; char c10; Map<Integer, Integer> map; String str; Map<Integer, Integer> map2; char c11; char c12; int indexOf; int indexOf2; String str2; int i16; int i17; int i18; int i19; int intValue; String c13; String b10; Pair pair; int i20; char c14; f3.c cVar2 = new f3.c(16); ArrayList<a> arrayList = new ArrayList(); ArrayList arrayList2 = new ArrayList(); arrayList2.add(new Pair("televizo-all", 0)); arrayList2.add(new Pair("televizo-recently-watched", 0)); arrayList2.add(new Pair("televizo-fav", 0)); int catchupType = cg.f.k().getCatchupType(); int catchupDaysManualMax = cg.f.k().getCatchupDaysManualMax(); HashMap hashMap = new HashMap(); BufferedReader bufferedReader = new BufferedReader(new InputStreamReader(inputStream, StandardCharsets.UTF_8)); StringBuilder sb2 = new StringBuilder(); ArrayList arrayList3 = new ArrayList(); int i21 = 0; while (true) { String readLine = bufferedReader.readLine(); if (readLine == null) { break; } if (i21 > 10000 && readLine.contains("#EXTINF:")) { arrayList3.add(sb2.toString().split("#EXTINF:")); sb2 = new StringBuilder(); i21 = 0; } sb2.append(System.lineSeparator()); sb2.append(readLine); i21++; } if (i21 > 0) { arrayList3.add(sb2.toString().split("#EXTINF:")); } bufferedReader.close(); inputStream.close(); Iterator it = arrayList3.iterator(); String str3 = ""; Map<Integer, Integer> map3 = hashMap; String str4 = ""; String str5 = str4; int i22 = 0; int i23 = 0; int i24 = 0; boolean z10 = false; boolean z11 = false; boolean z12 = false; boolean z13 = false; while (it.hasNext()) { Iterator it2 = it; String[] strArr2 = (String[]) it.next(); String str6 = str3; int length = strArr2.length; int i25 = catchupType; int i26 = 0; int i27 = i24; int i28 = i22; int i29 = i23; String str7 = str5; String str8 = str4; boolean z14 = z11; ?? r13 = z10; int i30 = i27; while (i26 < length) { int i31 = length; String str9 = strArr2[i26]; if (str9.trim().isEmpty()) { cVar = cVar2; strArr = strArr2; i14 = i26; i15 = catchupDaysManualMax; map2 = map3; } else { int i32 = i29 + 1; strArr = strArr2; if (i32 == 1000) { d.m(); i12 = 0; } else { i12 = i32; } try { i13 = i12; if (str9.contains("#EXTM3U")) { cVar = cVar2; i14 = i26; i15 = catchupDaysManualMax; try { if (str9.contains("#EXTM3U")) { if (i30 < 1) { i30 = a(str9); } if (str7.isEmpty()) { str7 = b(str9); } try { if (r13 != 1) { try { if (l(str9)) { c14 = 1; if (str8.isEmpty()) { str8 = g(str9); } map2 = map3; r13 = c14; } } catch (StringIndexOutOfBoundsException e10) { e = e10; c12 = r13; str = str7; c11 = c12; map = map3; c10 = c11; e.printStackTrace(); map2 = map; str7 = str; r13 = c10; i29 = i13; i26 = i14 + 1; map3 = map2; length = i31; strArr2 = strArr; catchupDaysManualMax = i15; cVar2 = cVar; r13 = r13; } } if (str8.isEmpty()) { } map2 = map3; r13 = c14; } catch (StringIndexOutOfBoundsException e11) { e = e11; c12 = c14; str = str7; c11 = c12; map = map3; c10 = c11; e.printStackTrace(); map2 = map; str7 = str; r13 = c10; i29 = i13; i26 = i14 + 1; map3 = map2; length = i31; strArr2 = strArr; catchupDaysManualMax = i15; cVar2 = cVar; r13 = r13; } c14 = 2; if (r13 == 2 || !k(str9)) { c14 = 4; if (r13 == 4 || !j(str9)) { c14 = 3; if (r13 == 3 || !i(str9)) { c14 = r13 == true ? 1 : 0; } } } } else { map2 = map3; r13 = r13; } } catch (StringIndexOutOfBoundsException e12) { e = e12; c12 = r13; } } else { try { a aVar = new a(); aVar.a(c(str9)); String e13 = e(str9); i15 = catchupDaysManualMax; try { Objects.requireNonNull(e13, "identity is marked non-null but is null"); aVar.f45174b = e13; aVar.c(f(str9)); aVar.d(h(str9)); cVar = cVar2; i14 = i26; if (str9.contains("tvg-logo=\"")) { try { indexOf = str9.indexOf("tvg-logo=\"") + 10; indexOf2 = str9.indexOf("\"", indexOf); } catch (StringIndexOutOfBoundsException e14) { e = e14; map2 = map3; str = str7; map = map2; c10 = r13; e.printStackTrace(); map2 = map; str7 = str; r13 = c10; i29 = i13; i26 = i14 + 1; map3 = map2; length = i31; strArr2 = strArr; catchupDaysManualMax = i15; cVar2 = cVar; r13 = r13; } } else { indexOf = -1; indexOf2 = -1; } } catch (StringIndexOutOfBoundsException e15) { e = e15; cVar = cVar2; i14 = i26; } try { try { if (indexOf >= 0 && indexOf2 >= 1 && indexOf != indexOf2) { str2 = str9.substring(indexOf, indexOf2).trim(); aVar.b(str2); String m10 = m(str9); Objects.requireNonNull(m10, "userAgent is marked non-null but is null"); aVar.f45177e = m10; String d10 = d(str9); Objects.requireNonNull(d10, "httpReferer is marked non-null but is null"); aVar.f45178f = d10; aVar.f45179g = 0; if (str9.contains("tvg-shift=\"")) { i16 = -1; i17 = -1; } else { i16 = str9.indexOf("tvg-shift=\"") + 11; i17 = str9.indexOf("\"", i16); } if (i16 >= 0 || i17 < 1 || i16 == i17) { i18 = 0; } else { try { i20 = Integer.parseInt(str9.substring(i16, i17).trim()); } catch (NumberFormatException e16) { e16.printStackTrace(); i20 = 0; } i18 = -i20; } aVar.f45181i = i18; if (z14) { try { try { map2 = n(context, aVar.f45175c, playlist); z14 = true; } catch (StringIndexOutOfBoundsException e17) { e = e17; str = str7; c11 = r13; map = map3; c10 = c11; e.printStackTrace(); map2 = map; str7 = str; r13 = c10; i29 = i13; i26 = i14 + 1; map3 = map2; length = i31; strArr2 = strArr; catchupDaysManualMax = i15; cVar2 = cVar; r13 = r13; } } catch (StringIndexOutOfBoundsException e18) { e = e18; } } else { map2 = map3; } if (map2.isEmpty()) { try { c13 = ii.b.c(aVar.f45175c); } catch (Exception e19) { e = e19; } if (c13 == null) { c13 = null; } else { ii.b.a(c13); int e20 = ii.b.e(c13); if (e20 != -1) { try { c13 = c13.substring(0, e20); i19 = Integer.parseInt(c13); } catch (Exception e21) { e = e21; e.printStackTrace(); i19 = 0; if (i19 > 0) { } intValue = 0; if (intValue < 1) { } if (intValue >= 1) { } b10 = b(str9); if (b10.isEmpty()) { } if (!l(str9)) { } aVar.f45182j = 1; if (str8.isEmpty()) { } if (!aVar.f45173a.isEmpty()) { } pair = new Pair(aVar.f45180h, Integer.valueOf(aVar.f45179g)); if (!aVar.f45180h.isEmpty()) { } if (!z12) { } if (!z13) { } r13 = r13; i29 = i13; i26 = i14 + 1; map3 = map2; length = i31; strArr2 = strArr; catchupDaysManualMax = i15; cVar2 = cVar; r13 = r13; } if (i19 > 0) { try { Integer num = map2.get(Integer.valueOf(i19)); if (num != null && num.intValue() > 0) { intValue = num.intValue(); aVar.f45182j = 5; if (intValue < 1) { intValue = a(str9); } if (intValue >= 1) { aVar.f45183k = i30; if (i30 > i28) { i28 = i30; } } else { aVar.f45183k = intValue; if (intValue > i28) { i28 = intValue; } } b10 = b(str9); if (b10.isEmpty()) { aVar.f45184l = b10; } else { Objects.requireNonNull(str7, "catchupSource is marked non-null but is null"); aVar.f45184l = str7; } if (!l(str9) && r13 != 1) { if (!k(str9) && r13 != 2) { if (!j(str9) && r13 != 4) { if (!i(str9) || r13 == 3) { aVar.f45182j = 3; } if (str8.isEmpty() && h(str9).matches("^(.+[:]//[^/]+/)(iptv/[^/]+/\\d+/index[.].+)$")) { str8 = "http://epg.it999.ru/epg.xml.gz"; } if (!aVar.f45173a.isEmpty() && !aVar.f45175c.isEmpty()) { arrayList.add(aVar); } pair = new Pair(aVar.f45180h, Integer.valueOf(aVar.f45179g)); if (!aVar.f45180h.isEmpty() && !arrayList2.contains(pair)) { arrayList2.add(pair); } if (!z12 && aVar.f45183k > 0) { z12 = true; } if (!z13 && aVar.f45182j > 0) { z13 = true; } r13 = r13; } aVar.f45182j = 4; if (str8.isEmpty()) { str8 = "http://epg.it999.ru/epg.xml.gz"; } if (!aVar.f45173a.isEmpty()) { arrayList.add(aVar); } pair = new Pair(aVar.f45180h, Integer.valueOf(aVar.f45179g)); if (!aVar.f45180h.isEmpty()) { arrayList2.add(pair); } if (!z12) { z12 = true; } if (!z13) { z13 = true; } r13 = r13; } aVar.f45182j = 2; if (str8.isEmpty()) { } if (!aVar.f45173a.isEmpty()) { } pair = new Pair(aVar.f45180h, Integer.valueOf(aVar.f45179g)); if (!aVar.f45180h.isEmpty()) { } if (!z12) { } if (!z13) { } r13 = r13; } aVar.f45182j = 1; if (str8.isEmpty()) { } if (!aVar.f45173a.isEmpty()) { } pair = new Pair(aVar.f45180h, Integer.valueOf(aVar.f45179g)); if (!aVar.f45180h.isEmpty()) { } if (!z12) { } if (!z13) { } r13 = r13; } } catch (StringIndexOutOfBoundsException e22) { e = e22; str = str7; map = map2; c10 = r13; e.printStackTrace(); map2 = map; str7 = str; r13 = c10; i29 = i13; i26 = i14 + 1; map3 = map2; length = i31; strArr2 = strArr; catchupDaysManualMax = i15; cVar2 = cVar; r13 = r13; } } } } i19 = Integer.parseInt(c13); if (i19 > 0) { } } intValue = 0; if (intValue < 1) { } if (intValue >= 1) { } b10 = b(str9); if (b10.isEmpty()) { } if (!l(str9)) { if (!k(str9)) { if (!j(str9)) { if (!i(str9)) { } aVar.f45182j = 3; if (str8.isEmpty()) { } if (!aVar.f45173a.isEmpty()) { } pair = new Pair(aVar.f45180h, Integer.valueOf(aVar.f45179g)); if (!aVar.f45180h.isEmpty()) { } if (!z12) { } if (!z13) { } r13 = r13; } aVar.f45182j = 4; if (str8.isEmpty()) { } if (!aVar.f45173a.isEmpty()) { } pair = new Pair(aVar.f45180h, Integer.valueOf(aVar.f45179g)); if (!aVar.f45180h.isEmpty()) { } if (!z12) { } if (!z13) { } r13 = r13; } aVar.f45182j = 2; if (str8.isEmpty()) { } if (!aVar.f45173a.isEmpty()) { } pair = new Pair(aVar.f45180h, Integer.valueOf(aVar.f45179g)); if (!aVar.f45180h.isEmpty()) { } if (!z12) { } if (!z13) { } r13 = r13; } aVar.f45182j = 1; if (str8.isEmpty()) { } if (!aVar.f45173a.isEmpty()) { } pair = new Pair(aVar.f45180h, Integer.valueOf(aVar.f45179g)); if (!aVar.f45180h.isEmpty()) { } if (!z12) { } if (!z13) { } r13 = r13; } if (map2.isEmpty()) { } intValue = 0; if (intValue < 1) { } if (intValue >= 1) { } b10 = b(str9); if (b10.isEmpty()) { } if (!l(str9)) { } aVar.f45182j = 1; if (str8.isEmpty()) { } if (!aVar.f45173a.isEmpty()) { } pair = new Pair(aVar.f45180h, Integer.valueOf(aVar.f45179g)); if (!aVar.f45180h.isEmpty()) { } if (!z12) { } if (!z13) { } r13 = r13; } catch (StringIndexOutOfBoundsException e23) { e = e23; } aVar.f45179g = 0; if (str9.contains("tvg-shift=\"")) { } if (i16 >= 0) { } i18 = 0; aVar.f45181i = i18; if (z14) { } } catch (StringIndexOutOfBoundsException e24) { e = e24; map2 = map3; str = str7; map = map2; c10 = r13; e.printStackTrace(); map2 = map; str7 = str; r13 = c10; i29 = i13; i26 = i14 + 1; map3 = map2; length = i31; strArr2 = strArr; catchupDaysManualMax = i15; cVar2 = cVar; r13 = r13; } str2 = str6; aVar.b(str2); String m102 = m(str9); Objects.requireNonNull(m102, "userAgent is marked non-null but is null"); aVar.f45177e = m102; String d102 = d(str9); Objects.requireNonNull(d102, "httpReferer is marked non-null but is null"); aVar.f45178f = d102; } catch (StringIndexOutOfBoundsException e25) { e = e25; cVar = cVar2; i14 = i26; i15 = catchupDaysManualMax; } } } catch (StringIndexOutOfBoundsException e26) { e = e26; cVar = cVar2; i13 = i12; i14 = i26; i15 = catchupDaysManualMax; c12 = r13; } i29 = i13; } i26 = i14 + 1; map3 = map2; length = i31; strArr2 = strArr; catchupDaysManualMax = i15; cVar2 = cVar; r13 = r13; } str3 = str6; it = it2; catchupType = i25; String str10 = str7; i23 = i29; i22 = i28; i24 = i30; z10 = r13 == true ? 1 : 0; z11 = z14; str4 = str8; str5 = str10; } int i33 = catchupType; int i34 = catchupDaysManualMax; cVar2.f30790b = arrayList; cVar2.f30791c = arrayList2; cVar2.f30792d = str4; if (i34 != 0 || i33 != 0) { for (a aVar2 : arrayList) { if (i34 != 0) { if (!z12) { i10 = i34; aVar2.f45183k = i10; } else if (aVar2.f45183k > 0) { i10 = i34; aVar2.f45183k = i10; } if (i33 != 0) { if (!z13) { i11 = i33; aVar2.f45182j = i11; } else if (aVar2.f45182j > 0) { i11 = i33; aVar2.f45182j = i11; } i34 = i10; i33 = i11; } i11 = i33; i34 = i10; i33 = i11; } i10 = i34; if (i33 != 0) { } i11 = i33; i34 = i10; i33 = i11; } } PlaylistDatabase.s(context).u().o(playlist.getSource(), i22); return cVar2; } }