mirror of
https://github.com/shadoll/moma.git
synced 2026-08-28 03:27:34 +00:00
- Updated `pyproject.toml` to reflect new package structure. - Created `renamer/__init__.py` to initialize the package. - Implemented `RenamerApp` in `renamer/app.py` for the main application interface. - Added constants for video extensions in `renamer/constants.py`. - Developed `MediaExtractor` class in `renamer/extractor.py` for extracting metadata from media files. - Created various extractor classes in `renamer/extractors/` for handling filename, metadata, and media info extraction. - Added formatting classes in `renamer/formatters/` for displaying media information and proposed filenames. - Implemented utility functions in `renamer/utils.py` for detecting file types and extracting media track information. - Introduced `OpenScreen` in `renamer/screens.py` for user input of directory paths. - Enhanced error handling and user feedback throughout the application.
34 lines
1.0 KiB
Python
34 lines
1.0 KiB
Python
VIDEO_EXTENSIONS = {'.mkv', '.avi', '.mov', '.mp4', '.wmv', '.flv', '.webm', '.m4v', '.3gp', '.ogv'}
|
|
|
|
VIDEO_EXT_DESCRIPTIONS = {
|
|
'mkv': 'Matroska multimedia container',
|
|
'avi': 'Audio Video Interleave',
|
|
'mov': 'QuickTime movie',
|
|
'mp4': 'MPEG-4 video container',
|
|
'wmv': 'Windows Media Video',
|
|
'flv': 'Flash Video',
|
|
'webm': 'WebM multimedia',
|
|
'm4v': 'MPEG-4 video',
|
|
'3gp': '3GPP multimedia',
|
|
'ogv': 'Ogg Video',
|
|
}
|
|
|
|
META_DESCRIPTIONS = {
|
|
'MP4': 'MPEG-4 video container',
|
|
'Matroska': 'Matroska multimedia container',
|
|
'AVI': 'Audio Video Interleave',
|
|
'QuickTime': 'QuickTime movie',
|
|
'ASF': 'Windows Media',
|
|
'FLV': 'Flash Video',
|
|
'WebM': 'WebM multimedia',
|
|
'Ogg': 'Ogg multimedia',
|
|
}
|
|
|
|
SOURCE_DICT = {
|
|
'WEB-DL': ['WEB-DL', 'WEBRip', 'WEB-Rip', 'WEB'],
|
|
'BDRip': ['BDRip', 'BD-Rip', 'BDRIP'],
|
|
'BDRemux': ['BDRemux', 'BD-Remux', 'BDREMUX'],
|
|
'DVDRip': ['DVDRip', 'DVD-Rip', 'DVDRIP'],
|
|
'HDTV': ['HDTV'],
|
|
'BluRay': ['BluRay', 'BLURAY', 'Blu-ray'],
|
|
} |