Skip to content

Commit

Permalink
Hopefully fix windows log errors
Browse files Browse the repository at this point in the history
  • Loading branch information
justin025 committed Nov 7, 2024
1 parent 6a8d627 commit 75ce11d
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/onthespot/post_download.py
Original file line number Diff line number Diff line change
Expand Up @@ -182,7 +182,7 @@ def convert_audio_format(filename, metadata, bitrate, default_format):

# Add output parameter at last
command += [filename]
logger.info(
logger.debug(
f'Converting media with ffmpeg. Built commandline {command}'
)
# Run subprocess with CREATE_NO_WINDOW flag on Windows
Expand Down Expand Up @@ -252,7 +252,9 @@ def set_music_thumbnail(filename, metadata):
]

command += [filename]

logger.debug(
f'Setting thumbnail with ffmpeg. Built commandline {command}'
)
if os.name == 'nt':
subprocess.check_call(command, shell=False, creationflags=subprocess.CREATE_NO_WINDOW)
else:
Expand Down

0 comments on commit 75ce11d

Please sign in to comment.