diff options
| author | 2025-08-17 20:18:19 -0400 | |
|---|---|---|
| committer | 2025-08-17 20:18:19 -0400 | |
| commit | 3c1539bde1b47fff0ba81c9d92801fa700fedc3b (patch) | |
| tree | 50975f87c1901120c4592e342248937c8221251d /gallery_dl/extractor/newgrounds.py | |
| parent | 3d18761f620a294ea6c5bff13c5994b93b29f3ed (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.py | 4 |
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 |
