• TauZero@mander.xyz
    link
    fedilink
    English
    arrow-up
    13
    ·
    5 days ago

    As the other comment said, if you inspect page html source (ctrl-U) and ctrl-F search for “mp3”, the URL of the embedded audio file is also right there in plaintext in the middle of javascript code, but it’s merely good fortune that the developer left it easily visible and not renamed or obfuscated in some way. Saving from the network tab works in more cases in general.

    You don’t need to use yt-dlp to fetch files :D. It will let itself be used as wget, sure, but the browser is already capable of saving files - that’s it’s job! Paste the link into the address bar.

    • akilou@sh.itjust.worksOP
      link
      fedilink
      English
      arrow-up
      4
      ·
      edit-2
      5 days ago

      Thanks for helping me get this far but now I’m stuck. Neither yt-dlp nor pasting the url into the browser works. The latter gets me the image below, yt-dlp says it’s not a valid url

      Edit: I got it to work with yt-dlp. I forgot the quotes around the url

      • nutbutter@discuss.tchncs.de
        link
        fedilink
        English
        arrow-up
        2
        ·
        5 days ago

        You can pass your browser’s cookies to yt-dlp. Try that, maybe?

        I think it’s

        yt-dlp --cookies-from-browser firefox
        

        But please check in the documentation. Also, your browser needs to in the PATH.

      • TauZero@mander.xyz
        link
        fedilink
        English
        arrow-up
        2
        ·
        5 days ago

        Yep! The “save response as” works in more cases because it already includes all the correct cookies/referrers that sites use to protect against hotlinking.