[spectrumnexus] extract manga metadata
This commit is contained in:
@@ -22,11 +22,14 @@ class SpectrumnexusMangaExtractor(MangaExtractor):
|
|||||||
})]
|
})]
|
||||||
|
|
||||||
def chapters(self, page):
|
def chapters(self, page):
|
||||||
|
results = []
|
||||||
|
manga = text.extract(page, '<title>', ' · ')[0]
|
||||||
page = text.extract(page, 'class="selectchapter"', '</select>')[0]
|
page = text.extract(page, 'class="selectchapter"', '</select>')[0]
|
||||||
return [
|
for chapter in text.extract_iter(page, '<option value="', '"'):
|
||||||
self.url + "?ch=" + chapter.replace(" ", "+")
|
results.append((self.url + "?ch=" + chapter.replace(" ", "+"), {
|
||||||
for chapter in text.extract_iter(page, '<option value="', '"')
|
"manga": manga, "chapter_string": chapter,
|
||||||
]
|
}))
|
||||||
|
return results
|
||||||
|
|
||||||
|
|
||||||
class SpectrumnexusChapterExtractor(AsynchronousExtractor):
|
class SpectrumnexusChapterExtractor(AsynchronousExtractor):
|
||||||
|
|||||||
Reference in New Issue
Block a user