diff --git a/cbz_downloader.py b/cbz_downloader.py index 330351b..0d70414 100644 --- a/cbz_downloader.py +++ b/cbz_downloader.py @@ -43,7 +43,7 @@ def login_with_selenium(driver, email, password): Returns: True if login successful, False otherwise """ - login_url = "https://shop.2000ad.com/account/sign-in" + login_url = "https://shop.2000ad.com/login" print("🔐 Navigating to login page...") driver.get(login_url) @@ -217,6 +217,12 @@ def download_cbz_files(email, password, output_dir='downloads', headless=True): # Get product name for better logging product_name = product.get('data-name', 'Unknown') + # Skip products with placeholder/error text + if '[Pen_-productVersion' in product_name or 'productVersion' in product_name: + print(f"⏭️ Skipping (placeholder/error in name): {product_name}") + skipped += 1 + continue + # Get publication date release_date = product.get('data-released', '') date_str = '' @@ -330,4 +336,4 @@ if __name__ == "__main__": # Run the download # Set headless=False if you want to see the browser window - download_cbz_files(email, password, output_dir=output_dir, headless=True) \ No newline at end of file + download_cbz_files(email, password, output_dir=output_dir, headless=True)