fix: "Requested format is not available" error on URL input#17
Open
oleg-deezus wants to merge 1 commit into
Open
fix: "Requested format is not available" error on URL input#17oleg-deezus wants to merge 1 commit into
oleg-deezus wants to merge 1 commit into
Conversation
When fetching video info via --dump-json, yt-dlp uses its internal default format selector which could fail with 'Requested format is not available' on some videos. This prevented the format selection UI from ever appearing. Adding -f bestvideo+bestaudio/best gives yt-dlp a permissive format to resolve during info fetching, ensuring metadata is always returned. Fixes alinuxpengui#13
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Fix for #13
Problem
When pasting a YouTube URL, Macabolic immediately throws:
The format/quality selection UI never appears and the download never starts.
Root Cause
fetchSingleVideoInfo()callsyt-dlp --dump-jsonwithout an explicit-fformat flag.Without it, yt-dlp uses its internal default format selector which can fail on certain
videos before any metadata is returned. This kills the flow before the user ever sees
the format picker.
Fix
Add
-f bestvideo+bestaudio/bestto the--dump-jsoncall infetchSingleVideoInfo().This gives yt-dlp a permissive format to resolve during info fetching, ensuring metadata
is always returned so the user can proceed to format selection.
Testing