Skip to content

Commit

Permalink
feat: upper codec name for saving
Browse files Browse the repository at this point in the history
  • Loading branch information
WorldObservationLog committed May 29, 2024
1 parent e40f8fe commit 120496d
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions config.example.toml
Original file line number Diff line number Diff line change
Expand Up @@ -47,21 +47,21 @@ atmosConventToM4a = true
# Available values:
# title, artist, album, album_artist, composer,
# genre, created, track, tracknum, disk,
# record_company, upc, isrc, copyright,
# record_company, upc, isrc, copyright, codec
songNameFormat = "{disk}-{tracknum:02d} {title}"
# Ditto
dirPathFormat = "downloads/{album_artist}/{album}"
# Available values:
# title, artist, album, album_artist, composer,
# genre, created, track, tracknum, disk,
# record_company, upc, isrc, copyright,
# playlistName, playlistCuratorName
# playlistName, playlistCuratorName, codec
playlistDirPathFormat = "downloads/playlists/{playlistName}"
# Available values:
# title, artist, album, album_artist, composer,
# genre, created, track, tracknum, disk,
# record_company, upc, isrc, copyright,
# playlistName, playlistCuratorName, playlistSongIndex
# playlistName, playlistCuratorName, playlistSongIndex, codec
playlistSongNameFormat = "{playlistSongIndex:02d}. {artist} - {title}"
# Save lyrics as .lrc file
saveLyrics = true
Expand Down
2 changes: 1 addition & 1 deletion src/rip.py
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,7 @@ async def rip_song(song: Song, auth_params: GlobalAuthParams, codec: str, config
song = await fix_encapsulate(metadata_song)
if codec == Codec.AAC or codec == Codec.AAC_DOWNMIX or codec == Codec.AAC_BINAURAL:
song = await fix_esds_box(song_info.raw, song)
filename = await save(song, codec, song_metadata, config.download, playlist)
filename = await save(song, codec.upper(), song_metadata, config.download, playlist)
logger.info(f"Song {song_metadata.artist} - {song_metadata.title} saved!")
if config.download.afterDownloaded:
command = config.download.afterDownloaded.format(filename=filename)
Expand Down

0 comments on commit 120496d

Please sign in to comment.