Skip to content

Download and convert YouTube playlists to ZaraRadio playlists

License

Notifications You must be signed in to change notification settings

TerryEbdon/YtToZara

Repository files navigation

YtToZara

YtToZara is a command line tool that converts a YouTube playlist to a ZaraRadio playlist, downloading tracks as required. Tracks are downloaded in MP3 format using yt-dlp. Silence is trimmed from the start and end of each track using ffmpeg and ffprobe.

Restrictions

This tool creates ZaraRadio .lst playlists. ZaraRadio is a Windows only app. YtToZara has been tested with Windows 10 and Windows 11.

Non-Latin character sets

ZaraRadio will not play tracks that have non-Latin characters in the filename. To work around this all punctuation characters and non-Latin characters are converted to underscores.

Prerequisites

Java 17

YtToZara depends on Java 17, which must be on the Windows path.

Other software

Earlier versions of YtToZara required yt-dlp, ffmpeg and ffprobe to be on the Windows path. path. Starting with v2.0.0 that's no longer a requirement, as YtToZara will download its own copies of these apps.

Installing YtToZara

  1. Make sure that Java 17 is on the path.
  2. Download the latest release (scroll down to Assets to find the ZIP file.)
  3. Unzip the downloaded file into a folder.
  4. Add the YtToZara folder to the user path.

Usage

  1. Use the command YtToZaraUI from a command prompt.
  2. YtToZara will download it's dependencies, if required.
  3. When prompted, enter the URL of a YouTube playlist.

Note: The playlist must be public or unlisted. This app does not work with private playlists.

  1. YtToZara will download the metadata and audio streams.
  2. The audio files will be converted to MP3s.

Note: The MP3s will have a bit-rate of 128 kbps. This is the highest bit-rate that YouTube provides for free accounts.

  1. YtToZara will trim silence from the beginning and end of each track. This works fine for speech and most music. If it causes you problems then please log an issue and I'll look into it.

  2. YtToZara will normalise every track.

  3. A ZaraRadio playlist will be created. The playlist will have the same name as the YouTube playlist.