Skip to content

Commit 27fbb95

Browse files
committed
临时更新
1 parent fcb509a commit 27fbb95

File tree

3 files changed

+12
-52
lines changed

3 files changed

+12
-52
lines changed

api/announce.json

Lines changed: 1 addition & 49 deletions
Original file line numberDiff line numberDiff line change
@@ -1,49 +1 @@
1-
{
2-
"backUp": [
3-
"https://www.seedmm.life",
4-
"https://www.busjav.icu",
5-
"https://www.javbus.com",
6-
"https://www.dmmsee.one",
7-
"https://www.buscdn.one",
8-
"https://www.busfan.cam",
9-
"https://www.busfan.co",
10-
"https://www.fanbus.life",
11-
"https://www.busjav.bar",
12-
"https://www.dmmsee.bar",
13-
"https://www.busfan.bar",
14-
"https://www.dmmbus.zone"
15-
],
16-
"xyz": "https://www.javbus.red",
17-
"xyzLoader": {
18-
"url": "https://www.javbus.red",
19-
"legacyHost": [
20-
"work",
21-
"zone",
22-
"one",
23-
"red",
24-
"xyz"
25-
]
26-
},
27-
"update": {
28-
"versionCode": 359,
29-
"versionName": "v1.3.2build614",
30-
"url": "https://gitee.com/jbusdriver/static/raw/master/apks/JubsDriver_v1.3.2build614.apk",
31-
"desc": "JubsDriver_v1.3.2build614 更新!\r\n1.修复详情图片加载失败的问题."
32-
},
33-
"notice": {
34-
"id": 17,
35-
"content": "提示:\r\n1. 磁力插件更新,添加超人磁力站。"
36-
},
37-
"plugins": {
38-
"internal": [
39-
{
40-
"name": "me.jbusdriver.plugin.magnet",
41-
"versionCode": 10,
42-
"versionName": "1.0.9",
43-
"url": "https://gitee.com/jbusdriver/static/raw/master/plugins/me.jbusdriver.plugin.magnet_1.0.9.apk",
44-
"desc": "[内部插件]磁力链接解析插件",
45-
"eTag": "E8E145C05BBDB4C21866BC15B5782A01"
46-
}
47-
]
48-
}
49-
}
1+
{"backUp":["https://www.busjav.fun","https://www.seejav.zone","https://www.javsee.cc","https://www.javsee.pw","https://www.javsee.cloud","https://www.seejav.cam","https://www.javsee.one","https://www.seejav.fun","https://www.javsee.xyz","https://www.javbus.com"],"xyz":"https://www.javbus.red","xyzLoader":{"url":"https://www.javbus.red","legacyHost":["work","zone","one","red","xyz"]},"update":{"versionCode":359,"versionName":"v1.3.2build614","url":"https://gitee.com/jbusdriver/static/raw/master/apks/JubsDriver_v1.3.2build614.apk","desc":"JubsDriver_v1.3.2build614 更新!\r\n1.修复详情图片加载失败的问题."},"notice":{"id":17,"content":"提示:\r\n1. 磁力插件更新,添加超人磁力站。"},"plugins":{"internal":[{"name":"me.jbusdriver.plugin.magnet","versionCode":10,"versionName":"1.0.9","url":"https://gitee.com/jbusdriver/static/raw/master/plugins/me.jbusdriver.plugin.magnet_1.0.9.apk","desc":"[内部插件]磁力链接解析插件","eTag":"E8E145C05BBDB4C21866BC15B5782A01"}]}}

app/src/main/java/me/jbusdriver/http/GitHub.kt

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,16 +4,25 @@ import io.reactivex.Flowable
44
import me.jbusdriver.BuildConfig
55
import me.jbusdriver.base.http.NetClient
66
import retrofit2.http.GET
7+
import retrofit2.http.Header
8+
import retrofit2.http.Headers
79
import retrofit2.http.Path
810

911

1012
/**
1113
* Created by Administrator on 2017/4/15 0015.
1214
*/
1315
interface GitHub {
14-
@GET("https://gitee.com/jbusdriver/static/raw/master/announce.json")
16+
@Headers("Referer:https://gitlab.com/")
17+
@GET("https://gitlab.com/Ccixyj/staticFile/-/raw/main/announce.json")
1518
fun announce(): Flowable<String>
1619

20+
21+
// @GET("https://cdn.jsdelivr.net/gh/Ccixyj/JBusDriver@master/api/announce.json")
22+
// @Headers("""sec-ch-ua-platform: "Windows"""" ,
23+
// "user-agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/98.0.4758.102 Safari/537.36" )
24+
// fun announce(): Flowable<String>
25+
1726
//
1827
// @GET("https://raw.githubusercontent.com/Ccixyj/JBusDriver/plugin/api/announce.json")
1928
// fun announceWithPlugin(): Flowable<String>

app/src/main/java/me/jbusdriver/ui/activity/SplashActivity.kt

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -154,8 +154,7 @@ class SplashActivity : BaseActivity() {
154154
}
155155

156156
CacheLoader.cacheLruAndDisk(
157-
C.Cache.BUS_URLS to urls,
158-
C.Cache.DAY * 2
157+
C.Cache.BUS_URLS to urls
159158
) //缓存所有的urls
160159
CacheLoader.lru.put(
161160
DataSourceType.CENSORED.key + "false",

0 commit comments

Comments
 (0)