mirror of
https://github.com/cooperhammond/irs.git
synced 2025-07-02 15:08:14 +00:00
Fixed unpacking bug in post processing and wrong import in the CLI
This commit is contained in:
parent
7aed3442f3
commit
cca726a1bf
|
@ -7,7 +7,7 @@ import os
|
||||||
|
|
||||||
# Powered by:
|
# Powered by:
|
||||||
from .ripper import Ripper
|
from .ripper import Ripper
|
||||||
from .utils import console, parse_default_flags
|
from .utils import Config, console
|
||||||
|
|
||||||
|
|
||||||
def main():
|
def main():
|
||||||
|
@ -39,7 +39,7 @@ directory to place files in.")
|
||||||
parser.add_argument("-c", "--config", dest="config", action="store_true",
|
parser.add_argument("-c", "--config", dest="config", action="store_true",
|
||||||
help="Display path to config file.")
|
help="Display path to config file.")
|
||||||
|
|
||||||
args = parser.parse_args(parse_default_flags())
|
args = parser.parse_args(Config.parse_default_flags())
|
||||||
|
|
||||||
if args.config:
|
if args.config:
|
||||||
import irs
|
import irs
|
||||||
|
|
|
@ -78,7 +78,7 @@ class Ripper:
|
||||||
file_name = loc.split("/")[-1]
|
file_name = loc.split("/")[-1]
|
||||||
else:
|
else:
|
||||||
file_name = loc
|
file_name = loc
|
||||||
artist, album = mp3.read_tag("artist")[0]
|
artist = mp3.read_tag("artist")[0]
|
||||||
album = mp3.read_tag("album")
|
album = mp3.read_tag("album")
|
||||||
new_loc += ObjManip.blank(artist, False)
|
new_loc += ObjManip.blank(artist, False)
|
||||||
if album != []:
|
if album != []:
|
||||||
|
|
Loading…
Reference in a new issue