fix path sep
This commit is contained in:
parent
2f6c42d000
commit
9d77d4c06e
1 changed files with 2 additions and 2 deletions
4
main.go
4
main.go
|
|
@ -105,8 +105,8 @@ func main() {
|
||||||
outURL = strings.ReplaceAll(outURL, "webtoons.com/", "")
|
outURL = strings.ReplaceAll(outURL, "webtoons.com/", "")
|
||||||
outURL = strings.Split(outURL, "?")[0]
|
outURL = strings.Split(outURL, "?")[0]
|
||||||
outURL = strings.ReplaceAll(outURL, "/viewer", "")
|
outURL = strings.ReplaceAll(outURL, "/viewer", "")
|
||||||
outURL = strings.ReplaceAll(outURL, string(os.PathSeparator), "-")
|
outURL = strings.ReplaceAll(outURL, "/", "-")
|
||||||
outPath := "./" + outURL + ".pdf"
|
outPath := outURL + ".pdf"
|
||||||
err := pdf.WritePdf(outPath)
|
err := pdf.WritePdf(outPath)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
fmt.Println(err.Error())
|
fmt.Println(err.Error())
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue