Closed jwhittaker closed 4 years ago
Hi @jwhittaker, thanks for reporting!
I'll take a look asap
Hey @jwhittaker,
could you please give me an example url?
I just had this issues
0% | | [0s:0s]panic: runtime error: invalid memory address or nil pointer dereference
[signal SIGSEGV: segmentation violation code=0x1 addr=0x20 pc=0x6774f9]
goroutine 1 [running]:
image/jpeg.Encode(0x8e1040, 0xc0000cc090, 0x0, 0x0, 0x0, 0x0, 0x8e0b20)
/usr/local/go/src/image/jpeg/writer.go:576 +0x29
github.com/Girbons/comics-downloader/pkg/util.SaveImage(0x8e1040, 0xc0000cc090, 0x7f5379583e40, 0xc000326c90, 0x8450ef, 0x3, 0x0, 0x16)
/Users/girbons/go/src/github.com/Girbons/comics-downloader/pkg/util/util.go:171 +0xcb
github.com/Girbons/comics-downloader/pkg/core.(*Comic).DownloadImages(0xc000178090, 0x844b84, 0x1, 0x0, 0x0, 0x0, 0x0)
/Users/girbons/go/src/github.com/Girbons/comics-downloader/pkg/core/core.go:262 +0x685
github.com/Girbons/comics-downloader/pkg/core.(*Comic).makeCBRZ(0xc000178090, 0x844b84, 0x1, 0x0, 0x0)
/Users/girbons/go/src/github.com/Girbons/comics-downloader/pkg/core/core.go:170 +0xab
github.com/Girbons/comics-downloader/pkg/core.(*Comic).MakeComic(0xc000178090, 0x844b84, 0x1, 0x8, 0x0)
/Users/girbons/go/src/github.com/Girbons/comics-downloader/pkg/core/core.go:289 +0x65
github.com/Girbons/comics-downloader/cmd/app.download(0xc0001fbf08, 0xc00008de00)
/Users/girbons/go/src/github.com/Girbons/comics-downloader/cmd/app/downloader.go:90 +0x65f
github.com/Girbons/comics-downloader/cmd/app.Run(0xc00008df08)
/Users/girbons/go/src/github.com/Girbons/comics-downloader/cmd/app/downloader.go:125 +0x89
main.main()
/Users/girbons/go/src/github.com/Girbons/comics-downloader/cmd/downloader/main.go:83 +0x245
Ran with comics-downloader -format cbz --all https://www.comicextra.com/captain-marvel-carol-danvers-the-ms-marvel-years
Hey @bashfulrobot, thanks for reporting and giving an example url, I'll try to look into it soon
@bashfulrobot it worked for me using the latest release, which version are you using?
I'll try updating and have another go. I have automation in place and thought I was the latest, but I'll manually confirm. Thank you.
OK,
Confirming version (just updated)
❯ comics-downloader --version
comics-downloader version v0.22.3
And the URL now works. Thank you for your help. I should have tried that first on my own.
@bashfulrobot you're welcome!
@Girbons I have the same error. With version v0.22.3
.
$ ./comics-downloader -version
comics-downloader version v0.22.3
$ ./comics-downloader -format cbr -all https://www.comicextra.com/walt-disneys-comics-and-stories
INFO[0000] Downloading... url="https://www.comicextra.com/walt-disneys-comics-and-stories"
0% | | [0s:0s]panic: runtime error: invalid memory address or nil pointer dereference
[signal SIGSEGV: segmentation violation code=0x1 addr=0x20 pc=0x6774f9]
goroutine 1 [running]:
image/jpeg.Encode(0x8e1040, 0xc003f7c1e0, 0x0, 0x0, 0x0, 0x0, 0x8e0b20)
/usr/local/go/src/image/jpeg/writer.go:576 +0x29
github.com/Girbons/comics-downloader/pkg/util.SaveImage(0x8e1040, 0xc003f7c1e0, 0x7fe036c160c8, 0xc003fdc420, 0x8450ef, 0x3, 0x0, 0xb)
/Users/girbons/go/src/github.com/Girbons/comics-downloader/pkg/util/util.go:171 +0xcb
github.com/Girbons/comics-downloader/pkg/core.(*Comic).DownloadImages(0xc00013c090, 0x7ffe520990ac, 0x1, 0x0, 0x0, 0x0, 0x0)
/Users/girbons/go/src/github.com/Girbons/comics-downloader/pkg/core/core.go:262 +0x685
github.com/Girbons/comics-downloader/pkg/core.(*Comic).makeCBRZ(0xc00013c090, 0x7ffe520990ac, 0x1, 0x0, 0x0)
/Users/girbons/go/src/github.com/Girbons/comics-downloader/pkg/core/core.go:170 +0xab
github.com/Girbons/comics-downloader/pkg/core.(*Comic).MakeComic(0xc00013c090, 0x7ffe520990ac, 0x1, 0x200, 0x0)
/Users/girbons/go/src/github.com/Girbons/comics-downloader/pkg/core/core.go:289 +0x65
github.com/Girbons/comics-downloader/cmd/app.download(0xc002b65f08, 0xc000043e00)
/Users/girbons/go/src/github.com/Girbons/comics-downloader/cmd/app/downloader.go:90 +0x65f
github.com/Girbons/comics-downloader/cmd/app.Run(0xc000043f08)
/Users/girbons/go/src/github.com/Girbons/comics-downloader/cmd/app/downloader.go:125 +0x89
main.main()
/Users/girbons/go/src/github.com/Girbons/comics-downloader/cmd/downloader/main.go:83 +0x245
It starts downloading one image comics/www.comicextra.com/walt-disneys-comics-and-stories/images-chapter-743/0000-image.jpg
, and then crashes. The file is completely empty (0 bytes).
--
edit: As additional info. the last issues also appear black on the website. So I guess it just can't download them, because the images behind the issues don't exist. However older issues do exist, e.g. https://www.comicextra.com/walt-disneys-comics-and-stories/chapter-738.
Btw, a -issue
option would be nice. Some series, like the one above ^, have way to many issues, and sometimes you only want one specific.
Hi @ProgrammingJack,
Btw, a -issue option would be nice. Some series, like the one above ^, have way to many issues, and sometimes you only want one specific.
The tool already do that, you need to pass the issue url and omit the -all
parameter.
It starts downloading one image comics/www.comicextra.com/walt-disneys-comics-and-stories/images-chapter-743/0000-image.jpg, and then crashes. The file is completely empty (0 bytes).
Thanks for reporting this issue I will investigate soon!
The tool already do that, you need to pass the issue url and omit the
-all
parameter.
Then there must be also some other bug. ./comics-downloader -format cbr https://www.comicextra.com/walt-disneys-comics-and-stories/chapter-73
only downloads the first page, not the complete issue.
@ProgrammingJack
Then there must be also some other bug. ./comics-downloader -format cbr https://www.comicextra.com/walt-disneys-comics-and-stories/chapter-73 only downloads the first page, not the complete issue.
The tool behavior is right in this case, because you are asking to download only one page.
Ask for the complete issue by specifying /full
- https://www.comicextra.com/walt-disneys-comics-and-stories/chapter-73/full
Describe the bug
-all
flag crashes the program if there is a missing issue inbetween.To Reproduce
Once it reaches a chapter page with no image files, the program completely exits with this error:
Expected behavior The program would skip that chapter and move on to the next one until the list is exhausted. The program starts comicsextra at the latest chapter when
-all
is used, so it would finally stop after getting past#1
.Desktop (please complete the following information):
Additional context Attempts to work around this using
bash
.cbz
only contains the (first) cover image even if the issue is complete:.pdf
only with the (first) cover image.