diff --git a/gallery_dl/extractor/khinsider.py b/gallery_dl/extractor/khinsider.py index f8330273..1ea82d91 100644 --- a/gallery_dl/extractor/khinsider.py +++ b/gallery_dl/extractor/khinsider.py @@ -44,6 +44,8 @@ class KhinsiderSoundtrackExtractor(AsynchronousExtractor): def get_job_metadata(self, page): """Collect metadata for extractor-job""" + if "Download all songs at once:" not in page: + raise exception.NotFoundError("soundtrack") data = text.extract_all(page, ( ("album", "Album name: ", ""), ("count", "Number of Files: ", ""), @@ -56,10 +58,7 @@ class KhinsiderSoundtrackExtractor(AsynchronousExtractor): def get_album_tracks(self, page): """Collect url and metadata for all tracks of a soundtrack""" - pos = page.find("Download all songs at once:") - if pos == -1: - raise exception.NotFoundError("soundtrack") - page = text.extract(page, '