Skip to main content

Utility that helps to create a custom collection of songs - a mix album.

Project description

Mix Album

Utility that helps to create a custom collection of songs - a mix album.

Description

Let's describe a typical use case by example. The result will be a directory with songs -- the mix album or mixtape.

First, create directory Mix Album 01 (2024). This will be our mix album.

By default, the program assumes the name "Mix Album NN (YYYY)", where NN is the album number and YYYY is year in which the album was established (current year). So, first album (created in 2024) will be called "Mix Album 01 (2024)", second album (let's say created in 2026) will be "Mix Album 02 (2026)", etc. Please refer to Program Options or Configuration section to see how to customize the album name.

To add a track (song) to the album one can point the program to an existing file or to a YouTube video ID. To use a file enter following command:

$ mix-album-add --filter "metadata:artist=Example Artist;title=Example Song Title" example_song.mp3

This will create a copy of example_song.mp3 file in the Mix Album 01 (2024) under the name 01 - Example Artist - Example Song Title.mp3. The file will have metadata tags set.

Mix Album 01 (2024)
`-- 01 - Example Artist A - Example Song Title.mp3

To add a song from YouTube specify YouTube video ID which is the 11 character long string in the video URL; the value of v parameter. In the following example URL the YouTube ID is 'xxxxxxxxxxx': https://www.youtube.com/watch?v=xxxxxxxxxxx.

$ mix-album-add --filter "metadata:artist=Example Artist B;title=Example YouTube Song Title;genre=Pop" xxxxxxxxxxx

After the command is successfully executed the album directory will contain the second track as well:

Mix Album 01 (2024)
|-- 01 - Example Artist A - Example Song Title.mp3
`-- 02 - Example Artist B - Example YouTube Song Title.opus

Handling More Albums

In case you want to stop adding song to the "Mix Album 01", simply create directory "Mix Album 02 (YYYY)" and new songs will be added to the new album. The general rule is that songs are added to the album with the highest number.

Program Options {#program_options}

To see the complete list of the program options run:

$ mix-album-add --help

Configuration

Configuration options are read by default from ~/.config/mix_album/mix_album.conf file. It can contain following options:

  • albums-path: path to the directory with mix albums (default: current directory)

  • album-base-title: Name of mix albums without number and year (default: Mix Album)

The file has to be in INI format with one section named DEFAULT. Example of the configuration file:

[DEFAULT]
; comment line
albums-path = /path/to/media/library

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

mix_album-0.0.0.tar.gz (21.6 kB view details)

Uploaded Source

File details

Details for the file mix_album-0.0.0.tar.gz.

File metadata

  • Download URL: mix_album-0.0.0.tar.gz
  • Upload date:
  • Size: 21.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.12.9

File hashes

Hashes for mix_album-0.0.0.tar.gz
Algorithm Hash digest
SHA256 2b71d7a788b87188dc01690d74cc26f268aba1f89f091c579353d10f4e89bee8
MD5 8dd26a04d56bb25f266a185b22e8bd8c
BLAKE2b-256 6535602fa5c19f9e28cbdd6882510c70ab663ecb7da10e0648d645af6242630a

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page