mirror of
https://github.com/tuxbox-fork-migrations/recycled-ni-neutrino.git
synced 2025-08-29 16:31:05 +02:00
yWeb: fix grab-handling
Signed-off-by: Thilo Graf <dbt@novatux.de>
Origin commit data
------------------
Commit: c670746226
Author: vanhofen <vanhofen@gmx.de>
Date: 2017-10-14 (Sat, 14 Oct 2017)
Origin message was:
------------------
- yWeb: fix grab-handling
Signed-off-by: Thilo Graf <dbt@novatux.de>
This commit is contained in:
@@ -44,8 +44,15 @@ function do_snapshot() {
|
||||
filename = id("filename").value;
|
||||
}
|
||||
|
||||
if ("{=var-get:grab=}" != "" && enableVideo == 0)
|
||||
dbox_exec_tools("fbshot grab -p -o /tmp/"+filename+".png");
|
||||
if ("{=var-get:grab=}" != "")
|
||||
{
|
||||
if (enableOSD == 1 && enableVideo == 1)
|
||||
dbox_exec_tools("fbshot grab -p /tmp/"+filename+".png");
|
||||
else if (enableOSD == 1)
|
||||
dbox_exec_tools("fbshot grab -p -o /tmp/"+filename+".png");
|
||||
else if (enableVideo == 1)
|
||||
dbox_exec_tools("fbshot grab -p -v /tmp/"+filename+".png");
|
||||
}
|
||||
else if ("{=var-get:fbshot=}" != "" && enableVideo == 0)
|
||||
dbox_exec_tools("fbshot fbshot /tmp/"+filename+".png");
|
||||
else
|
||||
|
Reference in New Issue
Block a user