From 1d13a8d294fa4ef0701c427f28609bb366d18019 Mon Sep 17 00:00:00 2001 From: LoveSy Date: Sun, 28 Jan 2024 23:31:03 +0800 Subject: [PATCH] Fix Thai subtitles Fix #1382 --- app/src/main/java/me/iacn/biliroaming/hook/BangumiSeasonHook.kt | 1 + app/src/main/java/me/iacn/biliroaming/network/BiliRoamingApi.kt | 1 + 2 files changed, 2 insertions(+) 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 755c3d30cb..b70de56877 100644 --- a/app/src/main/java/me/iacn/biliroaming/hook/BangumiSeasonHook.kt +++ b/app/src/main/java/me/iacn/biliroaming/hook/BangumiSeasonHook.kt @@ -1428,6 +1428,7 @@ class BangumiSeasonHook(classLoader: ClassLoader) : BaseHook(classLoader) { height = optLong("height") } } + duration = episode.optInt("duration") epId = episode.optLong("id") epIndex = episode.optInt("index") from = episode.optString("from") diff --git a/app/src/main/java/me/iacn/biliroaming/network/BiliRoamingApi.kt b/app/src/main/java/me/iacn/biliroaming/network/BiliRoamingApi.kt index 04f56782a5..63b2029e65 100644 --- a/app/src/main/java/me/iacn/biliroaming/network/BiliRoamingApi.kt +++ b/app/src/main/java/me/iacn/biliroaming/network/BiliRoamingApi.kt @@ -517,6 +517,7 @@ object BiliRoamingApi { if (!sPrefs.getBoolean("force_th_comment", false)) ep.optJSONObject("rights")?.put("area_limit", 1) } + ep.put("duration", 114514) episodes.put(ep) } data.put("id", sid)