fix(remote): report a missing title list and a refused track URI clearly

A service returning no titles now fails with a service error instead of an unsupported "other" title, and the init segment read names the HTTP status.
This commit is contained in:
imSp4rky
2026-09-25 14:37:18 -06:00
parent 1883386539
commit c071a00ba6
3 changed files with 36 additions and 8 deletions
+3
View File
@@ -1095,6 +1095,9 @@ class Track:
else:
init_data = None
s = session.get(url, stream=True)
if not s.ok:
s.close()
raise ValueError(f"Track URI returned HTTP {s.status_code}")
for chunk in s.iter_content(content_length):
init_data = chunk
break