luci-app-jellyfin: make media path optional (#9)
This commit is contained in:
parent
ff470c8815
commit
69b85f1d5c
applications/luci-app-jellyfin
@ -3,7 +3,7 @@
|
|||||||
include $(TOPDIR)/rules.mk
|
include $(TOPDIR)/rules.mk
|
||||||
|
|
||||||
PKG_VERSION:=1.1.0
|
PKG_VERSION:=1.1.0
|
||||||
PKG_RELEASE:=20211130
|
PKG_RELEASE:=20211203
|
||||||
|
|
||||||
LUCI_TITLE:=LuCI support for jellyfin
|
LUCI_TITLE:=LuCI support for jellyfin
|
||||||
LUCI_PKGARCH:=all
|
LUCI_PKGARCH:=all
|
||||||
|
@ -36,7 +36,7 @@ function container_status()
|
|||||||
container_install = container_install,
|
container_install = container_install,
|
||||||
container_running = container_running,
|
container_running = container_running,
|
||||||
container_port = (port or 8096),
|
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"),
|
config_path = uci:get_first(keyword, keyword, "config_path", "/root/jellyfin/config"),
|
||||||
cache_path = uci:get_first(keyword, keyword, "cache_path", ""),
|
cache_path = uci:get_first(keyword, keyword, "cache_path", ""),
|
||||||
}
|
}
|
||||||
|
@ -22,7 +22,7 @@
|
|||||||
let config = document.getElementById('config')
|
let config = document.getElementById('config')
|
||||||
if(!config){
|
if(!config){
|
||||||
var configs = [
|
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: "config", label: "<%:Config path%><sup>*</sup>:", value: st.config_path},
|
||||||
{id: "cache", label: "<%:Transcode cache path (optional)%>:", value: st.cache_path},
|
{id: "cache", label: "<%:Transcode cache path (optional)%>:", value: st.cache_path},
|
||||||
{id: "port", label: "<%:Port (optional)%>:", value: st.container_port},
|
{id: "port", label: "<%:Port (optional)%>:", value: st.container_port},
|
||||||
|
@ -25,8 +25,8 @@ msgstr "安装Jellyfin"
|
|||||||
msgid "Collecting data..."
|
msgid "Collecting data..."
|
||||||
msgstr "收集数据..."
|
msgstr "收集数据..."
|
||||||
|
|
||||||
msgid "Media path"
|
msgid "Media path (optional)"
|
||||||
msgstr "媒体文件路径"
|
msgstr "媒体文件路径(选填)"
|
||||||
|
|
||||||
msgid "Config path"
|
msgid "Config path"
|
||||||
msgstr "配置数据路径"
|
msgstr "配置数据路径"
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
config jellyfin
|
config jellyfin
|
||||||
option 'port' '8096'
|
option 'port' '8096'
|
||||||
option 'image' 'default'
|
option 'image' 'default'
|
||||||
option 'media_path' '/mnt/sda1/media'
|
option 'media_path' ''
|
||||||
option 'config_path' '/root/jellyfin/config'
|
option 'config_path' '/root/jellyfin/config'
|
||||||
option 'cache_path' ''
|
option 'cache_path' ''
|
||||||
|
Loading…
x
Reference in New Issue
Block a user