Skip to content

Commit a7ebb83

Browse files
NecRaulmikf
andauthored
[iwara] Add support (#2652 #5840 #7785)
* [iwara] Add initial support * [iwara] Add search support * [iwara] Code cleanup * [iwara] Small fixes and additions * [iwara] Add tag support * [iwara] Add mime-type to metadata * [iwara] Refactor patterns/matching using urllib * [iwara] Add unit tests * [iwara] Update docs * [iwara] Fix linting on older Python versions * [iwara] update 'IwaraAPI' interface class - define endpoints inside methods - implement and use _call() and _pagination() - cache auth tokens * [iwara] split and rename 'profile' extractor TODO: - update test results - simplify code * [iwara] simplify '_user_params()' usage * [iwara] update 'video' extractor and move user data extraction into 'yield_video' * [iwara] update 'image' extractor and move user info extraction into 'yield_image()' * [iwara] update 'playlist' extractor * [iwara] update 'search' extractor * [iwara] update 'tag' extractor * [iwara] simplify 'yield_image' usage perform API calls to get full 'files' list inside the function * [iwara] add video "image" test * [iwara] provide 'date' metadata * [iwara] simplify 'source()' remove urllib.parse usage * [iwara] small optimizations * get("key", {}) -> get("key") or {} * split("…", 1) -> partition("…") * use f-strings for all patterns * [iwara] add missing 'keyarg=1' to profile() memcache decorator * [tests/iwara] update results * [iwara] extract more 'user' metadata * [iwara] update default format strings include 'date' in filenames to order them chronologically * [iwara] restructure image/video handling - use less generators - make processing individual media items non-fatal * [iwara] fix login and token handling * [iwara] add 'favorite' extractor * [iwara] add 'following' and 'followers' extractors --------- Co-authored-by: Mike Fährmann <[email protected]>
1 parent 1686f32 commit a7ebb83

File tree

7 files changed

+751
-0
lines changed

7 files changed

+751
-0
lines changed

docs/configuration.rst

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -466,6 +466,7 @@ Description
466466
* ``idolcomplex``
467467
* ``imgbb``
468468
* ``inkbunny``
469+
* ``iwara``
469470
* ``kemono``
470471
* ``mangadex``
471472
* ``mangoxo``

docs/gallery-dl.conf

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -413,6 +413,11 @@
413413
"sleep-request": "0.5-1.5",
414414
"videos": true
415415
},
416+
"iwara":
417+
{
418+
"username": "",
419+
"password": ""
420+
},
416421
"kemono":
417422
{
418423
"username": "",

docs/supportedsites.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -517,6 +517,12 @@ Consider all listed sites to potentially be NSFW.
517517
<td>Games</td>
518518
<td></td>
519519
</tr>
520+
<tr>
521+
<td>Iwara</td>
522+
<td>https://www.iwara.tv/</td>
523+
<td>Favorites, Followers, Followed Users, individual Images, Playlists, Search Results, Tag Searches, User Profiles, User Images, User Playlists, User Videos, Videos</td>
524+
<td>Supported</td>
525+
</tr>
520526
<tr>
521527
<td>Keenspot</td>
522528
<td>http://www.keenspot.com/</td>

gallery_dl/extractor/__init__.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -92,6 +92,7 @@
9292
"issuu",
9393
"itaku",
9494
"itchio",
95+
"iwara",
9596
"jschan",
9697
"kabeuchi",
9798
"keenspot",

0 commit comments

Comments
 (0)