Skip to main content

Discogs album tags downloader

Project description

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

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

discogs-tagger-0.1.1.tar.gz (9.1 kB view hashes)

Uploaded Source

Supported by

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