youtube-dl: ERROR: This video is not available... Which video?

10,205

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

Share:
10,205

Related videos on Youtube

leetbacoon
Author by

leetbacoon

Stack exchange is wonderful, but the hats are stupid. Please forgive the poor english, it is not my primary language.

Updated on September 18, 2022

Comments

  • leetbacoon
    leetbacoon over 1 year

    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?

    • dessert
      dessert almost 5 years
      Is it possible this refers to the video ID listed directly before or afterwards? Could you provide a channel URL for testing?
    • BJsgoodlife
      BJsgoodlife almost 5 years
      Are you trying to look up a channel with the program or a specific video? If a video, I can help you.
    • leetbacoon
      leetbacoon almost 5 years
      @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
      leetbacoon almost 5 years
      @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.
    • BJsgoodlife
      BJsgoodlife almost 5 years
      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.
    • leetbacoon
      leetbacoon almost 5 years
      @BJsgoodlife Hi, the missing video is normal. I was looking to see if youtube-dl would print out which video id is the problematic one. Either way I had a friend of mine submit a suggestion on youtube-dl github. Thank you
    • dessert
      dessert almost 5 years
      Please add new information directly to your question (edit), do not use comments.
    • BJsgoodlife
      BJsgoodlife almost 5 years
      @leetbacoon- I am sorry I thought I could answer your question but I don't know why it's not working, I apologize.
    • leetbacoon
      leetbacoon almost 5 years
      @BJsgoodlife No need to apologize :) I appreciate your help. I don't think youtube-dl supports this feature natively. Hopefully this can be added in the future.
  • leetbacoon
    leetbacoon over 4 years
    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