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.3.tar.gz (9.0 kB view details)

Uploaded Source

File details

Details for the file discogs-tagger-0.1.3.tar.gz.

File metadata

  • Download URL: discogs-tagger-0.1.3.tar.gz
  • Upload date:
  • Size: 9.0 kB
  • Tags: Source
  • Uploaded using 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

File hashes

Hashes for discogs-tagger-0.1.3.tar.gz
Algorithm Hash digest
SHA256 eb5753e964f83d2d939f655ff4da0516a0b52bd796d35b38e97e8d17528bc35c
MD5 b3190a332d622f2e345ebf5e643644d7
BLAKE2b-256 582e28c6ea5dc825614e21c6d1f390a7e00ceab00feddf4baa41ebceefd04762

See more details on using hashes here.

Supported by

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