Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- diff --git a/data/y-web/Y_Tools_Screenshot.yhtm b/data/y-web/Y_Tools_Screenshot.yhtm
- index 6895517..fcaed4e 100644
- --- a/data/y-web/Y_Tools_Screenshot.yhtm
- +++ b/data/y-web/Y_Tools_Screenshot.yhtm
- @@ -1,4 +1,5 @@
- {=var-set:fbshot={=find-exec:fbshot=}=}
- +{=var-set:grab={=find-exec:grab=}=}
- {=include-block:Y_NI_Blocks.txt;head=}
- <script type="text/javascript" src="/Y_Baselib.js"></script>
- @@ -43,7 +44,9 @@ function do_snapshot() {
- filename = id("filename").value;
- }
- - if ("{=var-get:fbshot=}" != "" && enableVideo == 0)
- + if ("{=var-get:grab=}" != "" && enableVideo == 0)
- + dbox_exec_tools("grab -p -o /tmp/"+filename+".png");
- + else if ("{=var-get:fbshot=}" != "" && enableVideo == 0)
- dbox_exec_tools("fbshot fb /tmp/"+filename+".png");
- else
- loadSyncURL("/control/screenshot?name="+filename+"&osd="+enableOSD+"&video="+enableVideo);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement