mirror of
https://github.com/Dispatcharr/Dispatcharr.git
synced 2026-07-22 17:48:09 +00:00
feat(vod): enhance xc_get_vod_streams with additional movie details and updated trailer field
This commit is contained in:
parent
d29a9ef88c
commit
e871010366
1 changed files with 7 additions and 2 deletions
|
|
@ -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",
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue