summaryrefslogtreecommitdiffstats
path: root/gallery_dl/extractor/warosu.py
diff options
context:
space:
mode:
authorLibravatarUnit 193 <unit193@unit193.net>2022-11-22 04:28:38 -0500
committerLibravatarUnit 193 <unit193@unit193.net>2022-11-22 04:28:38 -0500
commit7af5cc29d1c02d20a6890b7b7ba78ab41532a763 (patch)
tree4f0366e5653074c7eb31ac7ca59a1ee55f2d736e /gallery_dl/extractor/warosu.py
parente59d46ecda74190381b1d2725b0bd9df5c0be8d8 (diff)
New upstream version 1.24.0.upstream/1.24.0
Diffstat (limited to 'gallery_dl/extractor/warosu.py')
-rw-r--r--gallery_dl/extractor/warosu.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/gallery_dl/extractor/warosu.py b/gallery_dl/extractor/warosu.py
index 7f51732..677680f 100644
--- a/gallery_dl/extractor/warosu.py
+++ b/gallery_dl/extractor/warosu.py
@@ -57,8 +57,8 @@ class WarosuThreadExtractor(Extractor):
def get_metadata(self, page):
"""Collect metadata for extractor-job"""
- boardname = text.extract(page, "<title>", "</title>")[0]
- title = text.extract(page, 'filetitle" itemprop="name">', '<')[0]
+ boardname = text.extr(page, "<title>", "</title>")
+ title = text.extr(page, 'filetitle" itemprop="name">', '<')
return {
"board": self.board,
"board_name": boardname.rpartition(" - ")[2],
@@ -68,7 +68,7 @@ class WarosuThreadExtractor(Extractor):
def posts(self, page):
"""Build a list of all post-objects"""
- page = text.extract(page, '<div class="content">', '<table>')[0]
+ page = text.extr(page, '<div class="content">', '<table>')
needle = '<table itemscope itemtype="http://schema.org/Comment">'
return [self.parse(post) for post in page.split(needle)]