fmab777 commited on
Commit
ee57fe0
Β·
verified Β·
1 Parent(s): f25ac38

Update main.py

Browse files
Files changed (1) hide show
  1. main.py +11 -11
main.py CHANGED
@@ -598,17 +598,17 @@ async def _run_apify_actor_for_web_content(url: str, api_token: str, actor_id: s
598
  # --- END ADDED PROXY CONFIG ---
599
  }
600
  logger.debug(f"{log_prefix} Using input format for Default YT Actor ({APIFY_ACTOR_ID}) with Residential Proxy")
601
- elif actor_id == APIFY_STRUCTURED_YT_ACTOR_ID:
602
- # Input specific to the Structured YT Actor – wrap in a list even for a single URL
603
- run_input = {
604
- "urls": [ url ], # ← wrap your URL in a list
605
- "proxyConfiguration": {
606
- "useApifyProxy": True,
607
- "apifyProxyGroups": ["RESIDENTIAL"],
608
- },
609
- "maxRetries": 5,
610
- }
611
- logger.debug(f"{log_prefix} Using list input format for Structured YT Actor ({actor_id})")
612
  # --- END ADDED PROXY CONFIG ---
613
  }
614
  logger.debug(f"{log_prefix} Using input format for Structured YT Actor ({APIFY_STRUCTURED_YT_ACTOR_ID}) with Residential Proxy")
 
598
  # --- END ADDED PROXY CONFIG ---
599
  }
600
  logger.debug(f"{log_prefix} Using input format for Default YT Actor ({APIFY_ACTOR_ID}) with Residential Proxy")
601
+ elif actor_id == APIFY_STRUCTURED_YT_ACTOR_ID:
602
+ # Input specific to the Structured YT Actor – wrap your single URL in a list
603
+ run_input = {
604
+ "urls": [url], # ← wrap your URL in a list
605
+ "proxyConfiguration": {
606
+ "useApifyProxy": True,
607
+ "apifyProxyGroups": ["RESIDENTIAL"],
608
+ },
609
+ "maxRetries": 5,
610
+ }
611
+ logger.debug(f"{log_prefix} Using list input format for Structured YT Actor ({actor_id}) with Residential Proxy")
612
  # --- END ADDED PROXY CONFIG ---
613
  }
614
  logger.debug(f"{log_prefix} Using input format for Structured YT Actor ({APIFY_STRUCTURED_YT_ACTOR_ID}) with Residential Proxy")