Browse Source

Remove ror from paths

Blallo 2 years ago
parent
commit
51fd340cd2
3 changed files with 5 additions and 5 deletions
  1. 2 2
      docker/config.py
  2. 2 2
      docker/run.liq
  3. 1 1
      docker/run.sh

+ 2 - 2
docker/config.py

@@ -1,6 +1,6 @@
-AUDIO_INPUT = "http://storage/ror"
+AUDIO_INPUT = "http://storage"
 # decomment this if you want to test with local audio source
-# AUDIO_INPUT = "/rec/ror"
+# AUDIO_INPUT = "/rec"
 AUDIO_OUTPUT = "/src/output"
 DEBUG = True
 HOST = "0.0.0.0"

+ 2 - 2
docker/run.liq

@@ -19,8 +19,8 @@ output.file(
   id="rorrec",
   reopen_when={0m},
   %mp3(bitrate=80, samplerate=44100, stereo=true,stereo_mode="joint_stereo"),
-  "/rec/ror/%Y-%m/%d/rec-%Y-%m-%d-%H-%M-%S.mp3",
+  "/rec/%Y-%m/%d/rec-%Y-%m-%d-%H-%M-%S.mp3",
   # %vorbis(quality=0.3, samplerate=44100, channels=2),
-  # "/rec/ror/%Y-%m/%d/rec-%Y-%m-%d-%H-%M-%S.ogg",
+  # "/rec/%Y-%m/%d/rec-%Y-%m-%d-%H-%M-%S.ogg",
   rorinput
 );

+ 1 - 1
docker/run.sh

@@ -2,7 +2,7 @@
 
 set -xueo pipefail
 
-FILEPATH="/rec/ror/$(date +%Y-%m)/$(date +%d)/rec-$(date +%Y-%m-%d-%H)-00-00.mp3"
+FILEPATH="/rec/$(date +%Y-%m)/$(date +%d)/rec-$(date +%Y-%m-%d-%H)-00-00.mp3"
 mkdir -p $(dirname ${FILEPATH})
 if ! [[ -f ${FILEPATH} ]]; then
     ffmpeg -f lavfi -i anullsrc=r=11025:cl=mono -t 3600 -acodec mp3 ${FILEPATH}