feat: handle keyboard interruption more gracefully

This commit is contained in:
Jan Meyer
2026-02-10 19:16:06 +01:00
parent d08b139af6
commit f9a4af1c94
4 changed files with 100 additions and 65 deletions

View File

@@ -3,17 +3,21 @@
DVD/Blu-ray ripper using HandBrakeCLI with scene-style naming.
Scans a disc, selects the best audio & subtitle track per language
(passthrough), encodes with H.265 10-bit AMD VCE (falling back to
x265_10bit on CPU), and generates an NFO file via pymediainfo.
(passthrough), encodes with H.265/H.264/AV1 (auto-selecting HW
acceleration), and generates an NFO file via pymediainfo.
Usage:
python ripper.py --imdb tt6977338
python ripper.py --name 'Game Night' --year 2018
python ripper.py --codec av1 --quality 30
python ripper.py --scan-only
python ripper.py --list
"""
import sys
from ripper.cli import main
if __name__ == "__main__":
try:
main()
except KeyboardInterrupt:
sys.exit(130)