diff --git a/api/main.py b/api/main.py index 6df52d1..e5bc587 100644 --- a/api/main.py +++ b/api/main.py @@ -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"]: diff --git a/db/crud.py b/db/crud.py index b660d8d..a46d54e 100644 --- a/db/crud.py +++ b/db/crud.py @@ -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 diff --git a/resources/templates/manifest.json.j2 b/resources/templates/manifest.json.j2 index 4910d2b..a7da1c2 100644 --- a/resources/templates/manifest.json.j2 +++ b/resources/templates/manifest.json.j2 @@ -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"}, diff --git a/utils/const.py b/utils/const.py index 1399b97..8e3c0e2 100644 --- a/utils/const.py +++ b/utils/const.py @@ -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 = [