diff --git a/docs/configuration.rst b/docs/configuration.rst
index 16e7192e..11b15fc1 100644
--- a/docs/configuration.rst
+++ b/docs/configuration.rst
@@ -1648,7 +1648,7 @@ Description
extractor.nijie.include
-----------------------------
+-----------------------
Type
``string`` or ``list`` of ``strings``
Default
@@ -1658,7 +1658,7 @@ Description
when processing a user profile.
Possible values are
- ``"illustration"``, ``"doujin"``, ``"favorite"``.
+ ``"illustration"``, ``"doujin"``, ``"favorite"``, ``"nuita"``.
You can use ``"all"`` instead of listing all values separately.
diff --git a/docs/supportedsites.md b/docs/supportedsites.md
index 880744cb..089eb8c2 100644
--- a/docs/supportedsites.md
+++ b/docs/supportedsites.md
@@ -538,7 +538,7 @@ Consider all sites to be NSFW unless otherwise known.
| nijie |
https://nijie.info/ |
- Doujin, Favorites, Illustrations, individual Images, User Profiles |
+ Doujin, Favorites, Illustrations, individual Images, Nuita History, User Profiles |
Required |
diff --git a/gallery_dl/extractor/nijie.py b/gallery_dl/extractor/nijie.py
index 90ca01da..832831ff 100644
--- a/gallery_dl/extractor/nijie.py
+++ b/gallery_dl/extractor/nijie.py
@@ -91,6 +91,10 @@ class NijieExtractor(AsynchronousMixin, Extractor):
"url": url,
})
+ @staticmethod
+ def _extract_user_name(page):
+ return text.unescape(text.extract(page, "
", "<")[0] or "")
+
def login(self):
"""Login and obtain session cookies"""
if not self._check_cookies(self.cookienames):
@@ -119,9 +123,8 @@ class NijieExtractor(AsynchronousMixin, Extractor):
while True:
page = self.request(url, params=params, notfound="artist").text
- if not self.user_name:
- self.user_name = text.unescape(text.extract(
- page, '
', '<')[0] or "")
+ if self.user_name is None:
+ self.user_name = self._extract_user_name(page)
yield from text.extract_iter(page, 'illust_id="', '"')
if '", "さんの抜いた")[0] or "")
+
+
class NijieImageExtractor(NijieExtractor):
"""Extractor for a work/image from nijie.info"""
subcategory = "image"
diff --git a/scripts/supportedsites.py b/scripts/supportedsites.py
index c9129a08..84d08667 100755
--- a/scripts/supportedsites.py
+++ b/scripts/supportedsites.py
@@ -183,6 +183,9 @@ SUBCATEGORY_MAP = {
"mangadex": {
"feed" : "Followed Feed",
},
+ "nijie": {
+ "nuita" : "Nuita History",
+ },
"pinterest": {
"board": "",
"pinit": "pin.it Links",