Lofter1 / anyflip-downloader

Download anyflip books as PDF
GNU General Public License v3.0
241 stars 39 forks source link

panic: runtime error: index out of range [1] with length 1 #39

Open Fra-cyber-9 opened 1 year ago

Fra-cyber-9 commented 1 year ago

When trying to dowload a specific file I get this runtime error:

panic: runtime error: index out of range [1] with length 1

goroutine 1 [running]:
main.sanitizeURL(0xc00013ea20)
        /home/runner/work/anyflip-downloader/anyflip-downloader/main.go:116 +0xf4
main.prepareDownload(0xc00013ea20)
        /home/runner/work/anyflip-downloader/anyflip-downloader/main.go:78 +0x46
main.main()
        /home/runner/work/anyflip-downloader/anyflip-downloader/main.go:52 +0x1c5

I don’t know which command to put but my file has 121 pages. If anyone can help me.