various smaller changes/additions

This commit is contained in:
Mike Fährmann
2017-12-05 23:29:11 +01:00
parent 4fb6803fa6
commit 291369eab2
5 changed files with 10 additions and 16 deletions

View File

@@ -58,9 +58,9 @@ class KhinsiderSoundtrackExtractor(AsynchronousExtractor):
def get_album_tracks(self, page):
"""Collect url and metadata for all tracks of a soundtrack"""
page = text.extract(page, '<table class="songlist">', '</table>')[0]
page = text.extract(page, '<table id="songlist">', '</table>')[0]
for num, url in enumerate(text.extract_iter(
page, ' href="', '"'), 1):
page, '<td class="clickable-row"><a href="', '"'), 1):
page = self.request(url, encoding="utf-8").text
url = text.extract(
page, '<p><a style="color: #21363f;" href="', '"')[0]