question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

CLI not working for video ids starting with hyphen

See original GitHub issue

Hi, 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:closed
  • Created 3 years ago
  • Comments:6 (5 by maintainers)

github_iconTop GitHub Comments

3reactions
ojovencommented, Sep 28, 2020

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.

1reaction
jdepoixcommented, Mar 22, 2021

Fixed and released in v0.4.0! Thanks @crhowell!

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found