happypandax / plugins

Plugins for HappyPanda X
https://happypandax.github.io/
GNU Lesser General Public License v3.0
32 stars 16 forks source link

Unable to DL using E-H #34

Open ghost opened 4 years ago

ghost commented 4 years ago

While Chaika and NH work fine E-H does not work for me

To Reproduce Login using EHentai Login Clicking download gallery using the Firefox extension gives the following in the log [---INFO---]--2019-Oct-30 21:57:22-: Finished handling item [---INFO---]--2019-Oct-30 21:57:22-: Failed to import item: BadZipFile("File is not a zip file",) [---INFO---]--2019-Oct-30 21:57:21-: Waiting on post-processing from "exhentai"... [---INFO---]--2019-Oct-30 21:57:15-: Downloading "2" requests for https://exhentai.org/g/1509162/87cf84cdae/ [---INFO---]--2019-Oct-30 21:57:15-: Received 2 requests from "exhentai" [---INFO---]--2019-Oct-30 21:57:10-: Querying resources from "exhentai"... [---INFO---]--2019-Oct-30 21:57:09-: Handling url https://exhentai.org/g/1509162/87cf84cdae/ [---INFO---]--2019-Oct-30 21:57:09-: Adding https://exhentai.org/g/1509162/87cf84cdae/

Expected behavior To download from EH

Logs error.log

Environment: Windows 10 Firefox 72 HPX 0.12.3

twiddli commented 4 years ago

Hello,

  1. Do you have access to exhentai as per EHentai Login?
  2. Are you aware of EHentai Downloader only supporting downloads using credits/gp atm.?
  3. Do you have enough credits/gp?
ghost commented 4 years ago

1: Yes 2: Yes. I download using credits/gp normally 3: Yes. image

ghost commented 4 years ago

It's a general problem present with all E-H galleries I've tried. Taking https://exhentai.org/g/1509162/87cf84cdae/ for example gave me the log in the first post.

twiddli commented 4 years ago

Can you try downloading in debug mode for the debug.log? You can also provide the plugin.log inside the EHentai Downloader plugin folder.

ghost commented 4 years ago

Here debug.log EHentai Metadata plugin.log plugin.log

twiddli commented 4 years ago

Can you try download with the setting Delete lefover files when download fails set to false, then look into the folder cache/download for the file that was just downloaded and check if it's valid?

ghost commented 4 years ago

Nope, seems to be invalid. For https://exhentai.org/g/1510351/81a60c00a8/, I got this NieR_ Yurimata.zip debug.log plugin.log

twiddli commented 4 years ago

okay I think it might be a race condition, the file isn't getting prepared in time for the link to be available, maybe i'll try and tweak things a little

ghost commented 4 years ago

Yes, I've noticed that. The download link takes around 10 seconds to be available for download but in HPX, the DL has already failed by then.