Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Newgrounds] 'search' extractor not act as intended #2173

Closed
RJFAC opened this issue Jan 7, 2022 · 3 comments
Closed

[Newgrounds] 'search' extractor not act as intended #2173

RJFAC opened this issue Jan 7, 2022 · 3 comments

Comments

@RJFAC
Copy link

RJFAC commented Jan 7, 2022

#2161
gallery-dl --cookie D:\app\cookies-newgrounds-com.txt "https://www.newgrounds.com/search/conduct/art?sort=date-desc&advanced=1&match=tdtu&user=yoako&suitabilities=a"
The search results are for those under adult rating, but the extractor only downloads every other contents excepts ones under rating adults.
The arts under adult rating need login to view, I tried using cookie, didn't seem to work.

@mikf
Copy link
Owner

mikf commented Jan 8, 2022

The problem is that newgrounds ignores the suitabilities query parameter and just uses whatever global Ratings filter is set.

Open your URL in a private browser window and you'll see that Ratings is set to E, T, M despite having suitabilities=a in the URL. That's also what gallery-dl is seeing.

Changing the filter to whatever suitabilities is set to before starting a search is possible, but enabling adult content does not work when not logged in and doing that while logged in would affect the global account settings.

I tried using cookie, didn't seem to work.

No, that works, but you have to change the global Ratings filter of your own account first. Go to the search page, change Ratings to what you want, and then export your cookies.

@RJFAC
Copy link
Author

RJFAC commented Jan 9, 2022

No, that works, but you have to change the global Ratings filter of your own account first. Go to the search page, change Ratings to what you want, and then export your cookies.

Ok, that seems to work, but it start to download existing files non stop.

Also one more question, does that mean I need to change my NG account settings and export the cookie every time I download, or change the account settings, export the cookies, change the file name accordingly, and use different cookie file?
i.e.cookies-newgrounds-com-rating-a.txt
cookies-newgrounds-com-rating-m.txt
cookies-newgrounds-com-rating-t.txt
cookies-newgrounds-com-rating-e.txt

Have tried it myself, need to change the account setting every time I download.

@mikf
Copy link
Owner

mikf commented Jan 13, 2022

With commit 4acc31b, it now sets the Ratings filter before starting a search, based on the suitabilities parameter in the search URL. Rating "Adult" still only works when logged in. Setting that filter as guest has no effect.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants