fix(remote): forward track selection params to server and improve error display

Forward range, vcodec, quality, and best_available from client to server so services fetch the correct manifests (e.g. HDR10 instead of SDR).
Exit with error when no video tracks match the requested range filter.
Use Rich logger for remote API errors instead of plain click.ClickException.
This commit is contained in:
imSp4rky
2026-03-30 05:20:32 +00:00
parent 1a6f2c5b7e
commit d3594ca67c
3 changed files with 60 additions and 4 deletions
+3
View File
@@ -1561,6 +1561,9 @@ class dl:
missing_ranges = [r for r in range_ if not any(x.range == r for x in title.tracks.videos)]
for color_range in missing_ranges:
self.log.warning(f"Skipping {color_range.name} video tracks as none are available.")
if not title.tracks.videos:
self.log.error(f"There's no {', '.join(r.name for r in range_)} Video Track...")
sys.exit(1)
if vbitrate:
if any(r == Video.Range.HYBRID for r in range_):