Update README.md

Signed-off-by: FongMi <b8892778@gmail.com>
pull/211/head
FongMi 2 years ago committed by GitHub
parent 8aec75e61b
commit ef253b04c9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 77
      README.md

@ -21,6 +21,7 @@ https://github.com/CatVodTVOfficial/CatVodTVJarLoader
| 欄位名稱 | 預設值 | 說明 | 其他 |
|------------|-------|-------|------------------|
| ua | none | 用戶代理 | |
| origin | none | 來源 | |
| referer | none | 參照地址 | |
| epg | none | 節目地址 | |
| logo | none | 台標地址 | |
@ -31,6 +32,82 @@ https://github.com/CatVodTVOfficial/CatVodTVJarLoader
| header | none | 請求標頭 | 格式:json |
| click | none | 點擊js | javascript |
### 樣式
| 欄位名稱 | 值 | 說明 |
|-------|------|-----|
| type | rect | 矩形 |
| | oval | 橢圓 |
| | list | 列表 |
| ratio | 0.75 | 3:4 |
| | 1.33 | 4:3 |
直式
```json
"style":{ "type":"rect" }
```
橫式
```json
"style":{ "type":"rect", "ratio":1.33 }
```
正方
```json
"style":{ "type":"rect", "ratio":1 }
```
正圓
```json
"style":{ "type":"oval" }
```
橢圓
```json
"style":{ "type":"oval", "ratio":1.1 }
```
### API
刷新詳情
```
http://127.0.0.1:9978/action?do=refresh&type=detail
```
刷新播放
```
http://127.0.0.1:9978/action?do=refresh&type=player
```
推送字幕
```
http://127.0.0.1:9978/action?do=refresh&type=subtitle&path=http://xxx
```
推送彈幕
```
http://127.0.0.1:9978/action?do=refresh&type=danmaku&path=http://xxx
```
新增緩存字串
```
http://127.0.0.1:9978/cache?do=set&key=xxx&value=xxx
```
取得緩存字串
```
http://127.0.0.1:9978/cache?do=get&key=xxx
```
刪除緩存字串
```
http://127.0.0.1:9978/cache?do=del&key=xxx
```
### Proxy
scheme 支持 http, https, socks4, socks5
```
scheme://username:password@host:port
```
配置 rules 新增 proxy 判斷 host 是否走代理
```json
{
"name":"proxy",
"hosts":[
"api.nivodz.com"
]
}
```
### 配置範例
[點播-線上](other/sample/vod/online.json)

Loading…
Cancel
Save