mirror of
https://github.com/rwinkhart/flac2pod.git
synced 2026-09-03 15:47:20 -04:00
Cleaned up import statements
This commit is contained in:
@@ -1,11 +1,8 @@
|
|||||||
#!/bin/python3
|
#!/bin/python3
|
||||||
|
|
||||||
from argparse import ArgumentParser
|
from argparse import ArgumentParser
|
||||||
|
|
||||||
import mutagen.flac
|
|
||||||
|
|
||||||
from flac2pod import scan_source
|
from flac2pod import scan_source
|
||||||
from mutagen.flac import FLAC
|
from mutagen.flac import FLAC, FLACNoHeaderError
|
||||||
from os import listdir, system
|
from os import listdir, system
|
||||||
from subprocess import PIPE, Popen, STDOUT
|
from subprocess import PIPE, Popen, STDOUT
|
||||||
from sys import exit as s_exit
|
from sys import exit as s_exit
|
||||||
@@ -39,7 +36,7 @@ if __name__ == "__main__":
|
|||||||
else:
|
else:
|
||||||
gain = 0
|
gain = 0
|
||||||
break
|
break
|
||||||
except mutagen.flac.FLACNoHeaderError:
|
except FLACNoHeaderError:
|
||||||
print(f"[{album}/*] Contains non-FLAC files, skipping album...")
|
print(f"[{album}/*] Contains non-FLAC files, skipping album...")
|
||||||
gain = 2
|
gain = 2
|
||||||
if gain != 2 and (args.force or gain == 0):
|
if gain != 2 and (args.force or gain == 0):
|
||||||
|
|||||||
Reference in New Issue
Block a user