Skip to content

Commit

Permalink
fix custom bitrate on default file format
Browse files Browse the repository at this point in the history
  • Loading branch information
justin025 committed Feb 11, 2025
1 parent 5c19953 commit 5f0bba5
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/onthespot/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -209,7 +209,10 @@ def convert_audio_format(filename, bitrate, default_format):
command += ['-loglevel', 'error', '-hide_banner', '-nostats']

# Check if media format is service default
if filetype == default_format:

if filetype == default_format and config.get('use_custom_file_bitrate'):
command += ['-b:a', bitrate]
elif filetype == default_format:
command += ['-c:a', 'copy']
else:
command += [
Expand Down

0 comments on commit 5f0bba5

Please sign in to comment.