Skip to content

Commit

Permalink
Use first artist for folder name
Browse files Browse the repository at this point in the history
  • Loading branch information
mervick committed Dec 21, 2024
1 parent f210d97 commit 765e5b8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion common.py
Original file line number Diff line number Diff line change
Expand Up @@ -255,7 +255,7 @@ def filepath_parse_pattern(pattern, tags):
_tags = {**tags}
# Remove the '\x01\x02' characters from the string, for some reason some artist have 2 or
# maybe even more lines separated by \x01\x02
_tags['artist'] = _tags.get('artist', 'Unknown').split('\x01')[0]
_tags['artist'] = _tags.get('artist', 'Unknown').split('\x01')[0].split(';')[0]
_tags['artist_lower'] = _tags.get('artist').lower()
_tags['album_artist'] = _tags.get('album_artist', 'Unknown').split('\x01')[0].split(';')[0]
_tags['album_artist_lower'] = _tags.get('album_artist').lower()
Expand Down

0 comments on commit 765e5b8

Please sign in to comment.