Thread: [Solved] Hitomi.la
View Single Post
  #9  
Old 21.01.2020, 01:35
Etshy Etshy is offline
Junior Loader
 
Join Date: Oct 2019
Posts: 13
Default

Ok.

Actually there is no need to have the full list of thumbnails.
convert thei common.js into a JAVA class (or just functions in the plugin) seems to "find" the full url from the image hash, present in the JSON array related to the comic.

From what I found the part you didn't know is the 3 last digit of the hash.
the very last one is the first part and the 2 last before the last are the second part, after "/"
see an example of an hash and the regex : **External links are only visible to Support Staff****External links are only visible to Support Staff**
That's done in the "full_path_from_hash" function from common.js


I tried to make some quick addition (I don't know JAVA so I just added the JS function, tried to explain/convert it to JAVA as I could and added how I think you could call the added functions).

I did that quite "quickly" (lost my time to search some java things ^^") and it's late here so maybe I forgot some thinsg (I hope not though)
**External links are only visible to Support Staff****External links are only visible to Support Staff**

Hope that can help, and still available to help if needed after that.

If pastebined the plugin isn't good, let me know, it's saved on my pastebin account so I can delete it.
Reply With Quote