From c2df1cde518b0865b87402a35ee6c1b84228d862 Mon Sep 17 00:00:00 2001 From: SpecialKeta <148014803+SpecialKeta@users.noreply.github.com> Date: Tue, 15 Oct 2024 10:25:51 +0200 Subject: [PATCH] IAFD fix careerlength performer (#2066) --- scrapers/IAFD/IAFD.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/scrapers/IAFD/IAFD.py b/scrapers/IAFD/IAFD.py index 1950323ca..556c4a3c1 100644 --- a/scrapers/IAFD/IAFD.py +++ b/scrapers/IAFD/IAFD.py @@ -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("-")), )