Skip to content

Commit

Permalink
allow user specified bitrate for opus downloads
Browse files Browse the repository at this point in the history
  • Loading branch information
justin025 committed Jan 24, 2025
1 parent 4078583 commit d197c42
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/onthespot/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -211,11 +211,11 @@ def convert_audio_format(filename, bitrate, default_format):
# Check if media format is service default
if filetype == default_format:
command += ['-c:a', 'copy']
elif filetype != '.opus':
else:
command += [
#'-f', filetype.split('.')[1],
'-ac', '2',
'-ar', f'{config.get("file_hertz")}',
'-ar', f'{config.get("file_hertz") if filetype != '.opus' else 48000}',
'-b:a', bitrate
]

Expand Down

0 comments on commit d197c42

Please sign in to comment.