Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bad Issue # for readallcomics URLs with trailing year #118

Open
kshunterco opened this issue Aug 22, 2022 · 5 comments
Open

Bad Issue # for readallcomics URLs with trailing year #118

kshunterco opened this issue Aug 22, 2022 · 5 comments
Labels
bug Something isn't working

Comments

@kshunterco
Copy link
Contributor

Hey, back after a year or so away. Nice updates!

Describe the bug
When I try to get a comic that has a year at the end of its URL from readallcomics, it believes the year is the issue #, and downloads all the comics to the same output file (overwriting in series). So... not desired behavior.

To Reproduce
Steps to reproduce the behavior:
./downloader.exe -url http://readallcomics.com/category/sandman/
should do it.

Expected behavior
Rather than downloading the files all to the same issue number (1989 in the above instance) it should download them to individual files.

Screenshots
If applicable, add screenshots to help explain your problem.

Desktop (please complete the following information):

  • OS: Win10
  • Version 0.33.3
  • Type: CLI

Additional context
So I was thinking that if one (maybe me?) added a command line option to tell the code where the issue number was in the URL, it could work. The code will assume it's at the end, unless the command line option indicates it's somewhere else. I am not sure I will have time to do this (my semester is about to begin), but I can give it a shot? Lemme know if that would be welcome (a new command line option to specify the location of the issue number)...

@Girbons
Copy link
Owner

Girbons commented Aug 22, 2022

Hey @kshunterco nice to hear from you! 😄

it believes the year is the issue #, and downloads all the comics to the same output file (overwriting in series). So... not desired behavior.

Yeah, the current approach doesn't work sometimes, I realized that this week when I started to work again on this project.

So I was thinking that if one (maybe me?) added a command line option to tell the code where the issue number was in the URL, it could work. The code will assume it's at the end, unless the command line option indicates it's somewhere else. I am not sure I will have time to do this (my semester is about to begin), but I can give it a shot? Lemme know if that would be welcome (a new command line option to specify the location of the issue number)...

You know that any contributions is really appreciated 🚀 but if you don't have the time don't worry!

Instead of introducing a new cli option I have 2 ideas that come to my mind:

  • check if the issue number can be extracted otherwise use a progressive index to avoid file overwrite.
  • using the current approach but whenever the title is detected join the remaining slice content

e.g

using the following url as example: http://readallcomics.com/sandman-v2-075-1989/

splitted should be something like that
["https:", "", "readallcomics.com", "sandman-v2-075-1989"]

the last slice part can be splitted again by "-"
["sandman", "v2", "075", "1989"]

now, we could pop the first element that should be the title everytime(?)
and join the other elements together to make the issue number 

Let me know what do you think 😄

@Girbons Girbons added the bug Something isn't working label Aug 22, 2022
@kshunterco
Copy link
Contributor Author

Thanks @Girbons, good to be back! Sounds like you were away for a while too? Sometimes that can really help.

I like the second idea - the join. I have readallcomics.go opened up in vi right now, I will make that change to my version, seems like this should happen in all the sites code. I'll see what I can do, if it happens soon I'll fork and submit a pull request.

Best,
Kendall

@Girbons
Copy link
Owner

Girbons commented Sep 16, 2022

Thanks @Girbons, good to be back! Sounds like you were away for a while too? Sometimes that can really help.

Yep it really did help!

I like the second idea - the join. I have readallcomics.go opened up in vi right now, I will make that change to my version, seems like this should happen in all the sites code. I'll see what I can do, if it happens soon I'll fork and submit a pull request.

Cool! Thank you @kshunterco

@kshunterco
Copy link
Contributor Author

Hey. I'm slammed at work. I will get to this eventually. Sorry.

@tabletseeker
Copy link

Use this, the only working readcomiconline downloaded in 2024: https://github.com/tabletseeker/readcomic_dl

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants