Commit a83cd21d authored by Dr. Michael Petter's avatar Dr. Michael Petter

added postprocessing trigger

parent 7f66652a
......@@ -40,6 +40,7 @@ import java.io.FileWriter;
import java.io.IOException;
import java.io.PrintWriter;
import java.io.UnsupportedEncodingException;
import java.net.URL;
import java.security.MessageDigest;
import java.util.Date;
import java.util.Formatter;
......@@ -1451,6 +1452,13 @@ public class PostProcessorPanel extends GradientPanel {
//mp4 podcast
session.publish(recording.getDirectory() + recording.getFileBase() + ".mp4", basePath, batch);
// Trigger server callback
TTT.debug("triggering http://"+host+"/php/posthook.php?vorlesung="+recording.getFileBase());
URL trigger = new URL("http://"+host+"/php/posthook.php?vorlesung="+recording.getFileBase());
trigger.openStream().read();
System.out.println("Published\n");
// remote call to update online searchbase
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment