Skip to content

[iwara] Add support #7785

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

Merged
merged 33 commits into from
Jul 13, 2025
Merged

[iwara] Add support #7785

merged 33 commits into from
Jul 13, 2025

Conversation

NecRaul
Copy link
Contributor

@NecRaul NecRaul commented Jul 6, 2025

Fixes #2652 and #5840.

Weird hash hack taken from here and yt-dlp.

@mikf
Copy link
Owner

mikf commented Jul 6, 2025

Thank you, but there are so many usage and coding patterns that have proven quite useful throughout gallery-dl's development which are present in many places in its code base, that your code mostly ignores. If you don't mind, I'd like to overhaul your code a bit and deal with all the issues myself.

Please don't take it the wrong way. Having a working solution and improving upon it is always a lot nicer and easier than having to start from scratch.

@NecRaul
Copy link
Contributor Author

NecRaul commented Jul 6, 2025

Thanks for the thoughtful feedback — I completely understand and agree that consistency with established patterns is important. I would've liked to use said patterns and whatnot, but I'm sure — as you would agree to as well — the documentation regarding developing extractors for new sites is not great.

I tried to go by example (mostly from girlswithmuscles and boosty, as they got support relatively recently), but maybe the undertaking was too great. Regardless, I'd be happy for my code to be improved, be it at my own hands or yours. I did this because, unlike yt-dlp, extractors in gallery-dl are more uniform and do what I need better, I guess — so I wanted to write one for Iwara, as I use it every now and then.

I'll try to learn from your adjustments so future contributions can better align with gallery-dl's structure.

@mikf
Copy link
Owner

mikf commented Jul 6, 2025

Well... I wanted to work on this this evening but

We are having trouble connecting
Error 5XX

Gateway time-out
The web server reported a gateway time-out error.

Guess I'll try my luck tomorrow.
And sorry for being so OCD about it all.

edit: Iwara is working again.

@NecRaul
Copy link
Contributor Author

NecRaul commented Jul 6, 2025

It happened to me once in a while as well.

I'll also say this, search and tag extractors take significantly more time (regardless of how much data is in each search/tag) to resolve requests and sometimes they fail with no explanation other than timeout. Since both of them mostly use code from other extractors (video/image), I'd advise you to focus on anything other than those two and iron them out at the end. That's just my two cents.

And sorry for being so OCD about it all.

All good. I like working on gallery-dl. In case of Iwara, I just wanted to have a working extractor for my use case.

mikf added 11 commits July 6, 2025 23:50
- define endpoints inside methods
- implement and use _call() and _pagination()
- cache auth tokens
TODO:
- update test results
- simplify code
and move user data extraction into 'yield_video'
and move user info extraction into 'yield_image()'
perform API calls to get full 'files' list inside the function
@mikf mikf added the nsfw label Jul 13, 2025
@mikf mikf merged commit a7ebb83 into mikf:master Jul 13, 2025
7 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[Site request] Iwara
2 participants