Explorar o código

Add files via upload

MoeClub %!s(int64=5) %!d(string=hai) anos
pai
achega
55cd6eb632
Modificáronse 1 ficheiros con 11 adicións e 0 borrados
  1. 11 0
      ffmpeg/publish.sh

+ 11 - 0
ffmpeg/publish.sh

@@ -0,0 +1,11 @@
+#!/bin/bash
+
+File="${1:-}"
+Token="MoeClub"
+URL="http://127.0.0.1:5866/Player"
+
+[ -n "$File" ] && [ -f "$File" ] || exit 1
+RESP=`curl -sSL -F "file=@${File}" -X POST "${URL}/${Token}"`
+echo "${File} --> ${RESP}"
+
+