remove safety from scan.py
Hunter
Wednesday, February 11th, 2026 at 6:39 PM
97 print(f"Supported formats: {', '.join(SUPPORTED_EXTENSIONS)}")
98 sys.exit(0)
99
- # Check if tracks.json already exists
- if OUTPUT_FILE.exists():
- response = input(f"{OUTPUT_FILE.name} already exists. Overwrite? (y/n): ").lower().strip()
- if response != 'y':
- print(f"Scan cancelled. {OUTPUT_FILE.name} was not modified.")
- sys.exit(0)
-
100 # Find all supported audio files
101 audio_files = [f for f in MIX_DIR.iterdir() if f.suffix.lower() in SUPPORTED_EXTENSIONS]
102