Skip to content

Commit

Permalink
enabling the download of subtitles to bring autosuggested and others
Browse files Browse the repository at this point in the history
  • Loading branch information
abidulrmdn committed Apr 1, 2017
1 parent 7d1289b commit d11583d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion youtube_dl.go
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ type YoutubeDl struct {

func (youtubedl YoutubeDl) DownloadVideo(id string) error{
filename := "\"" + youtubedl.Path + "/" + id + ".srt\""
commandParams := " --write-auto-sub --skip-download -o " + filename + " -- " + id
commandParams := " --write-auto-sub --skip-download --sub-lang en -o " + filename + " -- " + id
commandName := "youtube-dl"
command := commandName + " " + commandParams
cmd := exec.Command("bash", "-c", command)
Expand Down

0 comments on commit d11583d

Please sign in to comment.