- Rename project from 'youtube-to-ipod-nano' to 'neo-pod-desktop' across all files - Update description: 'Desktop application for downloading, converting, managing and transferring music to iPod Nano devices' - Update setup.py: name, description, url, entry_points, author - Update run.py: docstring and argparse description - Update src/__init__.py: module docstring - Update src/main.py: docstring, window title, about label - Update src/cli.py: docstring, class docstring, argparse description - Update README.md: title and project description - Improve duplicate track detection in ipod_nano7_db.py: case-insensitive matching, bulk removal with file cleanup
35 lines
883 B
Python
Executable File
35 lines
883 B
Python
Executable File
#!/usr/bin/env python3
|
|
"""
|
|
Launcher script for neo-pod-desktop
|
|
"""
|
|
|
|
import os
|
|
import sys
|
|
import argparse
|
|
|
|
def main():
|
|
"""Main entry point"""
|
|
parser = argparse.ArgumentParser(description="neo-pod-desktop")
|
|
parser.add_argument("--cli", action="store_true", help="Run in command-line mode")
|
|
args = parser.parse_args()
|
|
|
|
# Add src directory to path
|
|
src_dir = os.path.join(os.path.dirname(os.path.abspath(__file__)), "src")
|
|
sys.path.insert(0, src_dir)
|
|
|
|
if args.cli:
|
|
# Run CLI version
|
|
from src.cli import YouTubeToIPodCLI
|
|
cli = YouTubeToIPodCLI()
|
|
return cli.run()
|
|
else:
|
|
# Run GUI version
|
|
from src.main import QApplication, MainWindow
|
|
app = QApplication(sys.argv)
|
|
window = MainWindow()
|
|
window.show()
|
|
return app.exec()
|
|
|
|
if __name__ == "__main__":
|
|
sys.exit(main())
|