(Feb-26-2024, 02:41 PM)ejKDE Wrote: even though function is called without arguments?You never call the function
format_selector
yourself, it's called internally from YoutubeDL.download
and it expects that it takes ctx
argumentFrom the docstring for YoutubeDL class
Quote: format: Video format code. see "FORMAT SELECTION" for more details.
You can also pass a function. The function takes 'ctx' as
argument and returns the formats to download
If you can't explain it to a six year old, you don't understand it yourself, Albert Einstein
How to Ask Questions The Smart Way: link and another link
Create MCV example
Debug small programs
How to Ask Questions The Smart Way: link and another link
Create MCV example
Debug small programs