diff options
Diffstat (limited to 'gallery_dl/extractor/twibooru.py')
| -rw-r--r-- | gallery_dl/extractor/twibooru.py | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/gallery_dl/extractor/twibooru.py b/gallery_dl/extractor/twibooru.py index ec8ab35..355ca21 100644 --- a/gallery_dl/extractor/twibooru.py +++ b/gallery_dl/extractor/twibooru.py @@ -36,8 +36,9 @@ class TwibooruExtractor(BooruExtractor): post["date"] = text.parse_datetime( post["created_at"], "%Y-%m-%dT%H:%M:%S.%fZ") - name, sep, rest = post["name"].rpartition(".") - post["filename"] = name if sep else rest + if "name" in post: + name, sep, rest = post["name"].rpartition(".") + post["filename"] = name if sep else rest class TwibooruPostExtractor(TwibooruExtractor): |
