SHARE
TWEET

Untitled

svenhoefer Oct 12th, 2017 54 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. diff --git a/data/y-web/Y_Tools_Screenshot.yhtm b/data/y-web/Y_Tools_Screenshot.yhtm
  2. index 6895517..fcaed4e 100644
  3. --- a/data/y-web/Y_Tools_Screenshot.yhtm
  4. +++ b/data/y-web/Y_Tools_Screenshot.yhtm
  5. @@ -1,4 +1,5 @@
  6.  {=var-set:fbshot={=find-exec:fbshot=}=}
  7. +{=var-set:grab={=find-exec:grab=}=}
  8.  
  9.  {=include-block:Y_NI_Blocks.txt;head=}
  10.  <script type="text/javascript" src="/Y_Baselib.js"></script>
  11. @@ -43,7 +44,9 @@ function do_snapshot() {
  12.                 filename = id("filename").value;
  13.         }
  14.  
  15. -       if ("{=var-get:fbshot=}" != "" && enableVideo == 0)
  16. +       if ("{=var-get:grab=}" != "" && enableVideo == 0)
  17. +               dbox_exec_tools("grab -p -o /tmp/"+filename+".png");
  18. +       else if ("{=var-get:fbshot=}" != "" && enableVideo == 0)
  19.                 dbox_exec_tools("fbshot fb /tmp/"+filename+".png");
  20.         else
  21.                 loadSyncURL("/control/screenshot?name="+filename+"&osd="+enableOSD+"&video="+enableVideo);
RAW Paste Data
Top