JDownloader Community - Appwork GmbH
 

 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
  #1  
Old 10.02.2012, 21:28
mluser
Guest
 
Posts: n/a
Default Motherless.com missing pages from gallery

There's a problem with the way JD processes the list of pages from womanless.com
The decrypter reads the links from just one page. Meaning, it works when the pager at the end of a gallery is like this:

« PREV 1 2 3 4 5 6 NEXT »

but it fails on a longer gallery:

« PREV 1 2 3 4 5 6 7 8 9 10 11 ... 23 24 25 NEXT »

(the ... is added by womanless)

In this case, JD logs shows that it detected 14 pages (1 to 11 and 23 to 25), skipping 12 to 22.

The problem is in jd\plugins\decrypter\womanLessCom.java

Code:
ArrayList<String> pages = new ArrayList<String>();
            pages.add("currentPage");
            String pagenumbers[] = br.getRegex("page=(\\d+)\"").getColumn(0);
            if (!(pagenumbers == null) && !(pagenumbers.length == 0)) {
                for (String aPageNumber : pagenumbers) {
                    if (!pages.contains(aPageNumber) && !aPageNumber.equals("1")) pages.add(aPageNumber);
                }
            }
            logger.info("Found " + pages.size() + " pages, decrypting now...");
            progress.setRange(pages.size());
            for (String getthepage : pages) {
                if (!getthepage.equals("currentPage")) br.getPage(param + "?page=" + getthepage);

Last edited by Jiaz; 13.02.2012 at 19:54.
Reply With Quote
 

Thread Tools
Display Modes

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 07:09.
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.