- Introduced tests for various formatter classes including TextFormatter, DurationFormatter, SizeFormatter, DateFormatter, and more to ensure correct formatting behavior. - Added tests for service classes such as FileTreeService, MetadataService, and RenameService, covering directory validation, metadata extraction, and file renaming functionalities. - Implemented utility tests for LanguageCodeExtractor, PatternExtractor, and FrameClassMatcher to validate their extraction and matching capabilities. - Updated test cases to use datasets for better maintainability and clarity. - Enhanced error handling tests to ensure robustness against missing or invalid data.
33 lines
1.1 KiB
Python
33 lines
1.1 KiB
Python
"""Movie database identifier constants.
|
|
|
|
This module defines movie and TV database services (TMDB, IMDB, Trakt, TVDB)
|
|
and their identifier patterns.
|
|
"""
|
|
|
|
MOVIE_DB_DICT = {
|
|
"tmdb": {
|
|
"name": "The Movie Database (TMDb)",
|
|
"description": "Community built movie and TV database",
|
|
"url": "https://www.themoviedb.org/",
|
|
"patterns": ["tmdbid", "tmdb", "tmdbid-", "tmdb-"],
|
|
},
|
|
"imdb": {
|
|
"name": "Internet Movie Database (IMDb)",
|
|
"description": "Comprehensive movie, TV, and celebrity database",
|
|
"url": "https://www.imdb.com/",
|
|
"patterns": ["imdbid", "imdb", "imdbid-", "imdb-"],
|
|
},
|
|
"trakt": {
|
|
"name": "Trakt.tv",
|
|
"description": "Service that integrates with media centers for scrobbling",
|
|
"url": "https://trakt.tv/",
|
|
"patterns": ["traktid", "trakt", "traktid-", "trakt-"],
|
|
},
|
|
"tvdb": {
|
|
"name": "The TV Database (TVDB)",
|
|
"description": "Community driven TV database",
|
|
"url": "https://thetvdb.com/",
|
|
"patterns": ["tvdbid", "tvdb", "tvdbid-", "tvdb-"],
|
|
},
|
|
}
|