diff options
| author | 2025-10-07 02:11:52 -0400 | |
|---|---|---|
| committer | 2025-10-07 02:11:52 -0400 | |
| commit | 83e1e051b8c0e622ef5f61c1955c47b4bde95b57 (patch) | |
| tree | 544a434cb398d2adb8b8a2d553dc1c9a44b4ee1d /gallery_dl/extractor/simpcity.py | |
| parent | f1612851ae9fe68c7444fb31e786503868aeaa7c (diff) | |
| parent | bbe7fac03d881662a458e7fbf870c9d71f5257f4 (diff) | |
Update upstream source from tag 'upstream/1.30.9'
Update to upstream version '1.30.9'
with Debian dir 46cc56e13f05f4465cc64f67b4d7b775a95bd87a
Diffstat (limited to 'gallery_dl/extractor/simpcity.py')
| -rw-r--r-- | gallery_dl/extractor/simpcity.py | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/gallery_dl/extractor/simpcity.py b/gallery_dl/extractor/simpcity.py index 3354289..d8227fa 100644 --- a/gallery_dl/extractor/simpcity.py +++ b/gallery_dl/extractor/simpcity.py @@ -92,7 +92,7 @@ class SimpcityExtractor(Extractor): author = schema["author"] stats = schema["interactionStatistic"] url_t = schema["url"] - url_a = author["url"] + url_a = author.get("url") or "" thread = { "id" : url_t[url_t.rfind(".")+1:-1], @@ -104,8 +104,9 @@ class SimpcityExtractor(Extractor): "tags" : (schema["keywords"].split(", ") if "keywords" in schema else ()), "section" : schema["articleSection"], - "author" : author["name"], - "author_id" : url_a[url_a.rfind(".")+1:-1], + "author" : author.get("name") or "", + "author_id" : (url_a[url_a.rfind(".")+1:-1] if url_a else + (author.get("name") or "")[15:]), "author_url": url_a, } |
