Compare commits

..

No commits in common. "fda08d7d0d9ce8ae636a9b75af5393b0a58b2934" and "9b10e525f0d7d76f90b97f9fa714af6a3f763ff0" have entirely different histories.

3 changed files with 5 additions and 9 deletions

View file

@ -35,7 +35,6 @@ services:
build: .
volumes:
- .:/src/techrec
- rec:/rec
- ./docker/output:/src/output
ports:
- 8000:8000

View file

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

View file

@ -25,10 +25,8 @@ async def get_timefile_exact(time) -> str:
)
if path.startswith("http://") or path.startswith("https://"):
logger.info(f"downloading: {path}")
local = await download(
path,
basic_auth=get_config()['AUDIO_INPUT_BASICAUTH'],
)
local = await download(path,
basic_auth=get_config()['AUDIO_INPUT_BASICAUTH'])
return local
return path
@ -124,8 +122,7 @@ async def create_mp3(
file = await get_timefile(begin)
except Exception as e:
logger.error("Error while retrieving file: %s", e)
else:
intervals.append((file, start_cut, end_cut))
intervals.append((file, start_cut, end_cut))
if os.path.exists(outfile):
raise OSError("file '%s' already exists" % outfile)
for path, _s, _e in intervals: