Update 'luasrc/model/cbi/megamedia.lua'

main
ben 1 year ago
parent dc123c309e
commit c4c38c6812

@ -7,11 +7,11 @@ local megamedia_model = require "luci.model.megamedia"
local m, s, o local m, s, o
m = taskd.docker_map("megamedia", "megamedia", "/usr/libexec/apps/megamedia/megamedia.sh", m = taskd.docker_map("megamedia", "megamedia", "/usr/libexec/apps/megamedia/megamedia.sh",
translate("megamedia"), translate("MegaMedia"),
translate("MEGA MEDIA SERVER is a bundle of the most popular media manager apps qbittorrent, jellyfin, jackett, raadarr, sonarr, lidarr, and prowlarr. You're welcome.") translate("MEGA MEDIA SERVER is a bundle of the most popular media manager apps qbittorrent, jellyfin, jackett, raadarr, sonarr, lidarr, and prowlarr.")
.. translate("Official website:") .. ' <a href=\"https://docs.linuxserver.io/images/docker-lidarr/\" target=\"_blank\">https://docs.linuxserver.io/images/docker-lidarr/</a>') .. translate("Official website:") .. ' <a href=\"https://docs.linuxserver.io/images/docker-lidarr/\" target=\"_blank\">https://docs.linuxserver.io/images/docker-lidarr/</a>')
s = m:section(SimpleSection, translate("Service Status"), translate("megamedia status:")) s = m:section(SimpleSection, translate("Service Status"), translate("MegaMedia status:"))
s:append(Template("megamedia/status")) s:append(Template("megamedia/status"))
s = m:section(TypedSection, "megamedia", translate("Setup"), translate("Refresh to update settings.")) s = m:section(TypedSection, "megamedia", translate("Setup"), translate("Refresh to update settings."))
@ -35,8 +35,8 @@ local home = megamedia_model.home()
o = s:option(Value, "config_path", translate("Root Dir Path").."<b>*</b>") o = s:option(Value, "config_path", translate("Root Dir Path").."<b>*</b>")
o.rmempty = false o.rmempty = false
o.datatype = "string" o.datatype = "string"
o:value("/opt/docker2/compose", "/opt/docker2/compose") o:value("/opt/docker2/compose/downloads", "/opt/docker2/compose/downloads")
o.default = "/opt/docker2/compose" o.default = "/opt/docker2/compose/downloads"
local paths, default_path = megamedia_model.find_paths(blocks, home, "Configs") local paths, default_path = megamedia_model.find_paths(blocks, home, "Configs")
for _, val in pairs(paths) do for _, val in pairs(paths) do

Loading…
Cancel
Save