dplaylist is a free and open-source tool that allows you to generate a (YouTube) link from a list of video IDs/URLs contained in a file. That link will be used by YouTube to generate a playlist.
For various reasons, you may prefer not to use your Google account but you would still like to have a way to play and save your playlists. This tool makes it possible. The only thing you need to do is keep a file that contains one video link or ID per line.
- Download the executable from the release section or build it yourself
- Open a Terminal (cmd.exe on Windows)
- Navigate to the location of the dplaylist(.exe) executable
- Execute it by passing your text file as an argument:
./dplaylist -file=hip-hop.txt
- The link is generated in the console
Let's take an example: Rick Astley - Never Gonna Give You Up (Video). The ID of the video is effectively dQw4w9WgXcQ.
The following is an exhaustive list of the possible values that you may have in your text file:
Do NOT put a blank line at the end. One line is one video.
- Run
go build
orgo install
Alternatively, you may wish to create an executable for Linux, MacOS (Darwin) and Windows.
If so, run ./cross-compile.sh