影视助手,配置订阅整合、解析、代理,豆瓣主页
v1.0.0 -> v1.1.1 升级说明v1.0.0项目结构不够规范,v1.1.1进行了规范化v1.0.0版本,请将项目根目录下的config、live、source_config目录移至configs目录下configs/config.yaml可修改TVHelper启动端口、启用Redis进行缓存等logs目录下,请确保TVHelper对该目录具有写权限configs/config/sample.json)http://你的IP:16214/config/sampleJarhttp://你的IP:16214/config/src/demo/config.jsonhttp://你的IP:16214/config/src/demo/custom_spider.jar;md5;a84fef826cb82da525469e8acf1e7d9ahttp://你的IP:16214/live/IPTV.m3uhttp://你的IP:16214/home?douban=你的豆瓣idcurl -fsSL "https://gh-proxy.com/https://raw.githubusercontent.com/sec-an/TVHelper/main/v1.sh" | bash -s installcurl -fsSL "https://gh-proxy.com/https://raw.githubusercontent.com/sec-an/TVHelper/main/v1.sh" | bash -s updatecurl -fsSL "https://gh-proxy.com/https://raw.githubusercontent.com/sec-an/TVHelper/main/v1.sh" | bash -s uninstall默认安装在/opt/TVHelper中,自定义安装路径,将安装路径作为第二个参数添加,必须是绝对路径(如果路径以TVHelper结尾,则直接安装到给定路径,否则会安装在给定路径TVHelper目录下),如安装到/root:
# Install
curl -fsSL "https://gh-proxy.com/https://raw.githubusercontent.com/sec-an/TVHelper/main/v1.sh" | bash -s install /root
# update
curl -fsSL "https://gh-proxy.com/https://raw.githubusercontent.com/sec-an/TVHelper/main/v1.sh" | bash -s update /root
# Uninstall
curl -fsSL "https://gh-proxy.com/https://raw.githubusercontent.com/sec-an/TVHelper/main/v1.sh" | bash -s uninstall /rootsystemctl start TVHelpersystemctl stop TVHelpersystemctl status TVHelpersystemctl restart TVHelper打开TVHelper Release下载待部署系统对应的文件。
# 解压下载的文件,得到可执行文件:
tar -zxvf TVHelper_*.tar.gz
# 授予程序执行权限:
chmod +x TVHelper
# 运行程序
./TVHelper使用任意方式编辑/usr/lib/systemd/system/TVHelper.service并添加如下内容,其中path_TVHelper为TVHelper所在的路径
[Unit]
Description=TVHelper service
Wants=network.target
After=network.target network.service
[Service]
Type=simple
WorkingDirectory=path_TVHelper
ExecStart=path_TVHelper/TVHelper
KillMode=process
Restart=always
[Install]
WantedBy=multi-user.target然后,执行systemctl daemon-reload重载配置,现在你可以使用这些命令来管理程序:
systemctl start TVHelpersystemctl stop TVHelpersystemctl enable TVHelpersystemctl disable TVHelpersystemctl status TVHelpersystemctl restart TVHelper使用任意方式编辑/etc/init.d/TVHelper并添加如下内容,其中PROG为TVHelper所在的路径
#!/bin/sh /etc/rc.common
START=99
STOP=98
USE_PROCD=1
DAEMON=TVHelper
PROG=/opt/TVHelper
start_service() {
procd_open_instance TVHelper
procd_set_param command $PROG/$DAEMON -d $PROG
procd_set_param respawn
procd_close_instance
echo "service TVHelper start"
}
stop_service() {
killall $DAEMON
echo "service TVHelper stop"
}然后,你可以使用这些命令来管理程序:
/etc/init.d/TVHelper start/etc/init.d/TVHelper stop/etc/init.d/TVHelper enable/etc/init.d/TVHelper disable/etc/init.d/TVHelper status在TVHelper Release下载新版TVHelper,替换之前的版本即可。
…暂无开放 Issues,或尚未同步最近议题。