[khinsider] fix extraction

pull/54/head
Mike Fährmann 7 years ago
parent 26a866e7d8
commit 85a2b2ae59
No known key found for this signature in database
GPG Key ID: 5680CA389D365A88

@ -292,7 +292,7 @@ class DeviantartCollectionExtractor(DeviantartExtractor):
pattern = [r"(?:https?://)?([^.]+)\.deviantart\.com"
r"/favourites/(\d+)/([^/?&#]+)"]
test = [("http://rosuuri.deviantart.com/favourites/58951174/Useful", {
"url": "d5d930374c0f993437c70624c5e0348e9f23f601",
"url": "f43b202011483e06998db1891e4b62381fabd64a",
"keyword": "36f8e18cf6cf59c4eb17141b7f56fc075ab3b68c",
})]

@ -59,8 +59,8 @@ class KhinsiderSoundtrackExtractor(AsynchronousExtractor):
if pos == -1:
raise exception.NotFoundError("soundtrack")
num = 0
for url in text.extract_iter(page, '<tr>\r\n\t\t<td><a href="',
'"', pos):
for url in text.extract_iter(
page, '<tr>\r\n\r\n\t \t<td><a href="', '"', pos):
page = self.request(url, encoding="utf-8").text
name, pos = text.extract(page, "Song name: <b>", "</b>")
url , pos = text.extract(

@ -69,7 +69,6 @@ skip = [
"imgtrex",
"luscious", # "high load"
"pawoo",
"coreimg", # "Name or service not known"
"mangahere", # unstable; sometimes sends empty responses
]
# enable selective testing for direct calls

Loading…
Cancel
Save