Skip to content

Commit

Permalink
Merge pull request #192 from monlor/test
Browse files Browse the repository at this point in the history
docs: ✏️ 添加CLEAR_TEMP介绍
  • Loading branch information
monlor authored Jul 10, 2024
2 parents f3d1c51 + 500c4ba commit 289dc2c
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 6 deletions.
2 changes: 2 additions & 0 deletions metadata/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,8 @@

`DISK_CHECK_ENABLED`: 磁盘剩余空间检测开关,true/false,默认true

`CLEAR_TEMP`: 下载解压完是否清除源文件,true/false,默认false

## emby数据管理

> 进入容器执行
Expand Down
12 changes: 6 additions & 6 deletions metadata/entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,7 @@ download_emby_config() {

#删除临时文件config.mp4
if [ "${CLEAR_TEMP:=false}" = "true" ]; then
rm -f $MEDIA_DIR/temp/config.mp4
rm -f $MEDIA_DIR/temp/config.mp4
fi
}

Expand Down Expand Up @@ -148,8 +148,8 @@ download_emby_media() {

#删除临时文件all.mp4,pikpak.mo4
if [ "${CLEAR_TEMP:=false}" = "true" ]; then
rm -f $MEDIA_DIR/temp/all.mp4
rm -f $MEDIA_DIR/temp/pikpak.mp4
rm -f $MEDIA_DIR/temp/all.mp4
rm -f $MEDIA_DIR/temp/pikpak.mp4
fi
}

Expand All @@ -176,7 +176,7 @@ download_jellyfin_config() {

#删除临时文件 config_jf.mp4
if [ "${CLEAR_TEMP:=false}" = "true" ]; then
rm -f $MEDIA_DIR/temp/config_jf.mp4
rm -f $MEDIA_DIR/temp/config_jf.mp4
fi
}

Expand Down Expand Up @@ -212,8 +212,8 @@ download_jellyfin_media() {

#删除临时文件all_jf.mp4,pikpak_jf.mo4
if [ "${CLEAR_TEMP:=false}" = "true" ]; then
rm -f $MEDIA_DIR/temp/all_jf.mp4
rm -f $MEDIA_DIR/temp/pikpak_jf.mp4
rm -f $MEDIA_DIR/temp/all_jf.mp4
rm -f $MEDIA_DIR/temp/pikpak_jf.mp4
fi
}

Expand Down

0 comments on commit 289dc2c

Please sign in to comment.