from app.connectors.dooplay import _LIST_ITEM_RE def _urls(html): return [m.group("url") or m.group("url2") for m in _LIST_ITEM_RE.finditer(html)] def test_mangoporn_class_before_href(): # mangoporn od 2026-10: klasa przed href, wczesniej wzorzec nie lapal nic. html = ( '
' '' '' ) assert _urls(html) == [ "https://mangoporn.net/movies/major-creampie/", "https://mangoporn.net/movies/major-creampie/", ] def test_old_layouts_still_match(): assert _urls('x') == ["https://mangoporn.net/movies/old-one/"] assert _urls('') == ["https://streamporn.li/watch-xxx-a/"]