From 323681eea2df800cc5f4f7ecbcb2db8e1513c13a Mon Sep 17 00:00:00 2001 From: KeksNino Date: Wed, 25 Jun 2025 20:51:09 +0200 Subject: [PATCH] removed comment --- core/uztracker_scraper.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/core/uztracker_scraper.py b/core/uztracker_scraper.py index 3c604d4..3ce0059 100644 --- a/core/uztracker_scraper.py +++ b/core/uztracker_scraper.py @@ -19,7 +19,7 @@ def scrape_uztracker(): if link.has_attr('href'): href = link['href'] post_url = f"https:{href}" if isinstance(href, str) and href.startswith("//") else href - if isinstance(post_url, str) and post_url.startswith("./viewtopic.php?t="): # please figure out why this .startswith filter is not working + if isinstance(post_url, str) and post_url.startswith("./viewtopic.php?t="): post_url = f"https://uztracker.net{post_url[1:]}" print(f"Found post link: {post_url}") found_links = True @@ -56,6 +56,8 @@ def get_magnet_link(post_url="https://uztracker.net/viewtopic.php?t=23897"): # and - if x exists, THEN check the next part # x.startswith('magnet:') - does x start with "magnet:"? +post_url = scrape_uztracker + if __name__ == "__main__": soup = scrape_uztracker() if soup: