Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
fish2018 authored Sep 7, 2024
1 parent 4585fbb commit 88be8ec
Showing 1 changed file with 9 additions and 6 deletions.
15 changes: 9 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
## 当前仓库配置地址([fish2018/tvbox](https://github.com/fish2018/tvbox))
```bash
https://mirror.ghproxy.com/https://raw.githubusercontent.com/fish2018/tvbox/master/all.json

https://mirror.ghproxy.com/https://raw.githubusercontent.com/fish2018/tvbox/master/tvbox.json
https://gcore.jsdelivr.net/gh/fish2018/tvbox/all.json
https://cdn.jsdmirror.com/gh/fish2018/tvbox/all.json
https://jsd.onmicrosoft.cn/gh/fish2018/tvbox/all.json
```

## [tvbox_tools](https://hub.docker.com/r/2011820123/tvbox)
Expand All @@ -29,13 +30,14 @@ docker run时使用-e选项通过环境变量传参
- num 多仓时可以指定下载前num个仓库源
- timeout http请求超时,默认3s
- signame url是单个线路时可以指定线路名(jar同名),不指定随机生成
- jar_suffix 指定spider字段jar包保存后缀名,默认`jar`,一些CDN不能禁止'jar'后缀,可以修改为txt、json、js、css、html
- mirror 指定镜像cdn加速,默认mirror=6
- mirror=1 https://cdn.jsdmirror.com/ 静态文件CDN,只能用于加速txt、json,缓存后速度最快,但是同文件名缓存不会立即更新
- mirror=2 https://jsd.onmicrosoft.cn/ 静态文件CDN,只能用于加速txt、json,缓存后速度快,但是同文件名缓存不会立即更新
- mirror=3 https://gcore.jsdelivr.net/ 静态文件CDN,只能用于加速txt、json,缓存后速度快,缓存立即更新
- mirror=1 https://cdn.jsdmirror.com/ 静态文件CDN,禁止缓存jar后缀(建议txt、json、js、css、html),缓存后速度最快,但是同文件名缓存不会立即更新
- mirror=2 https://jsd.onmicrosoft.cn/ 静态文件CDN,禁止缓存jar后缀(建议txt、json、js、css、html),缓存后速度快,但是同文件名缓存不会立即更新
- mirror=3 https://gcore.jsdelivr.net/ 静态文件CDN,禁止缓存jar后缀(建议txt、json、js、css、html),缓存后速度快,缓存立即更新
- mirror=4 https://mirror.ghproxy.com/ 加速clone、push、静态文件CDN,缓存速度一般,缓存立即更新
- mirror=5 https://raw.yzuu.cf/ 加速clone、push速度非常快;静态文件CDN,缓存速度一般,缓存立即更新
- mirror=6 https://githubfast.com/ 加速clone、push速度最快
- mirror=6 https://githubfast.com/ 仅用于加速clone、push速度最快,push文件过大会限制

#### Docker执行示例:
首先在github.com上创建自己的代码仓库,推荐命名'tvbox',其他仓库名需要指定参数repo
Expand All @@ -56,6 +58,7 @@ docker run --rm -e token=ghp_RSEEieuktNTSxxxxxxxxvSrQJsrBmJ0dAIZw -e username=fi
```

## 更新说明
- V2.2版本 支持通过jar_suffix参数修改jar包后缀
- V2.1版本 支持多种镜像加速,通过mirror={num}指定;当mirror<4时自动设置/etc/hosts加速github.com,解决运行docker的本地网络不能访问github
- V2.0版本 修复指定target生成指定`{target}`.json;支持多url下载,英文逗号分隔多个url,`?&signame={name}`指定单线路名,不指定会生成随机名。例子:url = 'http://肥猫.com?&signame=肥猫,http://www.饭太硬.com/tv/?&signame=饭太硬'
- V1.9版本 移除多线程下载接口;已下载接口不重复下载;支持js动态渲染数据的接口;增加根据文件大小去重线路;单线路下载不指定signame(单线路名)时会生成一个"{随机字符串}.txt";兼容主分支main/master
Expand Down

0 comments on commit 88be8ec

Please sign in to comment.