mirror of
https://github.com/Viren070/MediaFusion.git
synced 2025-12-01 23:21:11 +01:00
Add support for contribution streams movies and series catalogs
This commit is contained in:
@@ -384,6 +384,8 @@ def get_cache_key(
|
||||
if user_data.streaming_provider and "_watchlist_" in catalog_id:
|
||||
cache_key = None
|
||||
is_watchlist_catalog = True
|
||||
elif catalog_id.startswith("contribution_") and user_data.contribution_streams:
|
||||
cache_key = None
|
||||
elif catalog_type == "events":
|
||||
cache_key = None
|
||||
elif catalog_type in ["movie", "series"]:
|
||||
|
||||
@@ -67,6 +67,8 @@ async def get_meta_list(
|
||||
genre: Optional[str] = None,
|
||||
) -> list[schemas.Meta]:
|
||||
"""Get a list of metadata entries based on various filters"""
|
||||
if catalog.startswith("contribution_"):
|
||||
catalog = "contribution_stream"
|
||||
poster_path = f"{settings.poster_host_url}/poster/{catalog_type}/"
|
||||
meta_class = (
|
||||
MediaFusionMovieMetaData
|
||||
|
||||
@@ -86,6 +86,8 @@
|
||||
"fighting": {"type": "movie", "name": "Fighting (WWE, UFC)", "genres": ["WWE", "UFC"]},
|
||||
"tgx_movie": {"type": "movie", "name": "TGx Movies"},
|
||||
"tgx_series": {"type": "series", "name": "TGx Series"},
|
||||
"contribution_movies": {"type": "movie", "name": "Contribution Movies"},
|
||||
"contribution_series": {"type": "series", "name": "Contribution Series"},
|
||||
"other_sports": {"type": "movie", "name": "Other Sports", "genres": []},
|
||||
"live_sport_events": {"type": "events", "name": "Live Sport Events", "genres": ["American Football", "Athletics", "Aussie Rules", "Baseball", "Basketball", "Bowling", "Boxing", "Cricket", "Cycling", "Dart", "Floorball", "Football", "Futsal", "GAA", "Golf", "Gymnastics", "Handball", "Hockey", "Horse Racing", "Lacrosse", "MMA", "Motor Sport", "Netball", "Other Sports", "Rugby/AFL", "Squash", "Tennis", "Volleyball"]},
|
||||
"prowlarr_movies": {"type": "movie", "name": "Prowlarr Scraped Movies"},
|
||||
|
||||
@@ -48,6 +48,8 @@ CATALOG_DATA = {
|
||||
"fighting": "Fighting (WWE, UFC)",
|
||||
"tgx_movie": "TGx Movies",
|
||||
"tgx_series": "TGx Series",
|
||||
"contribution_movies": "Contribution Streams Movies",
|
||||
"contribution_series": "Contribution Streams Series",
|
||||
}
|
||||
|
||||
USER_UPLOAD_SUPPORTED_MOVIE_CATALOG_IDS = [
|
||||
|
||||
Reference in New Issue
Block a user