emby ok
This commit is contained in:
parent
04214e0e39
commit
49cd07c0d1
@ -25,7 +25,7 @@ o.rmempty = false
|
|||||||
o = s:option(Value, "http_port", translate("HTTP Port").."<b>*</b>")
|
o = s:option(Value, "http_port", translate("HTTP Port").."<b>*</b>")
|
||||||
o.rmempty = false
|
o.rmempty = false
|
||||||
o.default = "8096"
|
o.default = "8096"
|
||||||
o.datatype = "http_port"
|
o.datatype = "string"
|
||||||
o:depends("hostnet", 0)
|
o:depends("hostnet", 0)
|
||||||
|
|
||||||
o = s:option(Value, "image_name", translate("Image").."<b>*</b>")
|
o = s:option(Value, "image_name", translate("Image").."<b>*</b>")
|
||||||
|
@ -18,14 +18,14 @@ local container_running = container_status == "running"
|
|||||||
if container_running then
|
if container_running then
|
||||||
local port=util.trim(util.exec("/usr/libexec/istorec/emby.sh port"))
|
local port=util.trim(util.exec("/usr/libexec/istorec/emby.sh port"))
|
||||||
if port == "" then
|
if port == "" then
|
||||||
port="32400"
|
port="8096"
|
||||||
end
|
end
|
||||||
-%>
|
-%>
|
||||||
<div class="cbi-value cbi-value-last">
|
<div class="cbi-value cbi-value-last">
|
||||||
<label class="cbi-value-title"> </label>
|
<label class="cbi-value-title"> </label>
|
||||||
<div class="cbi-value-field">
|
<div class="cbi-value-field">
|
||||||
|
|
||||||
<input type="button" class="btn cbi-button cbi-button-apply" name="start" value="<%:Open Emby%>" onclick="window.open('http://'+location.hostname+':<%=port%>/web/', '_blank')">
|
<input type="button" class="btn cbi-button cbi-button-apply" name="start" value="<%:Open Emby%>" onclick="window.open('http://'+location.hostname+':<%=port%>', '_blank')">
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<% end %>
|
<% end %>
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
config main
|
config main
|
||||||
option 'hostnet' '0'
|
option 'hostnet' '0'
|
||||||
option 'http_port' '8096'
|
option 'http_port' '8096'
|
||||||
option 'image_name' 'emby/embyserver:latest'
|
option 'image_name' 'emby/embyserver'
|
||||||
option 'config_path' ''
|
option 'config_path' ''
|
||||||
|
|
||||||
|
@ -12,7 +12,7 @@ do_install() {
|
|||||||
local media=`uci get emby.@main[0].media_path 2>/dev/null`
|
local media=`uci get emby.@main[0].media_path 2>/dev/null`
|
||||||
local cache=`uci get emby.@main[0].cache_path 2>/dev/null`
|
local cache=`uci get emby.@main[0].cache_path 2>/dev/null`
|
||||||
|
|
||||||
[ -z "$image_name" ] && image_name="embyinc/pms-docker:latest"
|
[ -z "$image_name" ] && image_name="emby/embyserver"
|
||||||
echo "docker pull ${image_name}"
|
echo "docker pull ${image_name}"
|
||||||
docker pull ${image_name}
|
docker pull ${image_name}
|
||||||
docker rm -f emby
|
docker rm -f emby
|
||||||
@ -83,7 +83,7 @@ case ${ACTION} in
|
|||||||
docker ps --all -f 'name=emby' --format '{{.State}}'
|
docker ps --all -f 'name=emby' --format '{{.State}}'
|
||||||
;;
|
;;
|
||||||
"port")
|
"port")
|
||||||
docker ps --all -f 'name=jellyfin' --format '{{.Ports}}' | grep -om1 '0.0.0.0:[0-9]*' | sed 's/0.0.0.0://'
|
docker ps --all -f 'name=emby' --format '{{.Ports}}' | grep -om1 '0.0.0.0:[0-9]*' | sed 's/0.0.0.0://'
|
||||||
;;
|
;;
|
||||||
*)
|
*)
|
||||||
usage
|
usage
|
||||||
|
Loading…
x
Reference in New Issue
Block a user