Closed satishbabariya closed 4 years ago
Hi @satishbabariya,
Basically, you are asking to keep the downloaded images alongside the pdf or whatever the final file format is?
@Girbons yeah.
options like,
const (
CBR = "cbr"
CBZ = "cbz"
EPUB = "epub"
PDF = "pdf"
IMG = "img"
)
@satishbabariya What do you think about something like 2 parameters like --only-images
used alongside --images-format
?
@Girbons, that would be great, also --images-format
can have a default value if not given?
and --only-images
will not create pdf's right?
@satishbabariya Just the images, no PDF. As default Image format I was thininking about png.
@Girbons :thumbsup:
@satishbabariya if you want to try out this branch feel free to do it, would be nice to have a feedback!
I need to fix few things in the GUI then I will release the 0.15.
@Girbons sure, though not working when passing -url flag with multiple or single urls
go run cmd/downloader/main.go -url=https://mangarock.com/manga/mrs-serie-100350535/chapter/mrs-chapter-100409200 -images-only
I think the length of flag.Args()
is getting zero, here https://github.com/Girbons/comics-downloader/blob/34-download-only-images/cmd/downloader/main.go#L38
also after downloading completed can't able to find images folder in the comics folder? here, https://github.com/Girbons/comics-downloader/blob/34-download-only-images/pkg/core/core.go#L357
@Girbons, wouldn't it better to download the images directly to the respective folder comics/mangarock.com/Solo Leveling/Solo Leveling-Chapter 53/img1.png
rather than using temp dir
because after downloading the directory still remains empty, and in current approch, the image will download every time (i think) if it still already available inside the chapter folder
@Girbons, wouldn't it better to download the images directly to the respective folder comics/mangarock.com/Solo Leveling/Solo Leveling-Chapter 53/img1.png rather than using temp dir
Yes, its a good idea, I need to refactor that part. I can easily remove the current logic and reuse https://github.com/Girbons/comics-downloader/blob/34-download-only-images/pkg/core/core.go#L312
the image will download every time (i think)
Yes, right now there aren't checks to see if there is already an image folder.
Download comic as images inside respective folders like mangarock.com/naruto/cp-01/1.img ...