DEV Community

Sérgio Araújo
Sérgio Araújo

Posted on

yt-dlp plus ranger bulkrename


Once in a while or very often we use to download music from youtube using youtube-dl, in my case its fork called yt-dlp (a youtube-dl fork with aditional features and fixes).

The problem

Supose you want more than simply downloading a video, you want convert a full album that has chapters into individual music tracks

yt-dlp --split-chapters -x --audio-format mp3 youtube-link
Enter fullscreen mode Exit fullscreen mode

By doing that you now have all chapters of the video converted into mp3

The gran finale

Use the ranger file manager you can use the command "bulkrename"

Enter fullscreen mode Exit fullscreen mode

In my case the default editor is vim, so here we have to use our magic vim skills

Top comments (0)