I have tried using yt download but am not able to find any option for such a case.

So something like, a tool which allows YouTube login and then pull all the songs/video.

  • stupid_asshole69 [none/use name]@hexbear.net
    link
    fedilink
    English
    arrow-up
    1
    ·
    3 hours ago

    Use yt-dlp with a cookies file and your liked videos playlist like @RinseChessBacked@lemmy.ml said.

    Use yt-dlp with the -U flag to make sure it’s updated. The default settings are best audio and video quality. If you wanna get just the audio, install ffmpeg according to the instructions on the yt-dlp page (download ffmpeg and unpack it somewhere, tell yt-dlp where it is with the path-tp-ffmpeg flag) and tell yt-dlp what format you want.

    You do not need to use a website or gui. They are all based on yt-dlp anyway and are often old, outdated and have wrong settings. Literally just use yt-dlp all other offered solutions are incorrect.

  • 0range@lemmy.dbzer0.com
    link
    fedilink
    English
    arrow-up
    4
    ·
    edit-2
    8 hours ago

    Liked Videos and Liked Music are private playlists, they have a generic URL and you can only access them by being logged in. I have two methods to download Liked Videos:

    • Install a desktop app video downloader, most of them have the option to download an entire playlist.

    • They also have an option to add a cookies file so you can download private playlists, such as Liked Videos or Watch Later

    • Log in to YouTube in your browser

    • Export the cookies from the browser

    • Import them to the desktop app

    • Download Liked Videos

    That’s what you’re supposed to do, however i never got that to work. If it doesn’t work, you can transfer all your liked videos from the private playlist to a public playlist. Here’s what i do:

    • Create a new playlist called Downloads, and make it public; it now has its own specific URL, unlike the generic URL of Liked VIdeos

    • Install the YouTube Multiselect browser extention

    • Use Multiselect to select every video in Liked Videos and add it to Downloads

    • Use the desktop app to download the Downloads playlist

    This is how i download my private playlists like Watch Later or Liked Videos, i assume it also works for Liked Music

  • nicerdicer@feddit.org
    link
    fedilink
    English
    arrow-up
    2
    ·
    9 hours ago

    Usually I recommend using cobalt.tools for downloading either the video or the audio file. Unfortunately, cobalt.tools isn’t able to download from Youtube at the moment due to restrictions from Youtubes side.

    I found a workaround, albeit it is a bit complicated, but suitable for an occasional download: I installed FreeTube. Each video offers download options. However, if you want a better quality than 360p, it offers to download video and audio separately. Look for the highest quality. Both video and audio file can be merged using VLC player after downloading.

    After selecting the desired file(s) in FreeTube, you deternine where the files are to be saved, and then the download starts. There is no visual confirmation that the file is being downloaded. Eventually it appears on your computer. The download is slow, it takes almost the duration of the video that is to be downloaded.

    After downloading both the video and the audio file, open them in VLC. Follow one of the guides when searching for video audio merge vlc. You can also save the merged file.

  • RinseChessBacked@lemmy.ml
    link
    fedilink
    English
    arrow-up
    22
    ·
    edit-2
    15 hours ago

    All your liked videos are at https://www.youtube.com/playlist?list=LL, and all your liked songs are at https://music.youtube.com/playlist?list=LM .

    I would try using yt-dlp. First, download your cookies from YouTube into a file (e.g. youtubecookies.txt). I like the cookies.txt Firefox extension for downloading the cookies.

    Then run:

    yt-dlp --cookies youtubecookies.txt "https://music.youtube.com/playlist?list=LM"
    

    There are a lot of options to yt-dlp, so you’ll want to look into those.

  • driving_crooner@lemmy.eco.br
    link
    fedilink
    English
    arrow-up
    4
    ·
    15 hours ago

    Aren’t the liked videos a playlist? I think you can pass a playlist to YouTube-dl and it download it. Maybe you’re gonna need to pass credentials or the YouTube cookie for it.