mirror of
https://github.com/rwinkhart/flac2pod.git
synced 2026-09-01 06:46:30 -04:00
Copy non-FLAC files instead of moving them
This commit is contained in:
+2
-2
@@ -6,7 +6,7 @@ from argparse import ArgumentParser
|
|||||||
from mutagen.flac import FLAC, FLACNoHeaderError
|
from mutagen.flac import FLAC, FLACNoHeaderError
|
||||||
from os import cpu_count, path, walk
|
from os import cpu_count, path, walk
|
||||||
from pathlib import Path
|
from pathlib import Path
|
||||||
from shutil import move
|
from shutil import copy
|
||||||
from subprocess import check_output, Popen
|
from subprocess import check_output, Popen
|
||||||
from sys import exit as s_exit
|
from sys import exit as s_exit
|
||||||
from time import sleep
|
from time import sleep
|
||||||
@@ -91,7 +91,7 @@ def scan_destination_convert():
|
|||||||
_rgpeak = None
|
_rgpeak = None
|
||||||
except FLACNoHeaderError:
|
except FLACNoHeaderError:
|
||||||
print(f"[{_file}] Not a FLAC file, copying...")
|
print(f"[{_file}] Not a FLAC file, copying...")
|
||||||
move(f"{_file}", f"{_file.replace(path.expanduser(source), path.expanduser(destination))}")
|
copy(f"{_file}", f"{_file.replace(path.expanduser(source), path.expanduser(destination))}")
|
||||||
_rggain, _rgpeak = None, None
|
_rggain, _rgpeak = None, None
|
||||||
# determine ffmpeg arguments
|
# determine ffmpeg arguments
|
||||||
if args.bake and _rggain is not None:
|
if args.bake and _rggain is not None:
|
||||||
|
|||||||
Reference in New Issue
Block a user