From 9f9d69b1a36279f920486c625e325984306c247e Mon Sep 17 00:00:00 2001 From: Cuan Date: Wed, 16 Mar 2022 19:23:27 -0400 Subject: [PATCH] Removed alac support, as it does not work with Sound Check --- README.md | 8 +++----- bin/flac2pod | 14 ++------------ 2 files changed, 5 insertions(+), 17 deletions(-) diff --git a/README.md b/README.md index bd350b4..daaae7f 100644 --- a/README.md +++ b/README.md @@ -1,16 +1,14 @@ # flac2pod Seamlessly converts your existing FLAC library to be played on an iPod Classic. -This script makes use of ffmpeg to convert your existing FLAC music library to either MP3-320 or ALAC for easy iPod Classic use. It also takes advantage of "rg2sc" (https://github.com/rwinkhart/rg2sc) to convert any existing ReplayGain tags to Apple Sound Check tags that are compatible with Apple products. +This script makes use of ffmpeg to convert your existing FLAC music library to MP3-320 for easy iPod Classic use. It also takes advantage of "rg2sc" (https://github.com/rwinkhart/rg2sc) to convert any existing ReplayGain tags to Apple Sound Check tags that are compatible with Apple products. # Usage ``` -flac2pod -f --mp3 # will convert library to MP3-320 and forcefully update Sound Check tags (even if they already exist) - -flac2pod --alac # will convert library to ALAC in a .m4a container - only updates missing Sound Check tags - flac2pod # will convert library to MP3-320 - only updates missing Sound Check tags + +flac2pod -f # will convert library to MP3-320 and forcefully update Sound Check tags (even if they already exist) ``` In order for flac2pod to function, your library must be structured as follows: diff --git a/bin/flac2pod b/bin/flac2pod index a2f2cac..855ea44 100755 --- a/bin/flac2pod +++ b/bin/flac2pod @@ -35,13 +35,6 @@ def create_destination(): .mkdir(0o700, parents=True, exist_ok=True) -def scan_destination_convert_alac(): - for _file in source_directories[1]: - if not Path(f"{_file.replace(path.expanduser(source), path.expanduser(destination))}.m4a").is_file(): - system(f"ffmpeg -i '{_file}.flac' -c:v copy -c:a alac -map_metadata 0 -id3v2_version 3 " - f"'{_file.replace(path.expanduser(source), path.expanduser(destination))}.m4a'") - - def scan_destination_convert_mp3(): for _file in source_directories[1]: print(_file) @@ -77,8 +70,5 @@ if destination.endswith('/'): source_directories = scan_source() create_destination() -if argument.__contains__('--alac'): - scan_destination_convert_alac() -else: - scan_destination_convert_mp3() - rg2sc() +scan_destination_convert_mp3() +rg2sc()