|
1 | 1 | # =============================================================================
|
2 |
| -# Soluify.com | Your #1 IT Problem Solver | {SeerrBridge v0.3.4} |
| 2 | +# Soluify.com | Your #1 IT Problem Solver | {SeerrBridge v0.3.5} |
3 | 3 | # =============================================================================
|
4 | 4 | # __ _
|
5 | 5 | # (_ _ | .(_
|
@@ -852,10 +852,18 @@ def search_on_debrid(movie_title, driver):
|
852 | 852 |
|
853 | 853 | # Step 2: Check if any red buttons (RD 100%) exist and verify the title for each
|
854 | 854 | try:
|
855 |
| - red_buttons_elements = driver.find_elements(By.XPATH, "//button[contains(@class, 'bg-red-900/30')]") |
856 |
| - logger.info(f"Found {len(red_buttons_elements)} red button(s) (100% RD). Verifying titles before deciding to skip.") |
| 855 | + # Find all red buttons |
| 856 | + all_red_buttons_elements = driver.find_elements(By.XPATH, "//button[contains(@class, 'bg-red-900/30')]") |
| 857 | + |
| 858 | + # Filter out the buttons that contain "Report" in their text |
| 859 | + red_buttons_elements = [button for button in all_red_buttons_elements if "Report" not in button.text] |
| 860 | + |
| 861 | + # Log the count of filtered red buttons |
| 862 | + logger.info(f"Found {len(red_buttons_elements)} red button(s) (100% RD) without 'Report'. Verifying titles.") |
857 | 863 |
|
858 | 864 | for i, red_button_element in enumerate(red_buttons_elements, start=1):
|
| 865 | + if "Report" in red_button_element.text: |
| 866 | + continue |
859 | 867 | logger.info(f"Checking red button {i}...")
|
860 | 868 |
|
861 | 869 | try:
|
@@ -960,10 +968,18 @@ def search_on_debrid(movie_title, driver):
|
960 | 968 |
|
961 | 969 | # Step 7: Check if any red button (RD 100%) exists again before continuing
|
962 | 970 | try:
|
963 |
| - red_buttons_elements = driver.find_elements(By.XPATH, "//button[contains(@class, 'bg-red-900/30')]") |
964 |
| - logger.info(f"Found {len(red_buttons_elements)} red button(s) (100% RD). Verifying titles before deciding to skip.") |
| 971 | + # Find all red buttons |
| 972 | + all_red_buttons_elements = driver.find_elements(By.XPATH, "//button[contains(@class, 'bg-red-900/30')]") |
| 973 | + |
| 974 | + # Filter out the buttons that contain "Report" in their text |
| 975 | + red_buttons_elements = [button for button in all_red_buttons_elements if "Report" not in button.text] |
| 976 | + |
| 977 | + # Log the count of filtered red buttons |
| 978 | + logger.info(f"Found {len(red_buttons_elements)} red button(s) (100% RD) without 'Report'. Verifying titles.") |
965 | 979 |
|
966 | 980 | for i, red_button_element in enumerate(red_buttons_elements, start=1):
|
| 981 | + if "Report" in red_button_element.text: |
| 982 | + continue |
967 | 983 | logger.info(f"Checking red button {i}...")
|
968 | 984 |
|
969 | 985 | try:
|
|
0 commit comments