Skip to content

Commit

Permalink
IAFD fix careerlength performer (#2066)
Browse files Browse the repository at this point in the history
  • Loading branch information
SpecialKeta authored Oct 15, 2024
1 parent 08fb3ee commit c2df1cd
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions scrapers/IAFD/IAFD.py
Original file line number Diff line number Diff line change
Expand Up @@ -234,9 +234,9 @@ def performer_aliases(tree):
def performer_careerlength(tree):
return maybe(
tree.xpath(
'//div/p[@class="biodata"][contains(text(),"Started around")]/text()'
'//div/p[@class="bioheading"][contains(text(), "Active")][1]/following-sibling::p[1]/text()'
),
lambda c: re.sub(r"(\D+\d\d\D+)$", "", c),
lambda c: " - ".join(re.sub(r"(\D+\d\d\D+)$", "", c.strip()).split("-")),
)


Expand Down

0 comments on commit c2df1cd

Please sign in to comment.