Skip to content

Commit

Permalink
fix: primary cookie overwriting all cookies
Browse files Browse the repository at this point in the history
  • Loading branch information
sekiju committed Dec 16, 2024
1 parent 84a021f commit 64d08b4
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion cmd/cli/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,9 @@ func parse() string {
}

config.Params.DownloadChapters = rootFlags.Args()
config.Params.PrimaryCookie = primaryCookie
if primaryCookie != nil && *primaryCookie != "" {
config.Params.PrimaryCookie = primaryCookie
}

return *configPath
}
Expand Down

0 comments on commit 64d08b4

Please sign in to comment.