summaryrefslogtreecommitdiffstats
path: root/gallery_dl/extractor/newgrounds.py
diff options
context:
space:
mode:
authorLibravatarUnit 193 <unit193@unit193.net>2025-08-17 20:18:19 -0400
committerLibravatarUnit 193 <unit193@unit193.net>2025-08-17 20:18:19 -0400
commit3c1539bde1b47fff0ba81c9d92801fa700fedc3b (patch)
tree50975f87c1901120c4592e342248937c8221251d /gallery_dl/extractor/newgrounds.py
parent3d18761f620a294ea6c5bff13c5994b93b29f3ed (diff)
New upstream version 1.30.4.upstream/1.30.4
Diffstat (limited to 'gallery_dl/extractor/newgrounds.py')
-rw-r--r--gallery_dl/extractor/newgrounds.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/gallery_dl/extractor/newgrounds.py b/gallery_dl/extractor/newgrounds.py
index de96aa0..c42453f 100644
--- a/gallery_dl/extractor/newgrounds.py
+++ b/gallery_dl/extractor/newgrounds.py
@@ -224,6 +224,10 @@ class NewgroundsExtractor(Extractor):
"width" : text.parse_int(full('width="', '"')),
"height" : text.parse_int(full('height="', '"')),
}
+
+ if not data["url"]:
+ data["url"] = extr('<a href="', '"')
+
index = data["url"].rpartition("/")[2].partition("_")[0]
data["index"] = text.parse_int(index)
data["_index"] = index