
Originally Posted by
greynol
When using an external compressor, EAC uses the folder containing the ripped tracks as the current working directory.
I'm not familiar with Python, but using standard command-line/batch commands parsing the target directory and the file extension is trivial.
I don't know if you mean trivial as in easy todo, or trivial as in much more complicated than it needs to be. I consider the task to be the latter context of trivial:
Code:
###############################################
## Defined by Exact Audio Copy through External Compression parameters
EAC_ALBUM_ARTIST = %V # Thank you greynol for bringing this to my attn.
EAC_ALBUM_TITLE = %g
EAC_ALBUM_GENRE = %m
EAC_ALBUM_YEAR = %y
EAC_TRACK_NUM = %n
EAC_TRACK_TITLE = %t
EAC_TRACK_ARTIST = %a
EAC_OUTPUT_FILE = %d
EAC_INPUT_FILE = %o # or %s, but temp filename is not needed.
###############################################
## Not defined by EAC through parameters:
F9_DIRECTORY = "C:\\EAC Rips\\"
# C:\EAC Rips\Nine Inch Nails\
EAC_ARTIST_DEST = F9_DIRECTORY + EAC_ALBUM_ARTIST + "\\"
# C:\EAC Rips\Nine Inch Nails\The Slip (2008)\
EAC_ALBUM_DEST = EAC_ARTIST_DEST + EAC_ALBUM_TITLE + " (" + EAC_ALBUM_YEAR + ")\\"
# C:\EAC Rips\Nine Inch Nails\The Slip (2008)\01 - 999999.mp3
EAC_TRACK_DEST = EAC_ALBUM_DEST + EAC_TRACK_NUM + " - " + EAC_TRACK_TITLE + ".mp3"
# C:\EAC Rips\Nine Inch Nails\The Slip (2008)\01 - 999999.wav
EAC_TRACK_SRC = EAC_ALBUM_DEST + EAC_INPUT_FILE
What I'm hoping for is more concrete parameters to work with. If someone changes the way I have F9->Filename or F9->Directories setup, my python script fails.
I would much rather have EAC give me the target directory than to have my python script construct it. I know this sounds lazy and very low-priority. Having more parameters to work with eliminates added complexity to my script (such as having to construct the full destination paths, or scraping the ISRC data from the Cue file).
Lesezeichen