diff --git a/app/src/main/java/me/iacn/biliroaming/hook/BangumiSeasonHook.kt b/app/src/main/java/me/iacn/biliroaming/hook/BangumiSeasonHook.kt index 687a6ef481..ce3223fc2c 100644 --- a/app/src/main/java/me/iacn/biliroaming/hook/BangumiSeasonHook.kt +++ b/app/src/main/java/me/iacn/biliroaming/hook/BangumiSeasonHook.kt @@ -96,7 +96,7 @@ class BangumiSeasonHook(classLoader: ClassLoader?) : BaseHook(classLoader!!) { val newEpisodes = XposedHelpers.getObjectField(newResult, "episodes") var newModules:Any? = null XposedHelpers.findFieldIfExists(newResult.javaClass, "modules")?.let { - newModules = XposedHelpers.getObjectField(it.name, "modules") + newModules = XposedHelpers.getObjectField(newResult, "modules") } XposedHelpers.setObjectField(result, "rights", newRights) XposedHelpers.setObjectField(result, "episodes", newEpisodes)