Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: 🐛 emby 无法观看夸克内容 #221

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -185,6 +185,7 @@ env:
QUARK_COOKIE:
PAN115_COOKIE:
PIKPAK_USER:
DOCKER_ADDRESS:
...
```

Expand Down
4 changes: 3 additions & 1 deletion alist/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -56,4 +56,6 @@ docker run -d -p 5678:80 -p 2345:2345 -p 2346:2346 --restart=unless-stopped --na

`AUTO_CLEAR_INTERVAL`: 自动清理间隔,单位分钟,范围0-60分钟,默认10分钟

`AUTO_CLEAR_THRESHOLD`: 阿里云盘自动清理文件存在时间阈值,单位分钟,范围0-60分钟,默认10分钟
`AUTO_CLEAR_THRESHOLD`: 阿里云盘自动清理文件存在时间阈值,单位分钟,范围0-60分钟,默认10分钟

`DOCKER_ADDRESS`: alist 地址,这里需要填写 emby 客户端能正常访问到的地址,如果不使用 emby 观看夸克内容可以不修改,格式:`http://192.168.1.1:5678`
11 changes: 8 additions & 3 deletions alist/start.sh
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,14 @@ if [ ! -d "/data" ]; then
mkdir /data
fi

# 设置端口
local_ip=$(ip a | grep inet | grep -v '127.0.0.1|inet6' | awk '{print $2}' | cut -d/ -f1)
echo "http://$local_ip:5678" > /data/docker_address.txt
# 设置 AList 容器地址
if [ -n "${DOCKER_ADDRESS:-}" ]; then
echo "设置 AList 容器地址..."
echo "${DOCKER_ADDRESS}" > /data/docker_address.txt
else
local_ip=$(ip a | grep inet | grep -v '127.0.0.1|inet6' | awk '{print $2}' | cut -d/ -f1)
echo "http://$local_ip:5678" > /data/docker_address.txt
fi

# 生成配置,阿里云token
if [ ${#ALIYUN_TOKEN} -ne 32 ]; then
Expand Down
4 changes: 3 additions & 1 deletion env
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,8 @@ PIKPAK_USER=
TVBOX_SECURITY=
# webdav用户名为dav,设置密码。默认用户密码:guest/guest_Api789
WEBDAV_PASSWORD=
# alist 地址,这里需要填写 emby 客户端能正常访问到的地址,如果不使用 emby 观看夸克内容可以不修改,格式:`http://192.168.1.1:5678`
DOCKER_ADDRESS=

# emby 地址,容器内部使用地址,一般不用改
EMBY_ADDR=http://emby:6908
Expand All @@ -42,4 +44,4 @@ AUTO_UPDATE_EMBY_METADATA_ENABLED=true
# emby的apikey
EMBY_APIKEY=
# 下载解压完是否清除源文件,true/false,默认false
CLEAR_TEMP=
CLEAR_TEMP=
1 change: 1 addition & 0 deletions helmfile.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@ releases:
QUARK_COOKIE:
PAN115_COOKIE:
PIKPAK_USER:
DOCKER_ADDRESS:
volumes:
- name: data
mountPath: /data
Expand Down