[khinsider] fix filename extension and test-pattern
This commit is contained in:
@@ -1,5 +1,7 @@
|
|||||||
# Changelog
|
# Changelog
|
||||||
|
|
||||||
|
## Unreleased
|
||||||
|
|
||||||
## 1.0.2 - 2017-11-24
|
## 1.0.2 - 2017-11-24
|
||||||
- Added an option to set a [custom user-agent string](https://github.com/mikf/gallery-dl/blob/master/docs/configuration.rst#extractoruser-agent)
|
- Added an option to set a [custom user-agent string](https://github.com/mikf/gallery-dl/blob/master/docs/configuration.rst#extractoruser-agent)
|
||||||
- Improved retry behavior for failed HTTP requests
|
- Improved retry behavior for failed HTTP requests
|
||||||
|
|||||||
@@ -21,8 +21,8 @@ class KhinsiderSoundtrackExtractor(AsynchronousExtractor):
|
|||||||
r"game-soundtracks/album/([^/?&#]+)"]
|
r"game-soundtracks/album/([^/?&#]+)"]
|
||||||
test = [(("http://downloads.khinsider.com/game-soundtracks/"
|
test = [(("http://downloads.khinsider.com/game-soundtracks/"
|
||||||
"album/horizon-riders-wii-"), {
|
"album/horizon-riders-wii-"), {
|
||||||
"pattern": ("https?://\d+\.\d+\.\d+\.\d+/ost/horizon-riders-wii-/"
|
"pattern": (r"https?://\d+\.\d+\.\d+\.\d+/ost/horizon-riders-wii/[^/]+"
|
||||||
"[^/]+/horizon-riders-wii-full-soundtrack\.mp3"),
|
r"/Horizon%20Riders%20Wii%20-%20Full%20Soundtrack\.mp3"),
|
||||||
"count": 1,
|
"count": 1,
|
||||||
"keyword": "d91cf3edee6713b536eaf3995743f0be7dc72f68",
|
"keyword": "d91cf3edee6713b536eaf3995743f0be7dc72f68",
|
||||||
})]
|
})]
|
||||||
@@ -63,7 +63,6 @@ class KhinsiderSoundtrackExtractor(AsynchronousExtractor):
|
|||||||
for num, url in enumerate(text.extract_iter(
|
for num, url in enumerate(text.extract_iter(
|
||||||
page, '<td><a href="', '"'), 1):
|
page, '<td><a href="', '"'), 1):
|
||||||
page = self.request(url, encoding="utf-8").text
|
page = self.request(url, encoding="utf-8").text
|
||||||
name, pos = text.extract(page, "Song name: <b>", "</b>")
|
url = text.extract(
|
||||||
url , pos = text.extract(
|
page, '<p><a style="color: #21363f;" href="', '"')[0]
|
||||||
page, '<p><a style="color: #21363f;" href="', '"', pos)
|
yield url, text.nameext_from_url(url, {"num": num})
|
||||||
yield url, text.nameext_from_url(name, {"num": num})
|
|
||||||
|
|||||||
@@ -19,9 +19,9 @@ class RebeccablacktechThreadExtractor(chan.FoolfuukaThreadExtractor):
|
|||||||
r"|rbt\.asia)/([^/]+)/thread/(\d+)"]
|
r"|rbt\.asia)/([^/]+)/thread/(\d+)"]
|
||||||
test = [
|
test = [
|
||||||
("https://rbt.asia/g/thread/61487650/", {
|
("https://rbt.asia/g/thread/61487650/", {
|
||||||
"url": "484f20ea9b9b58f6abb0cd37eaeab22431ac22c2",
|
"url": "fadd274b25150a1bdf03a40c58db320fa3b617c4",
|
||||||
}),
|
}),
|
||||||
("https://archive.rebeccablacktech.com/g/thread/61487650/", {
|
("https://archive.rebeccablacktech.com/g/thread/61487650/", {
|
||||||
"url": "484f20ea9b9b58f6abb0cd37eaeab22431ac22c2",
|
"url": "fadd274b25150a1bdf03a40c58db320fa3b617c4",
|
||||||
}),
|
}),
|
||||||
]
|
]
|
||||||
|
|||||||
@@ -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.0.2"
|
__version__ = "1.0.3-dev"
|
||||||
|
|||||||
Reference in New Issue
Block a user