Skip to main content
Copyright (c) 2018 Maksymilian Zytkiewicz

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.

Description: # discogs-tagger
Simple script that tags your music files with album metadata from Discogs database.

## Installation

Simply install it using pip:

```
# pip install discogs-tagger
```

## Usage

```
usage: discogs-tagger.py [-h] [-u URL] [-i] file [file ...]

Simple script that tags your music files with album metadata from Discogs
database.

positional arguments:
file file(s) you want to tag

optional arguments:
-h, --help show this help message and exit
-u URL, --url URL Discogs release URL. Important: it must not be master
release!
-i, --interactive Option that allows user to manually choose artist and
album release.
```

To tag your files, with discogs-tagger you can choose one method of two. The first one is automatic search. You give the script `-u <url>` option and it'll automatically download all the info on the album. Important - it mustn't be master release! Only albums without subreleases. Example:

```
$ discogs-tagger -u https://www.discogs.com/Radiohead-OK-Computer/release/4950798 ~/Music/OkComputerDir/*.flac
```

The other way is interactive search. You must enter artists name and then the script will show you available artists to choose from, then you choose a master release and subrelease. Command:

```
$ discogs-tagger -i ~/Music/SomeMusicDir/*.flac
```

What's also important, you should always choose files, otherwise the script won't do anything.

### Settings file

When you first run discogs-tagger, it will create new file at `~/discogs-tagger.settings`. Example settings file looks like this:

```
format=${d-}${n} - ${t}
artist-query-size=5
tag-lyrics=true
genre-base=style
```

- format - it's the format of file names that are being tagged
- artist-query-size - decides how many artists will show up in interactive mode
- tag-lyrics - boolean, decides if the lyrics will be embedded in the files (it may lenghten the process of tagging)
- genre-base - decides what Discogs tag it uses to describe genre: `style` or `genre`

#### File name formatting

These are tags used in file name formatting (`format` key in settings file):
- `${d}` - disc number
- `${dt}` - total disc number
- `${n}` - track number
- `${nt}` - total track number
- `${t}` - track title
- `${a}` - artist
- `${b}` - album artist

You can as well put special characters (but only valid for your filesystem). This
example

```
format=${d-}${n} - ${_t_}
```

may result in something like this: `01-05 - _Some title_`

Keywords: music,webcrawling
Platform: UNKNOWN

Release files for discogs-tagger 0.1.3

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

Source distribution (sdist)

Source distribution for discogs-tagger 0.1.3
File Size Uploaded
discogs-tagger-0.1.3.tar.gz 9.0 kB Details

Release files / discogs-tagger-0.1.3.tar.gz

Download URL discogs-tagger-0.1.3.tar.gz
Size 9.0 kB
Tags Source
SHA-256 checksum
How to use checksums
eb5753e964f83d2d939f655ff4da0516a0b52bd796d35b38e97e8d17528bc35c
BLAKE2b-256 checksum
How to use checksums
582e28c6ea5dc825614e21c6d1f390a7e00ceab00feddf4baa41ebceefd04762
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/1.12.1 pkginfo/1.4.2 requests/2.20.0 setuptools/40.4.3 requests-toolbelt/0.8.0 tqdm/4.28.1 CPython/3.7.1

Release history Release notifications | RSS feed

This release

0.1.3 This release

1 release file

0.1.2

1 release file

0.1.1

1 release file

0.1.0

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