Skip to content

Commit

Permalink
Image type control
Browse files Browse the repository at this point in the history
  • Loading branch information
dacacioa committed Jan 13, 2017
1 parent c989292 commit d3fbd11
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pydub/audio_segment.py
Original file line number Diff line number Diff line change
Expand Up @@ -576,10 +576,10 @@ def export(self, out_f=None, format='mp3', codec=None, bitrate=None, parameters=
codec = self.DEFAULT_CODECS.get(format, None)

if cover is not None:
if cover.lower().endswith(('.png', '.jpg', '.jpeg')) and format == "mp3":
if cover.lower().endswith(('.png', '.jpg', '.jpeg', '.bpm')) and format == "mp3":
conversion_command.extend(["-i" , cover, "-map", "0", "-map", "1"])
else:
raise AttributeError("Only .tif, .jpg, .jpeg and .png image file types are supported and mp3 sound files.")
raise AttributeError("Only .tif, .jpg, .bmp, .jpeg and .png image file types are supported and mp3 sound files.")

if codec is not None:
# force audio encoder
Expand Down

0 comments on commit d3fbd11

Please sign in to comment.