Skip to main content

beets-artistcountry

Beets plugin to retrieve the country of an artist from Musicbrainz

Install

To install, use pip

$> pip install beets-artistcountry

To activate it, add artistcountry to the list of you plugins in your configuration file (config.yaml)

plugins: [...] artistcountry [...]

How to use it

The plugin stores the field artist_country on each item when you import it. It is the country of the album artist, so all tracks of an album share it and stay in the same folder. To skip the lookup on import, add this to your configuration file

artistcountry:
    auto: no

To fill in items you have already imported, run

$> beet artistcountry [QUERY]

Items that already have a country are skipped. Use -f to fetch them again.

You can use the field artist_country to build your path in your audio library. Here is an example to do this in your configuration file

paths:
    defaults:
        $albumartist ($artist_country)/[$year] $album%aunique{}/$track $title

Now the path for a track looks like

Metallica (us)/[1984] Ride The Lightning/04 Fade To Black.mp3

Metadata

Release files for beets-artistcountry 1.0.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for beets-artistcountry 1.0.0
File Size Uploaded
beets_artistcountry-1.0.0.tar.gz 3.5 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for beets-artistcountry 1.0.0
File Interpreter ABI Platform
beets_artistcountry-1.0.0-py3-none-any.whl Python 3 none any Details

Total release size: 7.7 kB

Release files / beets_artistcountry-1.0.0.tar.gz

Download URL beets_artistcountry-1.0.0.tar.gz
Size 3.5 kB
Tags Source
SHA-256 checksum
How to use checksums
0f2e01f6eaccd47d44d50ac960386d79f8c24fd5579b864d3b25130c8c9e3260
BLAKE2b-256 checksum
How to use checksums
3623a50fa2cc9f66bb595df184b1a03be958af2c2b01c563ff1e7d4de6ead5f7
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.14.8

Release files / beets_artistcountry-1.0.0-py3-none-any.whl

Download URL beets_artistcountry-1.0.0-py3-none-any.whl
Size 4.2 kB
Tags Python 3
SHA-256 checksum
How to use checksums
2634f23e60280ed0c609505769fbcc0458c78084fabc56bc2238280bf8121755
BLAKE2b-256 checksum
How to use checksums
69d254d84bbeba0a8209273e65c0978cd8aeabe7d9b7a5d632fac8b88259618f
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.14.8

Release history Release notifications | RSS feed

This release

1.0.0 This release

2 release files

0.3.0

1 release file

0.2.0

2 release files

0.1.2

2 release files

0.1.1

1 release file

0.1

1 release file

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page