Skip to content

Commit

Permalink
music: coverart extraction. check ffmpeg return
Browse files Browse the repository at this point in the history
  • Loading branch information
tamara-schmitz committed Aug 3, 2023
1 parent 6786839 commit 49360ad
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions music/musicbatchconverter.py
Original file line number Diff line number Diff line change
Expand Up @@ -285,8 +285,8 @@ def extract_coverart(in_filepath: Path, tempdir: Path) -> Path:
cmd.extend(["-map", "0:v", "-q:v", "5", cpath])
if not args.vff:
cmd.extend([ '-loglevel', 'error' ])
exec_cmd(cmd)
return cpath
if exec_cmd(cmd).returncode == 0:
return cpath

return None

Expand Down

0 comments on commit 49360ad

Please sign in to comment.