Implement error handling for manifest fetching

Added error handling for fetching manifest URL.
This commit is contained in:
n0stal6ic
2026-07-14 10:33:16 -05:00
committed by GitHub
parent 36639068ad
commit d5a5bb693f
+5
View File
@@ -296,9 +296,14 @@ class HULU(Service):
manifest_url = playlist["stream_url"]
self.log.info(f"DASH: {manifest_url}")
try:
mpd_resp = self.session.get(manifest_url)
mpd_resp.raise_for_status()
mpd_text = mpd_resp.text
except Exception as e:
last_reason = f"failed to fetch {codec} manifest: {e}"
self.log.warning(f" - {last_reason}; trying next codec.")
continue
if "disney" in manifest_url:
mpd_text = self._normalize_ad_markers(mpd_text)