Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add --format none as an alias for --skip-download #7397

Open
6 of 9 tasks
milahu opened this issue Jun 23, 2023 · 7 comments
Open
6 of 9 tasks

add --format none as an alias for --skip-download #7397

milahu opened this issue Jun 23, 2023 · 7 comments
Labels
enhancement New feature or request triage Untriaged issue

Comments

@milahu
Copy link

milahu commented Jun 23, 2023

DO NOT REMOVE OR SKIP THE ISSUE TEMPLATE

  • I understand that I will be blocked if I intentionally remove or skip any mandatory* field

Checklist

Provide a description that is worded well enough to be understood

expected:

let me use

yt-dlp --format none

instead of

yt-dlp --skip-download

--format none is the opposite of --format all (Select all formats separately)

Provide verbose output that clearly demonstrates the problem

  • Run your yt-dlp command with -vU flag added (yt-dlp -vU <your command line>)
  • If using API, add 'verbose': True to YoutubeDL params instead
  • Copy the WHOLE output (starting with [debug] Command-line config) and insert it below

Complete Verbose Output

No response

@milahu milahu added enhancement New feature or request triage Untriaged issue labels Jun 23, 2023
@pukkandan
Copy link
Member

Why?

@milahu
Copy link
Author

milahu commented Jun 23, 2023

to me, --format none is more obvious. i had to google to find --skip-download

@pukkandan
Copy link
Member

Not selecting any format is not same as not downloading any video. With --skip-download, a format is still selected and written to info-json etc. Just that it's not downloaded.

@stt
Copy link

stt commented Feb 15, 2024

With --skip-download, a format is still selected and written to info-json etc. Just that it's not downloaded.

Right, I'd like to have --format none that ignored anything to do with video and audio when I'm only interested in downloading subtitles or some metadata (and preferably it'd then also make it skip unnecessary API requests like m3u8 etc, but guess I can try doing --extractor-args 'youtube:player_skip=..' to get rid of them myself).

In general it should IMO be easier to make yt-dlp less noisy and to avoid "429 Too Many Requests" when going through sources with thousands of videos.

@dirkf
Copy link
Contributor

dirkf commented Feb 15, 2024

This doesn't sound completely deluded. In yt-dl we have this request.

An obvious, though solvable, problem is that none is a valid format_id that would have to be munged to avoid confusion. But would OP want to skip downloading manifests that might contain subtitles, etc?

@milahu
Copy link
Author

milahu commented Feb 15, 2024

none is a valid format_id

what format would that be?

skip downloading manifests that might contain subtitles, etc?

ideally, yt-dlp should fetch only what it needs
but i guess that fetching metadata/manifests/json/... is cheap in most cases

@dirkf
Copy link
Contributor

dirkf commented Feb 15, 2024

format_ids are initially generated by the site extractor and then disambiguated (including the special case where no ID was returned). Although YT IDs are numeric, other sites could generate any string value.

The problem with m3u8 and mpd is that you can't avoid 429 by skipping the manifest if you also want subtitles, unless the site happens to offer subtitles separately. So the feature may not achieve what you actually want for YT. Maybe more control could be offered through extractor-args, as you suggested, and possibly through new such args.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request triage Untriaged issue
Projects
None yet
Development

No branches or pull requests

4 participants