Skip to content

Commit

Permalink
Code cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
infojunkie committed Jul 20, 2024
1 parent 8abee84 commit 0bdb45d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 6 deletions.
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[tool.poetry]
name = "discogs-tag"
version = "1.2.0"
version = "1.2.1"
description = "An audio tagger based on Discogs metadata."
authors = ["infojunkie <[email protected]>"]
repository = "https://github.com/infojunkie/discogs-tag.py"
Expand Down
6 changes: 1 addition & 5 deletions src/discogs_tag/cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -32,10 +32,6 @@

AUDIO_EXTENSIONS = ['flac', 'mp3']

VARIOUS_ARTISTS = [
'Various Artists'
]

def tag(
release,
dir='./',
Expand Down Expand Up @@ -394,7 +390,7 @@ def artist_name(artist):
audio['album'] = release['title']

if not options['skip_composer'] and 'extraartists' in track:
composers = [artist_name(composer) for composer in track['extraartists'] if composer['role'].casefold() in [(lambda c: c.casefold())(c) for c in COMPOSER_TAGS]]
composers = [artist_name(composer) for composer in track['extraartists'] if composer['role'].casefold() in [c.casefold() for c in COMPOSER_TAGS]]
if composers:
audio['composer'] = ', '.join(composers)

Expand Down

0 comments on commit 0bdb45d

Please sign in to comment.