From f70bac133287d44d6a454887759e7cd1554a2415 Mon Sep 17 00:00:00 2001 From: pepa65 Date: Tue, 30 Aug 2022 11:21:07 +0700 Subject: [PATCH] datetime validation fix stream details --- encode | 2 +- stream | 10 ++++++---- uploadpage/index.php | 2 +- uploadpage/upload.php | 10 +++++++--- 4 files changed, 15 insertions(+), 9 deletions(-) diff --git a/encode b/encode index 4223634..e124e3a 100755 --- a/encode +++ b/encode @@ -43,7 +43,7 @@ m=${date:13:2} m=${m#0} h=${date:11:2} h=${h#0} D=${date:8:2} D=${D#0} M=${date:5:2} M=${M#0} /usr/bin/crontab -l || echo -e "# m h dom mon dow command\n" |/usr/bin/crontab - -line="$m $h $D $M "'*'" $repopath/stream '${video##*/}'" +line="$m $h $D $M "'*'" $repopath/stream '$name'" echo -e "$(/usr/bin/crontab -l)\n$line" |/usr/bin/crontab - Log "crontab: '$line'" 0 diff --git a/stream b/stream index 9b02ca4..921d301 100755 --- a/stream +++ b/stream @@ -1,13 +1,15 @@ #!/usr/bin/env bash # stream - Stream video when called from crontab -# Usage: stream