RedSquirrel87 / manga-downloader

A very simple application written in JAVA to download any chapters of any manga from the supported websites
41 stars 1 forks source link

Downloading from webtoons not working #184

Closed RedSquirrel87 closed 4 years ago

RedSquirrel87 commented 4 years ago

Original report by Anonymous.


I can't load the chapter list for webtoons. The loading animation plays, but the list stays blank afterwards. I tried several series, both finished and unfinished as well as different genres (Firebrand, I love Yoo, The Gamer). None of them work, so it seems to be different from issue #90. Other websites work, so the problem shouldn't be on my end.

RedSquirrel87 commented 4 years ago

Original comment by Red Squirrel (Bitbucket: Red_Squirrel, GitHub: RedSquirrel87).


It's not that it doesn't work, you just have to give it the time to load the full chapters list xD On that website there are many series with dozens of chapters available and the website shows only 10 chapters for page, for example I just tried with this one https://www.webtoons.com/en/slice-of-life/my-giant-nerd-boyfriend/list?title_no=958 that have 40 different pages for the full chapters list and since there is no way to get the full list with just one call, the program needs to download and parse 40 different web pages to show you the full chapters list xD And it took about five minutes to me to load the chapters list for this one šŸ˜…

RedSquirrel87 commented 4 years ago

Original comment by Red Squirrel (Bitbucket: Red_Squirrel, GitHub: RedSquirrel87).


I tested also a couple of the mentioned series just to be sure, I can confirm that both worked for me here:

ā€Œ

ā€Œ

RedSquirrel87 commented 4 years ago

Original comment by afg (Bitbucket: afg, GitHub: afg).


Threadstarter here. Tried it again on my end and waited for another 15 minutes after the loading animation stopped. Still nothing. Then I tried a series with only three chapters (Magickology). Again, the list stayed completely blank.

Since the program had worked fine before the last update, I figured it might be connected to a corrupted download. So I deleted the .jar, .db and the prefs.xml and did a fresh install. Still did not work.

Since it still works for you, the only explanation I can think of would be missing dependencies of some kind. Iā€™m on Linux Mint with openjdk 11.0.5.

In case you canā€™t help on the technical side, is there perhaps some way to download older versions and stop them from updating?

BTW, I had the Downloader running and trying to load a chapter list for Magickology (again, 3 chapters, on one page) the whole time I was writing this. Half an hour by now. Still looks as in the screenshot above, and my computer is far from slow. Before the update, even large series (ā€œLike Girls of the Wildā€™sā€ with 260 chapters) only took a few seconds to load the chapter list.

RedSquirrel87 commented 4 years ago

Original comment by afg (Bitbucket: afg, GitHub: afg).


Tried in Wine (the most common Windows emulator for Linux and Mac) with the Windows version of JRE 8 now. There it works. Seems your last update somehow removed Linux support.

RedSquirrel87 commented 4 years ago

Original comment by Red Squirrel (Bitbucket: Red_Squirrel, GitHub: RedSquirrel87).


Please enable the ā€œSave JVM messages to fileā€ option in the Edit menu, try again to load any problematic manga and after that please paste/upload the content of the jvm_log.txt file the program should create in the same folder of its executable. This way we could know what causes the issue on Linux

RedSquirrel87 commented 4 years ago

Original comment by afg (Bitbucket: afg, GitHub: afg).


I canā€™t enable the option. The program gives a dialogue saying it needs to restart to apply the changes, but after clicking okay and the program automatically restarting, the box is still unchecked. Unsurprisingly, it also doesnā€™t create a file.

The closest thing I have are the Xlog messages from console:

Xlog for MangaDownloader.jar (I doubt this shows anything, as it stops once the window appears)

https://mega.nz/#!P7pDjCQI!wCGY0yTkIJU0IgW9EpJCO_mRsq3zt2EnJKcpVaSgUTk

Xlog for main.jar (while trying to download Magickology)

https://mega.nz/#!DqxXhYTa!7ffewJVNkLG8DLDewi92DjkAcUiKpcVJrbieXJty0qg

I could also download eclipse or some other IDE and try to use that to log messages if that would help. Though as I normally donā€™t use Java, I have no idea whether thatā€™s possible or what information youā€™d need.

ā€Œ

RedSquirrel87 commented 4 years ago

Original comment by Red Squirrel (Bitbucket: Red_Squirrel, GitHub: RedSquirrel87).


I canā€™t enable the option. The program gives a dialogue saying it needs to restart to apply the changes, but after clicking okay and the program automatically restarting, the box is still unchecked. Unsurprisingly, it also doesnā€™t create a file.

ā€Œ

This is definitely not normal, Iā€™ll investigate if there is a bug in its activation.

About the log, since you are on Linux just open a terminal and run the program from there by using the command:

ā€Œ

java -jar /path/to/main.jar

ā€Œ

with /path/to/ replaced by the absolute path where the file main.jar is.

This way all the JVM log messages will appear directly inside the terminal and we can get its specific log, thank you

ā€Œ

RedSquirrel87 commented 4 years ago

Original comment by Red Squirrel (Bitbucket: Red_Squirrel, GitHub: RedSquirrel87).


Never mind, I just tested by myself with virtualbox and an Ubuntu distro, it seems that JSOUP library has some issues with URL containing the "?" char on Linux. I'll fix this in next version

RedSquirrel87 commented 4 years ago

Original comment by afg (Bitbucket: afg, GitHub: afg).


Executing java -jar main.jar in the location of the program is how Iā€™ve been starting main.jar since the beginning. The console gives no output at all unless I add another parameter like -Xlog.

Searching around on the net I found that the -verbose flag also works with java. The output for this is here:

https://mega.nz/#!KmpCzCCa!-LJm285Sp489KTIH7OnSbX4yKx5ESANzmMeheXW63Ho

Also, I figured out why checking the jvm_log.txt checkbox seems to be impossible when monitoring the prefs.xml. Iā€™m not sure if my english is good enough to explain it, but here goes:

When I click OK on the restart dialogue, the program doesnā€™t actually restart. Instead, it closes the window and removes it from the central part of the taskbar (where programs are normally shown), but still shows itā€™s symbol on the right of the taskbar (where the clock, audio control and so on are).

Then it launches another instance, which has an open window and is shown both in the central taskbar and to the right (where there are now two instances, see below).

In this second instance, the state of the checkbox hasnā€™t changed.

Upon closing the 2nd instance, the 1st instance remains open and can be brought to the foreground (open window + central taskbar) by doubleclicking the symbol on the right of the taskbar. only upon manually closing this instance as well does the setting in the prefs.xml change, and upon the next start, the state of the checkbox has changed.

ā€Œ

However, the created jvm_log.txt file has no content and a size of 0MB.

If youā€™ve got any other ideas, I can try them out. Or, if itā€™s somethng more complicated, you could burn a liveDVD of linux mint (or propably any other linux distro) and try it yourself. Java is preinstalled on them, and the .jar can be started from a USB drive.

Sorry this is such a back-and-forth. Iā€™ve never worked with java in-depth before, so I donā€™t know what information you need to debug.

Anyways, thanks for trying to solve this bug immediately. As the program works fine with WINE though (as long as a windows version of Java is installed), you need not overwork yourself for me.

RedSquirrel87 commented 4 years ago

Original comment by Red Squirrel (Bitbucket: Red_Squirrel, GitHub: RedSquirrel87).


v31.3 released, it should fix this issue