luci-app-jellyfin: make media path optional (#9)

This commit is contained in:
练亮斌 2021-12-03 11:05:32 +08:00 committed by GitHub
parent ff470c8815
commit 69b85f1d5c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
5 changed files with 6 additions and 6 deletions

View File

@ -3,7 +3,7 @@
include $(TOPDIR)/rules.mk
PKG_VERSION:=1.1.0
PKG_RELEASE:=20211130
PKG_RELEASE:=20211203
LUCI_TITLE:=LuCI support for jellyfin
LUCI_PKGARCH:=all

View File

@ -36,7 +36,7 @@ function container_status()
container_install = container_install,
container_running = container_running,
container_port = (port or 8096),
media_path = uci:get_first(keyword, keyword, "media_path", "/mnt/sda1/media"),
media_path = uci:get_first(keyword, keyword, "media_path", ""),
config_path = uci:get_first(keyword, keyword, "config_path", "/root/jellyfin/config"),
cache_path = uci:get_first(keyword, keyword, "cache_path", ""),
}

View File

@ -22,7 +22,7 @@
let config = document.getElementById('config')
if(!config){
var configs = [
{id: "media", label: "<%:Media path%><sup>*</sup>:", value: st.media_path},
{id: "media", label: "<%:Media path (optional)%>:", value: st.media_path},
{id: "config", label: "<%:Config path%><sup>*</sup>:", value: st.config_path},
{id: "cache", label: "<%:Transcode cache path (optional)%>:", value: st.cache_path},
{id: "port", label: "<%:Port (optional)%>:", value: st.container_port},

View File

@ -25,8 +25,8 @@ msgstr "安装Jellyfin"
msgid "Collecting data..."
msgstr "收集数据..."
msgid "Media path"
msgstr "媒体文件路径"
msgid "Media path (optional)"
msgstr "媒体文件路径(选填)"
msgid "Config path"
msgstr "配置数据路径"

View File

@ -1,6 +1,6 @@
config jellyfin
option 'port' '8096'
option 'image' 'default'
option 'media_path' '/mnt/sda1/media'
option 'media_path' ''
option 'config_path' '/root/jellyfin/config'
option 'cache_path' ''