87 lines
2.0 KiB
Python
87 lines
2.0 KiB
Python
"""
|
|
Hivescan - Continuous media scanning server with live WebSocket updates.
|
|
|
|
Usage:
|
|
hivescan /path/to/torrents/* # Start scanning server
|
|
hivescan /path/* --port 9000 # Custom port
|
|
|
|
Or as a library:
|
|
from mediahive.hivescan.index_store import IndexStore
|
|
from mediahive.hivescan.structs import Movie, Series, TaskInfo
|
|
from mediahive.hivescan.server import app
|
|
"""
|
|
|
|
from mediahive.hivescan.models import ContentType, ContentHash, ParsedContent
|
|
from mediahive.hivescan.scanning import (
|
|
scan_downloads,
|
|
categorize_downloads,
|
|
find_playable_file,
|
|
find_episode_files,
|
|
)
|
|
from mediahive.hivescan.index_store import IndexStore
|
|
from mediahive.hivescan.utils import DEFAULT_OUTPUT_FOLDER, find_common_root
|
|
from mediahive.hivescan.showreel import generate_showreel_images, generate_episode_reel
|
|
from mediahive.hivescan.structs import (
|
|
CastMember,
|
|
Episode,
|
|
EpisodeRelease,
|
|
IndexSnapshot,
|
|
MediaStats,
|
|
Movie,
|
|
MovieVersion,
|
|
Season,
|
|
Series,
|
|
SimilarMedia,
|
|
TaskInfo,
|
|
TMDbEpisodeInfo,
|
|
TMDbInfo,
|
|
TMDbSeasonInfo,
|
|
)
|
|
from mediahive.hivescan.tmdb_client import (
|
|
fetch_movie_info,
|
|
fetch_series_info,
|
|
fetch_season_details,
|
|
set_cache_dir,
|
|
)
|
|
|
|
__all__ = [
|
|
# Models
|
|
"ContentType",
|
|
"ContentHash",
|
|
"ParsedContent",
|
|
# Scanning
|
|
"scan_downloads",
|
|
"categorize_downloads",
|
|
"find_playable_file",
|
|
"find_episode_files",
|
|
# Index store
|
|
"IndexStore",
|
|
# Struct types
|
|
"CastMember",
|
|
"Episode",
|
|
"EpisodeRelease",
|
|
"IndexSnapshot",
|
|
"MediaStats",
|
|
"Movie",
|
|
"MovieVersion",
|
|
"Season",
|
|
"Series",
|
|
"SimilarMedia",
|
|
"TaskInfo",
|
|
"TMDbEpisodeInfo",
|
|
"TMDbInfo",
|
|
"TMDbSeasonInfo",
|
|
# Showreel generation
|
|
"generate_showreel_images",
|
|
"generate_episode_reel",
|
|
# TMDb client
|
|
"fetch_movie_info",
|
|
"fetch_series_info",
|
|
"fetch_season_details",
|
|
"set_cache_dir",
|
|
# Utilities
|
|
"DEFAULT_OUTPUT_FOLDER",
|
|
"find_common_root",
|
|
]
|
|
|