acsm to pdf is working, removed aax for now
This commit is contained in:
parent
98faaa4579
commit
8fd6244db8
7 changed files with 98 additions and 91 deletions
13
src/knock.py
13
src/knock.py
|
@ -1,6 +1,6 @@
|
|||
#!/usr/bin/env python3
|
||||
|
||||
import subprocess, magic, shutil, click
|
||||
import subprocess, shutil, click
|
||||
from pathlib import Path
|
||||
from getpass import getpass
|
||||
from xdg import xdg_config_home
|
||||
|
@ -8,9 +8,6 @@ from xdg import xdg_config_home
|
|||
from handle_acsm import handle_acsm
|
||||
from handle_aax import handle_aax
|
||||
|
||||
__version__ = "1.0.0-alpha"
|
||||
|
||||
@click.version_option()
|
||||
@click.command()
|
||||
@click.argument(
|
||||
"path",
|
||||
|
@ -33,14 +30,14 @@ def main(path):
|
|||
if path_type == 'ACSM':
|
||||
click.echo('Received an ACSM (Adobe) file...')
|
||||
handle_acsm(path)
|
||||
elif path_type == 'AAX':
|
||||
click.echo('Received an AAX (Audible) file...')
|
||||
handle_aax(path)
|
||||
#elif path_type == 'AAX':
|
||||
# click.echo('Received an AAX (Audible) file...')
|
||||
# handle_aax(path)
|
||||
else:
|
||||
click.echo(f'Error: Files of type {path_type} are not supported.\n', err=True)
|
||||
click.echo('Only the following file types are currently supported:', err=True)
|
||||
click.echo(' * ACSM (Adobe)\n', err=True)
|
||||
click.echo(' * AAX (Audible)\n', err=True)
|
||||
#click.echo(' * AAX (Audible)\n', err=True)
|
||||
click.echo('Please open a feature request at:', err=True)
|
||||
click.echo(f' https://github.com/BentonEdmondson/knock/issues/new?title=Support%20{path_type}%20Files&labels=enhancement', err=True)
|
||||
sys.exit(1)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue