JDownloader Community - Appwork GmbH
 

Go Back   JDownloader Community - Appwork GmbH > English Support > Decrypter Plugin Reports
Reply
 
Thread Tools Display Modes
  #1  
Old 08.06.2021, 23:04
damo damo is offline
DSL Light User
 
Join Date: Jan 2020
Posts: 34
Default Hitomi.la updated gallery code

Hitomi.la changed the gallery code so I've updated the relevant function:

Code:
  String subdomain_from_url(String url, String base) {
    String retval = "b";
    if (base != null) {
      retval = base;
    }

    int number_of_frontends = 3;

    Matcher m = SUBDOMAIN_FROM_URL_PATTERN.matcher(url);
    if (!m.find()) {
      return "a";
    }

    try {
      int g = Integer.parseInt(m.group(1), 16);
      if (g < 0x80) {
        number_of_frontends = 2;
      }
      if (g < 0x59) {
        g = 1;
      }
      retval = subdomain_from_galleryid(g, number_of_frontends) + retval;
    } catch (NumberFormatException ignore) {}

    return retval;
  }
They changed the if-clauses for g, it was:
Code:
      if (g < 0x30) {
        number_of_frontends = 2;
      }
      if (g < 0x09) {
        g = 1;
      }
Reply With Quote
  #2  
Old 09.06.2021, 11:29
Jiaz's Avatar
Jiaz Jiaz is offline
JD Manager
 
Join Date: Mar 2009
Location: Germany
Posts: 79,554
Default

Thanks! will be updated with next plugin update
__________________
JD-Dev & Server-Admin
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

All times are GMT +2. The time now is 08:43.
Provided By AppWork GmbH | Privacy | Imprint
Parts of the Design are used from Kirsch designed by Andrew & Austin
Powered by vBulletin® Version 3.8.10 Beta 1
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.