mirror of
https://github.com/nathom/streamrip.git
synced 2025-06-07 10:04:49 -04:00
Add albumcomposer key for folder/file formats
Signed-off-by: nathom <nathanthomas707@gmail.com>
This commit is contained in:
parent
7b02ef9d42
commit
32e737a117
3 changed files with 13 additions and 5 deletions
|
@ -120,9 +120,10 @@ new_playlist_tracknumbers = true
|
||||||
# template
|
# template
|
||||||
add_singles_to_folder = false
|
add_singles_to_folder = false
|
||||||
# Available keys: "albumartist", "title", "year", "bit_depth", "sampling_rate",
|
# Available keys: "albumartist", "title", "year", "bit_depth", "sampling_rate",
|
||||||
# and "container"
|
# "container", and "albumcomposer"
|
||||||
folder_format = "{albumartist} - {title} ({year}) [{container}] [{bit_depth}B-{sampling_rate}kHz]"
|
folder_format = "{albumartist} - {title} ({year}) [{container}] [{bit_depth}B-{sampling_rate}kHz]"
|
||||||
# Available keys: "tracknumber", "artist", "albumartist", "composer", and "title"
|
# Available keys: "tracknumber", "artist", "albumartist", "composer", "title",
|
||||||
|
# and "albumcomposer"
|
||||||
track_format = "{tracknumber}. {artist} - {title}"
|
track_format = "{tracknumber}. {artist} - {title}"
|
||||||
|
|
||||||
# Last.fm playlists are downloaded by searching for the titles of the tracks
|
# Last.fm playlists are downloaded by searching for the titles of the tracks
|
||||||
|
|
|
@ -117,7 +117,14 @@ PHON_COPYRIGHT = "\u00a9"
|
||||||
FLAC_MAX_BLOCKSIZE = 16777215 # 16.7 MB
|
FLAC_MAX_BLOCKSIZE = 16777215 # 16.7 MB
|
||||||
|
|
||||||
# TODO: give these more descriptive names
|
# TODO: give these more descriptive names
|
||||||
TRACK_KEYS = ("tracknumber", "artist", "albumartist", "composer", "title")
|
TRACK_KEYS = (
|
||||||
|
"tracknumber",
|
||||||
|
"artist",
|
||||||
|
"albumartist",
|
||||||
|
"composer",
|
||||||
|
"title",
|
||||||
|
"albumcomposer",
|
||||||
|
)
|
||||||
ALBUM_KEYS = (
|
ALBUM_KEYS = (
|
||||||
"albumartist",
|
"albumartist",
|
||||||
"title",
|
"title",
|
||||||
|
@ -125,7 +132,7 @@ ALBUM_KEYS = (
|
||||||
"bit_depth",
|
"bit_depth",
|
||||||
"sampling_rate",
|
"sampling_rate",
|
||||||
"container",
|
"container",
|
||||||
"composer",
|
"albumcomposer",
|
||||||
)
|
)
|
||||||
# TODO: rename these to DEFAULT_FOLDER_FORMAT etc
|
# TODO: rename these to DEFAULT_FOLDER_FORMAT etc
|
||||||
FOLDER_FORMAT = (
|
FOLDER_FORMAT = (
|
||||||
|
|
|
@ -134,7 +134,7 @@ class TrackMetadata:
|
||||||
self.date = resp.get("release_date_original") or resp.get("release_date")
|
self.date = resp.get("release_date_original") or resp.get("release_date")
|
||||||
self.copyright = resp.get("copyright")
|
self.copyright = resp.get("copyright")
|
||||||
self.albumartist = safe_get(resp, "artist", "name")
|
self.albumartist = safe_get(resp, "artist", "name")
|
||||||
self.composer = safe_get(resp, "composer", "name")
|
self.albumcomposer = safe_get(resp, "composer", "name")
|
||||||
self.label = resp.get("label")
|
self.label = resp.get("label")
|
||||||
self.description = resp.get("description")
|
self.description = resp.get("description")
|
||||||
self.disctotal = (
|
self.disctotal = (
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue