Skip to content
This repository has been archived by the owner on Jan 20, 2021. It is now read-only.

Commit

Permalink
Merge pull request #121 from mpacella88/master
Browse files Browse the repository at this point in the history
Download "bestaudio" format instead of m4a with youtube-dl
  • Loading branch information
matthieugrieger committed Feb 12, 2016
2 parents aa285bf + d84260b commit 31720b1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion service_youtube.go
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ func (yt YouTube) NewSong(user *gumble.User, id, offset string, playlist Playlis
offset: int(yt.parseTime(offset, `T\=(?P<days>\d+D)?(?P<hours>\d+H)?(?P<minutes>\d+M)?(?P<seconds>\d+S)?`).Seconds()),
duration: int(yt.parseTime(duration, `P(?P<days>\d+D)?T(?P<hours>\d+H)?(?P<minutes>\d+M)?(?P<seconds>\d+S)?`).Seconds()),
thumbnail: thumbnail,
format: "m4a",
format: "bestaudio",
skippers: make([]string, 0),
playlist: playlist,
dontSkip: false,
Expand Down

0 comments on commit 31720b1

Please sign in to comment.