Removed -f option, as it is irrelevant when converting from FLAC

This commit is contained in:
2022-03-17 15:34:07 -04:00
parent b41698ab65
commit 76e7beb27d
2 changed files with 5 additions and 19 deletions
+4 -5
View File
@@ -4,15 +4,14 @@ 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 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. 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 # Usage
Simply run:
``` ```
flac2pod # will convert library to MP3-320 - only updates missing Sound Check tags flac2pod
flac2pod -f # will convert library to MP3-320 and forcefully update Sound Check tags (even if they already exist)
``` ```
...and you will be prompted for your source and destination directories.
In order for flac2pod to function, your library must be structured as follows: In order for flac2pod to function, your library must be structured as follows:
Library dir -> Artist dir -> Album dir -> FLAC files library parent dir -> artist dir -> album dir -> FLAC files
When prompted for the source directory, you want to input your library parent directory. When prompted for the source directory, you want to input your library parent directory.
+1 -14
View File
@@ -4,7 +4,6 @@
from os import path, system, walk from os import path, system, walk
from pathlib import Path from pathlib import Path
from sys import argv
# utility functions # utility functions
@@ -47,23 +46,11 @@ def scan_destination_convert_mp3():
def rg2sc(_file): def rg2sc(_file):
if argument.__contains__('-f'): system(f"rg2sc -f {_file}")
system(f"rg2sc -f {_file}")
else:
system(f"rg2sc {_file}")
# program start sequence # program start sequence
# retrieve typed argument
argument_list = argv
i, argument = 0, ''
for _ in argument_list:
while i < len(argument_list) - 1:
i += 1
argument += argument_list[i] + ' '
argument = argument[:-1]
source = input('Source parent directory: ') source = input('Source parent directory: ')
if source.endswith('/'): if source.endswith('/'):
source = source[:-1] source = source[:-1]