Skip to content

Commit

Permalink
fix: remove relate video
Browse files Browse the repository at this point in the history
  • Loading branch information
TinyHai authored and yujincheng08 committed Jan 8, 2025
1 parent 9ed39c2 commit 3adab00
Showing 1 changed file with 18 additions and 5 deletions.
23 changes: 18 additions & 5 deletions app/src/main/java/me/iacn/biliroaming/hook/PegasusHook.kt
Original file line number Diff line number Diff line change
Expand Up @@ -536,14 +536,27 @@ class PegasusHook(classLoader: ClassLoader) : BaseHook(classLoader) {
}

fun MutableList<Any>.filterUnite() = removeAll {
val allowTypeList = mutableListOf(1, 2, 3, 4, 5, 6, 7, 8, 9, 10)

val allowTypeList = mutableListOf(
2, // AV(2),
3, // BANGUMI(3),
4, // RESOURCE(4),
5, // GAME(5),
6, // CM(6),
7, // LIVE(7),
8, // BANGUMI_AV(8),
9, // AI_CARD(9),
13, // BANGUMI_UGC(13),
14, // SPECIAL(14),
15 // COURSE(15),
)
var shouldFiltered = false
allowTypeList.removeAll { digit ->
(removeRelateOnlyAv && digit != 1) || (removeRelatePromote && digit in listOf(
3, // Resource, like mall
4, // GAME
5, // CM
10 // SPECIAL
4, // Resource, like mall
5, // GAME
6, // CM
14 // SPECIAL
))
}
// av filter
Expand Down

0 comments on commit 3adab00

Please sign in to comment.