From 2b77c1360aaae4f68fcdf64a1314ce16b03c03e4 Mon Sep 17 00:00:00 2001 From: Anon Date: Tue, 30 Aug 2022 22:29:13 -0700 Subject: [PATCH] Increased posts.json limit and now returns full profile dictionary --- src/danbooru_backend.py | 13 +++---------- 1 file changed, 3 insertions(+), 10 deletions(-) diff --git a/src/danbooru_backend.py b/src/danbooru_backend.py index 021dcab..07f22a7 100644 --- a/src/danbooru_backend.py +++ b/src/danbooru_backend.py @@ -2,9 +2,7 @@ # TODO: # Update to enable multiple file downloads -# Update to include safe/nsfw filter -import magic import requests import os @@ -52,7 +50,8 @@ class downloader: username = None password = None tmp = None - limit=50 + # Limit for posts.json is 200 + limit=100 def __init__(self, username=None, password=None, tmp="/tmp"): self.username = username @@ -113,13 +112,7 @@ class downloader: r = { # Add profile to dictioanry - "name": profile["name"], - "backend": profile["backend"], - "tags": profile["tags"], - "message": profile["message"], - "message_nsfw": profile["message_nsfw"], - "force_nsfw": profile["force_nsfw"], - "banned_tags": profile["banned_tags"], + "profile": profile, # Query results "search_url": search_url,