From 4b7a642b1f092d3970e2373cc6c20b48a8db4fd9 Mon Sep 17 00:00:00 2001 From: Mattias Wadman Date: Mon, 8 Jul 2024 12:17:00 +0200 Subject: [PATCH] go fmt and some style fixes --- goutubedl.go | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/goutubedl.go b/goutubedl.go index 2c3fb7e..610cbea 100644 --- a/goutubedl.go +++ b/goutubedl.go @@ -325,7 +325,7 @@ func infoFromURL( if options.UseIPV4 { cmd.Args = append(cmd.Args, "-4") } - + if options.Downloader != "" { cmd.Args = append(cmd.Args, "--downloader", options.Downloader) } @@ -333,7 +333,7 @@ func infoFromURL( if options.CookiesFromBrowser != "" { cmd.Args = append(cmd.Args, "--cookies-from-browser", options.CookiesFromBrowser) } - + switch options.Type { case TypePlaylist, TypeChannel: cmd.Args = append(cmd.Args, "--yes-playlist") @@ -527,7 +527,7 @@ type DownloadOptions struct { Filter string // The index of the entry to download from the playlist that would be // passed to youtube-dl via --playlist-items. The index value starts at 1 - PlaylistIndex int + PlaylistIndex int } func (result Result) DownloadWithOptions( @@ -609,7 +609,7 @@ func (result Result) DownloadWithOptions( } else { cmd.Args = append(cmd.Args, "--load-info", jsonTempPath) } - //Force IPV4 Usage + // force IPV4 Usage if result.Options.UseIPV4 { cmd.Args = append(cmd.Args, "-4") }