feat(vod): enhance xc_get_vod_streams with additional movie details and updated trailer field

This commit is contained in:
SergeantPanda 2026-05-29 20:55:29 -05:00
parent d29a9ef88c
commit e871010366

View file

@ -2593,14 +2593,19 @@ def xc_get_vod_streams(request, user, category_id=None):
reverse("api:vod:vodlogo-cache", args=[movie.logo.id])
)
),
#'stream_icon': movie.logo.url if movie.logo else '',
"rating": movie.rating or "0",
"rating_5based": round(float(movie.rating or 0) / 2, 2) if movie.rating else 0,
"added": str(int(movie.created_at.timestamp())),
"is_adult": 0,
"tmdb_id": movie.tmdb_id or "",
"imdb_id": movie.imdb_id or "",
"trailer": (movie.custom_properties or {}).get('trailer') or "",
"trailer": (movie.custom_properties or {}).get('youtube_trailer') or "",
"plot": movie.description or "",
"genre": movie.genre or "",
"year": movie.year or "",
"director": (movie.custom_properties or {}).get('director', ''),
"cast": (movie.custom_properties or {}).get('actors', ''),
"release_date": (movie.custom_properties or {}).get('release_date', ''),
"category_id": str(relation.category.id) if relation.category else "0",
"category_ids": [int(relation.category.id)] if relation.category else [],
"container_extension": relation.container_extension or "mp4",