Compare commits
5 Commits
4f19834b31
..
v1.0.1
| Author | SHA1 | Date | |
|---|---|---|---|
| 0ceed7fbc1 | |||
| ddc78cccf1 | |||
| 83461eda7b | |||
| 81a416cb83 | |||
| 2b60f1a8c2 |
+1
-1
@@ -3,7 +3,7 @@ LABEL org.opencontainers.image.vendor="JDB-NET"
|
||||
WORKDIR /app
|
||||
COPY . /app
|
||||
ARG VERSION=dev
|
||||
ENV APP_VERSION=${VERSION}
|
||||
ENV VERSION=${VERSION}
|
||||
RUN pip install -r requirements.txt
|
||||
RUN apt-get update && apt-get install -y curl ffmpeg procps
|
||||
RUN rm -rf /var/lib/apt/lists/*
|
||||
|
||||
@@ -898,6 +898,7 @@ def add_config():
|
||||
encoder_type = request.form.get('encoder_type')
|
||||
watch_folder = request.form.get('watch_folder')
|
||||
temp_dir = request.form.get('temp_dir') or '/temp'
|
||||
target_resolution = request.form.get('target_resolution') or None
|
||||
ffmpeg_flags = None
|
||||
if encoder_type == 'video':
|
||||
crf = request.form.get('crf', '24')
|
||||
@@ -907,7 +908,7 @@ def add_config():
|
||||
audio_bitrate = request.form.get('audio_bitrate', '320k')
|
||||
ffmpeg_flags = f'-b:a {audio_bitrate}'
|
||||
if encoder_type in ['video', 'audio'] and watch_folder:
|
||||
db_manager.add_config(encoder_type, watch_folder, ffmpeg_flags, temp_dir)
|
||||
db_manager.add_config(encoder_type, watch_folder, ffmpeg_flags, temp_dir, target_resolution)
|
||||
return redirect(url_for('config'))
|
||||
|
||||
@app.route('/edit_config/<int:config_id>', methods=['POST'])
|
||||
|
||||
Reference in New Issue
Block a user