The config object controls the behavior of the downloader, including playback speed, metadata embedding, and file organization.
Key configuration sections include:
- Playback & Download Control:
playbackSpeed, downloaderEnabled, skipDownloadedTracks, and skipIgnoredTracks. - Metadata & Media:
embedLyrics, saveLyrics, embedCoverArt, saveCoverArt, and saveCanvas. - Output Format:
outputFormat allows specifying FFmpeg args (e.g., "-c copy") and the file extension ext. - Path Templates:
savePaths defines how files are organized using placeholders like {artist_name}, {album_name}, {track_num}, and {track_name}. It also includes invalidCharRepl (e.g., "unicode") for handling illegal filename characters. - Filtering:
ignorelist is an object used to define Resource URIs that should be skipped by the downloader. blockAds enables/disables ad blocking.
let config = {
playbackSpeed: 1.0,
downloaderEnabled: true,
skipDownloadedTracks: false,
skipIgnoredTracks: false,
embedLyrics: true,
saveLyrics: true,
embedCoverArt: true,
saveCoverArt: true,
saveCanvas: false,
outputFormat: {
args: "-c copy",
ext: ""
},
savePaths: {
basePath: "",
track: "{artist_name}/{album_name}{multi_disc_path}/{track_num}. {track_name}.ogg",
episode: "Podcasts/{artist_name}/{album_name}/{release_date} - {track_name}.ogg",
canvas: "{artist_name}/{album_name}{multi_disc_path}/Canvas/{track_num}. {track_name}.mp4",
invalidCharRepl: "unicode",
},
ignorelist: {
},
blockAds: true
};