From 55c64cad4b83a3e9426fe1db97e6d68fa68b16bb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mike=20F=C3=A4hrmann?= Date: Tue, 28 Nov 2017 19:35:47 +0100 Subject: [PATCH] [khinsider] fix filename extension and test-pattern --- CHANGELOG.md | 2 ++ gallery_dl/extractor/khinsider.py | 11 +++++------ gallery_dl/extractor/rebeccablacktech.py | 4 ++-- gallery_dl/version.py | 2 +- 4 files changed, 10 insertions(+), 9 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 90342928..16d6b40e 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,7 @@ # Changelog +## Unreleased + ## 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) - Improved retry behavior for failed HTTP requests diff --git a/gallery_dl/extractor/khinsider.py b/gallery_dl/extractor/khinsider.py index 21d0f591..f8330273 100644 --- a/gallery_dl/extractor/khinsider.py +++ b/gallery_dl/extractor/khinsider.py @@ -21,8 +21,8 @@ class KhinsiderSoundtrackExtractor(AsynchronousExtractor): r"game-soundtracks/album/([^/?&#]+)"] test = [(("http://downloads.khinsider.com/game-soundtracks/" "album/horizon-riders-wii-"), { - "pattern": ("https?://\d+\.\d+\.\d+\.\d+/ost/horizon-riders-wii-/" - "[^/]+/horizon-riders-wii-full-soundtrack\.mp3"), + "pattern": (r"https?://\d+\.\d+\.\d+\.\d+/ost/horizon-riders-wii/[^/]+" + r"/Horizon%20Riders%20Wii%20-%20Full%20Soundtrack\.mp3"), "count": 1, "keyword": "d91cf3edee6713b536eaf3995743f0be7dc72f68", })] @@ -63,7 +63,6 @@ class KhinsiderSoundtrackExtractor(AsynchronousExtractor): for num, url in enumerate(text.extract_iter( page, '", "") - url , pos = text.extract( - page, '