unlocked custom newsfeed

This commit is contained in:
gdlbo
2022-07-21 22:08:26 +03:00
parent a06d129c8d
commit 4a2d2b23f2
2 changed files with 17 additions and 0 deletions
@@ -198,6 +198,19 @@ public class JsonInjectors{
} }
} }
public static JSONArray newsfeedlist(JSONArray items) throws JSONException{
for (int j = 0; j < items.length(); j++) {
var list = items.optJSONObject(j);
var name = list.optString("id");
if (!name.equals("kpop") && !name.equals("foryou") && !name.equals("qazaqstan")) {
list.put("is_hidden", false).put("is_unavailable", false);
}
}
return items;
}
public static JSONObject music(JSONObject json) throws JSONException{ public static JSONObject music(JSONObject json) throws JSONException{
var catalog = json.optJSONObject("catalog"); var catalog = json.optJSONObject("catalog");
@@ -1524,6 +1524,10 @@
move-result-object p2 move-result-object p2
invoke-static {p2}, Lru/vtosters/lite/hooks/JsonInjectors;->newsfeedlist(Lorg/json/JSONArray;)Lorg/json/JSONArray;
move-result-object p2
.line 20 .line 20
:goto_3 :goto_3
invoke-virtual {p2}, Lorg/json/JSONArray;->length()I invoke-virtual {p2}, Lorg/json/JSONArray;->length()I