Skip to content

Commit

Permalink
bugfix: fixed opus download (#1351)
Browse files Browse the repository at this point in the history
  • Loading branch information
xnetcat authored Jul 29, 2021
1 parent 8dff14d commit c2b27b2
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions spotdl/download/downloader.py
Original file line number Diff line number Diff line change
Expand Up @@ -164,6 +164,8 @@ async def download_song(self, song_object: SongObject) -> None:

if self.arguments["output_format"] == "m4a":
ytdl_format = "bestaudio[ext=m4a]"
elif self.arguments["output_format"] == "opus":
ytdl_format = "bestaudio[ext=webm]"
else:
ytdl_format = "bestaudio"

Expand Down

0 comments on commit c2b27b2

Please sign in to comment.