Skip to content

Commit

Permalink
[warosu] fix extraction
Browse files Browse the repository at this point in the history
  • Loading branch information
mikf committed Jul 26, 2024
1 parent d7a2c73 commit 0fcd603
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions gallery_dl/extractor/warosu.py
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ def posts(self, page):
def parse(self, post):
"""Build post object by extracting data from an HTML post"""
data = self._extract_post(post)
if "<span> File:" in post and self._extract_image(post, data):
if "<span class=fileinfo>" in post and self._extract_image(post, data):
part = data["image"].rpartition("/")[2]
data["tim"], _, data["extension"] = part.partition(".")
data["ext"] = "." + data["extension"]
Expand All @@ -83,7 +83,7 @@ def _extract_post(self, post):

def _extract_image(self, post, data):
extr = text.extract_from(post)
data["fsize"] = extr("<span> File: ", ", ")
data["fsize"] = extr("<span class=fileinfo> File: ", ", ")
data["w"] = extr("", "x")
data["h"] = extr("", ", ")
data["filename"] = text.unquote(extr(
Expand Down

0 comments on commit 0fcd603

Please sign in to comment.