feat: add crossplattform implementation
This commit is contained in:
@@ -6,7 +6,7 @@ import sys
|
||||
|
||||
from rich.panel import Panel
|
||||
|
||||
from .config import INPUT_PATH, OUTPUT_BASE, console
|
||||
from .config import INPUT_PATH, OUTPUT_BASE, CONFIG_FILE, init_config, console
|
||||
from .scanner import detect_encoder, scan_disc, select_title
|
||||
from .tracks import best_tracks_per_language, print_track_tables
|
||||
from .naming import build_scene_name, get_source_tag, get_volume_label
|
||||
@@ -25,7 +25,7 @@ def main():
|
||||
" %(prog)s --name 'Game Night' --year 2018\n"
|
||||
" %(prog)s --scan-only\n"
|
||||
" %(prog)s --list\n"
|
||||
" %(prog)s --name Inception --year 2010 --input /dev/sr0\n"
|
||||
" %(prog)s --init-config\n"
|
||||
),
|
||||
)
|
||||
parser.add_argument(
|
||||
@@ -37,7 +37,7 @@ def main():
|
||||
parser.add_argument(
|
||||
"--imdb",
|
||||
help="IMDB ID (e.g. tt6977338) — fetches name and year from TMDB. "
|
||||
"Requires TMDB_API_KEY env var.",
|
||||
"Requires TMDB_API_KEY env var or config.",
|
||||
)
|
||||
parser.add_argument(
|
||||
"--input", "-i",
|
||||
@@ -59,8 +59,18 @@ def main():
|
||||
action="store_true",
|
||||
help="List all ripped movies in the output directory.",
|
||||
)
|
||||
parser.add_argument(
|
||||
"--init-config",
|
||||
action="store_true",
|
||||
help="Create a default config.toml in the config directory.",
|
||||
)
|
||||
args = parser.parse_args()
|
||||
|
||||
# ── Generate config file ─────────────────────────────────────────────
|
||||
if args.init_config:
|
||||
init_config()
|
||||
return
|
||||
|
||||
# ── Library listing (no disc needed) ─────────────────────────────────
|
||||
if args.list:
|
||||
list_library(args.output_base)
|
||||
|
||||
Reference in New Issue
Block a user