Open OnlineLearningTutorials opened 2 months ago
+1 if it is not already there (i don't use program much, but anyway)
If I am unsure what formats are available I use -f-
as the format, which will print all available formats and prompt the user to select their choice by entering the format ID. That might help as far as running yt-dlp multiple times goes.
It would be nice if yt-dlp could automatically present such a prompt if a selected format is unavailable (however one might define "unavailable" is up for debate), but I'm not sure how this would affect the default behaviour of the program.
as observeroftime02 said, yt-dlp -f - "URL"
is basically the fallback behavior that is being requested in the OP.
@OnlineLearningTutorials when you say you "want to give the user an option...", what are you developing/writing? A front-end? External script? There may already be a way to do what you want
@bashonly exactly what I want, I haven't notice that yt-dlp -f - "URL"
do the perfect job what I want.
one more thing suppose I give yt-dlp -f 136+139 "URL"
now if 139 is not present and 140 format is present, than is there a way to notify user that only 139 format is not found, the other possible format can be used are 140 and other
and prompt user to select format which is not found. Is there already something to do it.
because if yt-dlp just quit, than there is possibility that video format is not present, While I am not take audio a major factor, I can watch video with other similar audio. however worst audio
or wa
do that but there is two problem
DO NOT REMOVE OR SKIP THE ISSUE TEMPLATE
Checklist
Provide a description that is worded well enough to be understood
If requested format is not present than it will quit. I want to give the user a option to choose other format by giving available format list and if only one audio or video format is not found than it will show only for video or only for audio format. So that user not have to run yt-dlp again and again. If this is breaking the yt-dlp behavior with -F or -f option than we can give some other option, so that if a user run yt-dlp to download than he ensure the video would be download in one go even in other possible format and not to worry giving url next time.
I suggest other option than -F or -f because when we run yt-dlp in some script than it would be great to stop if the video format is not found. But if the video downloaded manually than it would be better give the possible available format rather than exit.
Provide verbose output that clearly demonstrates the problem
yt-dlp -vU <your command line>
)'verbose': True
toYoutubeDL
params instead[debug] Command-line config
) and insert it belowComplete Verbose Output