Comments (5)
This is domumentation about that exact case: How do I download a video starting with a -
?
from yt-dlp.
Add --
before you start with the list of IDs to indicate to yt-dlp that no more regular arguments follow.
So instead of
yt-dlp -F "-40JTHtTjCk"
You would run
yt-dlp -F -- "-40JTHtTjCk"
Alternatively, you can use -a
to load in a list of URLs/IDs (docs).
from yt-dlp.
THANKS!
from yt-dlp.
Is the --
behaviour actually documented?
The optparse documentation says that its default behaviour is to support "... only the most common command-line syntax and semantics conventionally used under Unix" and then summarises these with no mention of the --
convention for ending the option list.
yt-dlp overrides the default argument processing with parse_known_args()
but both implement the --
option break.
Since this isn't an obvious feature of the program or Python-based programs generally (nor is it universal even in GNU/POSIX despite ...), it should be in the help's option list, both here and upstream. Presumably the automatic generation of the list skips it as a prefix of other options?
from yt-dlp.
Wouldn't it be better to document the --
option internally?
It looks like the only easy way (say, without patching .print_help()) to do that would use the
description/
epilogoptions of
_YoutubeDLOptionParser/
optparse.OptionParser. yt-dl could use
epilog` but that's spoken for here. Maybe:
description='Use option -- to force treatment of all subsequent items as URLs',
from yt-dlp.
Related Issues (20)
- Get the output file name in lower case HOT 1
- Add support for site https://listeamed.net/ HOT 1
- The same link and command download much larger files on Linux than on Windows. HOT 4
- Ignoring duplicate input URLs, keeping deleted YouTube comments, checking video availability HOT 1
- [YouTube] Subtitles fail to download on age restricted video HOT 2
- nday.club HOT 3
- AdultSwim: 404 errors on all payload fragments for certain videos HOT 7
- Download thumbnails for playlist items when using `--flat-playlist` HOT 1
- [TikTok] Support for Collections HOT 1
- chatturbate
- tiktok dosnt work everytime it should HOT 2
- Unsupported URL error on Twitter.com / X.com: x.com does not work for yt-dlp HOT 3
- How to download part of video not whole video οΌFor example 10s - 20s HOT 3
- [TikTok] Support for Photos HOT 2
- [crunchyroll] Failed to download stream info: HTTP Error 403: Forbidden HOT 5
- homeloveporn.py in your directory HOT 5
- --download-sections "*10-20" how to add use python HOT 2
- Access Denied When Access Tiktok Download Video URL HOT 1
- not support x.com video HOT 3
- Falling back to generic extractor for voyo.nova.cz
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
π Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. πππ
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google β€οΈ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from yt-dlp.