Skip to content

Commit

Permalink
fix path sep
Browse files Browse the repository at this point in the history
  • Loading branch information
robinovitch61 committed Dec 23, 2023
1 parent 2f6c42d commit 9d77d4c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions main.go
Original file line number Diff line number Diff line change
Expand Up @@ -105,8 +105,8 @@ func main() {
outURL = strings.ReplaceAll(outURL, "webtoons.com/", "")
outURL = strings.Split(outURL, "?")[0]
outURL = strings.ReplaceAll(outURL, "/viewer", "")
outURL = strings.ReplaceAll(outURL, string(os.PathSeparator), "-")
outPath := "./" + outURL + ".pdf"
outURL = strings.ReplaceAll(outURL, "/", "-")
outPath := outURL + ".pdf"
err := pdf.WritePdf(outPath)
if err != nil {
fmt.Println(err.Error())
Expand Down

0 comments on commit 9d77d4c

Please sign in to comment.