CLI not working for video ids starting with hyphen
See original GitHub issueHi, first thanks so much for this project, it’s awesome!
I wanted to share a concern, I’m trying to retrieve the captions from this video with ID “-tiUDjn7-as” and I can’t cause the hyphen in the start conflicts with the CLI parameters formatting:
youtube_transcript_api -tiUDjn7-as --languages en --exclude-generated --json
youtube_transcript_api: error: too few arguments
I thought that using quotes around the ID would work but still:
youtube_transcript_api "-tiUDjn7-as" --languages en --exclude-generated --json
youtube_transcript_api: error: too few arguments
Is there anything I may be missing? I’m afraid I’m not very experienced on Python and that’s why I’m asking but if some guidance is provided I may be able to do the necessary adjustment myself.
Thanks so much, Mikel
Issue Analytics
- State:
- Created 3 years ago
- Comments:6 (5 by maintainers)
Top Results From Across the Web
Video IDs/URLs with hyphens (dashes) in them won't work ...
Checklist I'm reporting a broken site support issue I've verified that ... Video IDs/URLs with hyphens (dashes) in them won't work even if ......
Read more >Scrips does not accept video ID starting with a hyphen
Everything works fine, but there was one problem:Youtube video ID's starting with a hiphen, like -FIHqoTcZog does not work. I was wondering is ......
Read more >youtube API bug with video id's that begin with a dash
The dash is used as an operator for q parameter which when used will exclude videos. The workaround is to surround it with...
Read more >CF CLI commands are not working for application with name ...
If an application is pushed to Pivotal Cloud Foundry (PCF) system by specifying name in manifest file and the name starts with hyphen(-), ......
Read more >How to select video quality from youtube-dl? - Ask Ubuntu
10 Answers 10 · 8. Make sure that you do not choose DASH . That will be unplayable! · 2. I meant DASH...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Hey, thanks so much for the detailed response. I’ll try to fix this on my end and if I find a solution that can be shared I’ll create a PR and add a new message to this thread, thanks.
Fixed and released in
v0.4.0
! Thanks @crhowell!