Xerbo / furaffinity-dl

FurAffinity Downloader, now with 100% more Python
BSD 3-Clause "New" or "Revised" License
90 stars 17 forks source link

Accounts using "beta" layout only download first page #28

Closed FlynnChurch closed 4 years ago

FlynnChurch commented 4 years ago

If the -c option is used with a valid cookie but the associated account uses the "beta" layout (as opposed to the "classic" one), attempting to download content will stop after the first page.

This is because next_page_url is generated by grepping for the class "button-link right"; in the "beta" layout, the Next Buttons are class "button mobile-button right" instead. Because the grep fails to find a valid URL, the download stops after the first page.

Going into account settings and switching back to the "classic" layout fixes the problem, but it's rather inconvenient.

kattjevfel commented 4 years ago

The new theme is no longer beta as of today, and is set as the default one. (You can still choose the Classic one in settings) https://www.furaffinity.net/journal/9364332

Xerbo commented 4 years ago

I've putting off doing this since I hate regex, but I'll get on this one now.

Xerbo commented 4 years ago

Well that was easier than I was expecting, anyways, that should fix it.

kattjevfel commented 4 years ago

It still doesn't get more than the first page sadly, seems the new button is

                            <div class="inline" style="width:32%">
                                                                    <form action="/gallery/pocketpaws/2/" method="get">
                                        <button class="button standard" type="submit">Next</button>
                                    </form>
                                                            </div>