Skip to content

Commit

Permalink
更新文档 (#462)
Browse files Browse the repository at this point in the history
  • Loading branch information
power721 authored Oct 1, 2024
1 parent e9ddf31 commit 7941c96
Show file tree
Hide file tree
Showing 3 changed files with 40 additions and 4 deletions.
38 changes: 35 additions & 3 deletions doc/README_zh.md
Original file line number Diff line number Diff line change
Expand Up @@ -265,9 +265,7 @@ tvbox/my.json和juhe.json不能在TvBox直接使用,请使用订阅地址!

如果本地版本与远程版本不同,点击同步文件按钮。

等待PG包下载完成,重新进入订阅页面查看版本是否更新。

自定义PG包,下载最新的PG包放在/etc/xiaoya/目录,点击同步文件按钮。
自定义PG包,下载最新的PG包放在/etc/xiaoya/pg.zip,点击同步文件按钮。

自定义PG配置,在文件页面新建文件/data/tokenm.json。
填写自定义内容,比如:
Expand All @@ -278,6 +276,40 @@ tvbox/my.json和juhe.json不能在TvBox直接使用,请使用订阅地址!
}
```

#### 真心订阅
在订阅页面,查看当前真心包版本和远程版本。

如果本地版本与远程版本不同,点击同步文件按钮。

自定义真心包,下载最新的真心包放在/etc/xiaoya/zx.zip,点击同步文件按钮。

默认的TG搜索url是"http://IP:9999"

自定义真心配置,在文件页面新建文件/data/zx.json。
填写自定义内容,比如:
```json
{
"siteUrl": "http://192.168.0.2:9999",
"proxy" : "http://192.168.0.2:1072"
}
```

订阅定制:
```json
{
"sites": [
{
"key": "TgYunPan|服务器",
"ext": {
"siteUrl": "http://192.168.0.2:9999",
"channelUsername": "kuakeyun,Quark_Movies,Quark_Share_Channel",
"commonConfig": "ATV_ADDRESS/zx/config?token=TOKEN"
}
}
]
}
```

#### 自定义多仓订阅
在文件页面新建文件,目录:/www/tvbox/repo,名称:订阅id.json,比如:1.json。
内容留空(返回全部订阅)或者自定义内容:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -648,6 +648,7 @@ private Map<String, Object> overrideConfig(Map<String, Object> config, String js
String address = readHostAddress();
json = json.replace("DOCKER_ADDRESS", address);
json = json.replace("ATV_ADDRESS", address);
json = json.replace("TOKEN", tokens.split(",")[0]);
Map<String, Object> override = objectMapper.readValue(json, Map.class);
overrideConfig(config, "", "", override);
return replaceString(config, override);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,10 @@ private VideoInfo parseVideoAndroid(String videoId, YoutubeCallback<VideoInfo> c
" \"hl\": \"en\"," +
" \"gl\": \"US\"," +
" \"clientName\": \"ANDROID_CREATOR\"," +
" \"clientVersion\": \"22.36.102\"," +
" \"clientVersion\": \"24.30.100\"," +
" \"userAgent\": \"com.google.android.apps.youtube.creator/24.30.100 (Linux; U; Android 11) gzip\"," +
" \"osName\": \"Android\"," +
" \"osVersion\": \"11\"," +
" \"androidSdkVersion\": 30 " +
" }" +
" }" +
Expand Down

0 comments on commit 7941c96

Please sign in to comment.