summaryrefslogtreecommitdiffstats
path: root/gallery_dl/extractor/derpibooru.py
diff options
context:
space:
mode:
Diffstat (limited to 'gallery_dl/extractor/derpibooru.py')
-rw-r--r--gallery_dl/extractor/derpibooru.py11
1 files changed, 6 insertions, 5 deletions
diff --git a/gallery_dl/extractor/derpibooru.py b/gallery_dl/extractor/derpibooru.py
index 3b20fa5..94f3729 100644
--- a/gallery_dl/extractor/derpibooru.py
+++ b/gallery_dl/extractor/derpibooru.py
@@ -28,8 +28,7 @@ class DerpibooruExtractor(BooruExtractor):
@staticmethod
def _prepare(post):
- post["date"] = text.parse_datetime(
- post["created_at"], "%Y-%m-%dT%H:%M:%S")
+ post["date"] = text.parse_datetime(post["created_at"])
@staticmethod
def _extended_tags(post):
@@ -46,6 +45,8 @@ class DerpibooruExtractor(BooruExtractor):
filter_id = self.config("filter")
if filter_id:
params["filter_id"] = filter_id
+ elif not api_key:
+ params["filter_id"] = "56027" # "Everything" filter
while True:
data = self.request(url, params=params).json()
@@ -67,7 +68,7 @@ class DerpibooruPostExtractor(DerpibooruExtractor):
"animated": False,
"aspect_ratio": 1.0,
"comment_count": int,
- "created_at": "2012-01-02T03:12:33",
+ "created_at": "2012-01-02T03:12:33Z",
"date": "dt:2012-01-02 03:12:33",
"deletion_reason": None,
"description": "",
@@ -76,7 +77,7 @@ class DerpibooruPostExtractor(DerpibooruExtractor):
"duration": 0.04,
"extension": "png",
"faves": int,
- "first_seen_at": "2012-01-02T03:12:33",
+ "first_seen_at": "2012-01-02T03:12:33Z",
"format": "png",
"height": 900,
"hidden_from_users": False,
@@ -99,7 +100,7 @@ class DerpibooruPostExtractor(DerpibooruExtractor):
"tag_ids": list,
"tags": list,
"thumbnails_generated": True,
- "updated_at": "2020-05-28T13:14:07",
+ "updated_at": "2020-05-28T13:14:07Z",
"uploader": "Clover the Clever",
"uploader_id": 211188,
"upvotes": int,