We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 3deb46d commit 1807a43Copy full SHA for 1807a43
nazurin/sites/danbooru/api.py
@@ -56,8 +56,8 @@ def parse_post(self, post) -> Illust:
56
title, filename = self._get_names(post)
57
imgs = []
58
files = []
59
+ destination, filename = self.get_storage_dest(post, filename)
60
if is_image(url):
- destination, filename = self.get_storage_dest(post, filename)
61
imgs.append(
62
Image(
63
filename,
@@ -70,7 +70,7 @@ def parse_post(self, post) -> Illust:
70
)
71
72
else: # danbooru has non-image posts, such as #animated
73
- files.append(File(filename, url))
+ files.append(File(filename, url, destination))
74
75
# Build media caption
76
tags = post["tag_string"].split(" ")
0 commit comments