[newgrounds] handle embeds without scheme (#1033)
This commit is contained in:
@@ -1,5 +1,7 @@
|
|||||||
# Changelog
|
# Changelog
|
||||||
|
|
||||||
|
## Unreleased
|
||||||
|
|
||||||
## 1.15.1 - 2020-10-11
|
## 1.15.1 - 2020-10-11
|
||||||
### Additions
|
### Additions
|
||||||
- [hentaicafe] add `manga_id` metadata field ([#1036](https://github.com/mikf/gallery-dl/issues/1036))
|
- [hentaicafe] add `manga_id` metadata field ([#1036](https://github.com/mikf/gallery-dl/issues/1036))
|
||||||
|
|||||||
@@ -49,8 +49,8 @@ class NewgroundsExtractor(Extractor):
|
|||||||
post["_comment"], 'data-smartload-src="', '"'), 1):
|
post["_comment"], 'data-smartload-src="', '"'), 1):
|
||||||
post["num"] = num
|
post["num"] = num
|
||||||
post["_index"] = "{}_{:>02}".format(post["index"], num)
|
post["_index"] = "{}_{:>02}".format(post["index"], num)
|
||||||
text.nameext_from_url(url, post)
|
url = text.ensure_http_scheme(url)
|
||||||
yield Message.Url, url, post
|
yield Message.Url, url, text.nameext_from_url(url, post)
|
||||||
else:
|
else:
|
||||||
self.log.warning(
|
self.log.warning(
|
||||||
"Unable to get download URL for '%s'", post_url)
|
"Unable to get download URL for '%s'", post_url)
|
||||||
|
|||||||
@@ -6,4 +6,4 @@
|
|||||||
# it under the terms of the GNU General Public License version 2 as
|
# it under the terms of the GNU General Public License version 2 as
|
||||||
# published by the Free Software Foundation.
|
# published by the Free Software Foundation.
|
||||||
|
|
||||||
__version__ = "1.15.1"
|
__version__ = "1.15.2-dev"
|
||||||
|
|||||||
Reference in New Issue
Block a user