From 1d71def41680ef5e03018e892a810b9aa3b8de74 Mon Sep 17 00:00:00 2001 From: gdlbo <41114720+gdlbo@users.noreply.github.com> Date: Sat, 30 Jul 2022 13:59:54 +0300 Subject: [PATCH] fixed adding music catalog bug --- app/src/main/java/ru/vtosters/lite/hooks/JsonInjectors.java | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/app/src/main/java/ru/vtosters/lite/hooks/JsonInjectors.java b/app/src/main/java/ru/vtosters/lite/hooks/JsonInjectors.java index d971d3001..32be6ce49 100644 --- a/app/src/main/java/ru/vtosters/lite/hooks/JsonInjectors.java +++ b/app/src/main/java/ru/vtosters/lite/hooks/JsonInjectors.java @@ -463,8 +463,7 @@ public class JsonInjectors { oldItems = catalog.optJSONArray("sections"); } - - if (oldItems != null) { + if (oldItems != null && oldItems.optJSONObject(0).optString("url").contains("general")) { if (podcastcatalog()) { var podcasts = fetchCatalogPodcast(); if (podcasts != null) {