I hope this is the proper place to ask, though probably only indirectly on topic for this community.

What I am looking for is a way or tool to extract from a YouTube playlist the information which of my saved videos (usually very niche music from about a decade ago) are no longer available in it (so that I might procure them elsewhere).

With google being google, and the condensed information of “x videos are no longer available” that is displayed, I am fairly sure the information isnt gone gone, just hidden from the user.

Is there a way to get at that info?

Thanks in advance

  • kabi@lemm.ee
    link
    fedilink
    English
    arrow-up
    22
    ·
    edit-2
    8 months ago

    You can get all the IDs using yt-dlp

    yt-dlp --flat-playlist --print id <playlist>

    Assuming you’re on linux, you can add >> ids_all.txt at the end to save the list to a file.

    You can also add

    --compat-options no-youtube-unavailable-videos

    to get only the list of available videos instead and then, again assuming you’re on linux, do

    diff ids_all.txt ids_available.txt

    to get the odd ones out. That’s the simplest I could come up with. You’ll have to hope you can use the wayback machine, or a good old exact search to turn up what video that ID actually referred to

    • Telorand@reddthat.com
      link
      fedilink
      English
      arrow-up
      0
      ·
      edit-2
      8 months ago

      >> and diff also work on the latest version of Powershell, so all of your instructions should work on both Linux and Windows.

      • kabi@lemm.ee
        link
        fedilink
        English
        arrow-up
        1
        arrow-down
        1
        ·
        8 months ago

        Ah, nice! I tried to avoid powershell while on windows, so don’t know much about it.