Skip to content

Commit

Permalink
update youtube-dl command, remove cache
Browse files Browse the repository at this point in the history
  • Loading branch information
mrtrkmn committed Jan 2, 2022
1 parent 12990d2 commit 2bc4795
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion client/youtubedl.go
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ func (ytdl *YoutubeDL) exec(args ...string) ([]byte, error) {
// DownloadWithOutputName generates Folder named with Playlist name
// downloads videos under given playlist url to Folder
func (ytdl *YoutubeDL) DownloadWithOutputName(folderName, url string) error {
cmds := []string{"-o", folderName + "/%(playlist_index)s - %(title)s.%(ext)s", url}
cmds := []string{"--rm-cache-dir", "-o", folderName + "/%(playlist_index)s - %(title)s.%(ext)s", url}
_, err := ytdl.exec(cmds...)
return err
}

0 comments on commit 2bc4795

Please sign in to comment.