[khinsider] fix extraction

This commit is contained in:
Mike Fährmann
2017-09-27 21:14:22 +02:00
parent 26a866e7d8
commit 85a2b2ae59
3 changed files with 3 additions and 4 deletions

View File

@@ -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",
})]

View File

@@ -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(

View File

@@ -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