Add support for contribution streams movies and series catalogs

This commit is contained in:
mhdzumair
2025-01-22 09:14:51 +05:30
parent 140e97e6b0
commit 6b5b9caa4d
4 changed files with 8 additions and 0 deletions
+2
View File
@@ -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"]:
+2
View File
@@ -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
+2
View File
@@ -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"},
+2
View File
@@ -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 = [