unlocked custom newsfeed
This commit is contained in:
@@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user