3

When using youtube-dl version 2019.07.16, if I run the following command:

$ youtube-dl --get-id https://youtube.com/user/youtube_channel

I will sometimes get an output like this example:

dIJxA-_1MVM
gE3xeJC_G_L
ITll8zhfvwk
ERROR: This video is not available.
dQw4w9WgXcQ

This will happen if the user or YouTube removes the video in question. The only issue is, this does not say which video this message is referring to.

Am I just missing one of youtube-dl's many flags?

9
  • Is it possible this refers to the video ID listed directly before or afterwards? Could you provide a channel URL for testing? – dessert Jul 20 '19 at 4:54
  • Are you trying to look up a channel with the program or a specific video? If a video, I can help you. – BJsgoodlife Jul 20 '19 at 5:53
  • @dessert Using https://www.youtube.com/channel/UCothzhiulmMsaF5rQp5XLgQ under a USA VPN shows me this output: pastebin.com/raw/8b83a3e2 and every ID listed is valid. It does not show the errored ID anywhere. – leetbacoon Jul 23 '19 at 0:20
  • @BJsgoodlife It is a channel, but even running a completely random and invalid URL gives the same output. Here's an example: pastebin.com/raw/PC63nkK1 I also included a video URL that was a real video at one time until the uploader removed it. – leetbacoon Jul 23 '19 at 0:39
  • Hi leetbacoon- I tested your link and you are correct, it's unavailable for me to. It looks like a possible bug, check out this website. github.com/ytdl-org/youtube-dl/issues/15417. – BJsgoodlife Jul 27 '19 at 4:41
1

The flag you want is -i for --ignore-errors.

1
  • 1
    Well, not quite. --ignore-errors allows youtube-dl to continue grabbing video IDs even after it finds a dead link, has trouble connecting, has disk write issues, etc. I'm trying to find the video id (https⁣://www.youtube.com/watch?v= leTpySlsl50 ) of the video that gives the error – leetbacoon Sep 24 '19 at 1:54

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.