mirror of
https://github.com/Dispatcharr/Dispatcharr.git
synced 2026-07-18 00:55:50 +00:00
Minor fixes to VOD api. trailer returned Null instead of empty string, removed decimal from added time.
This commit is contained in:
parent
5806464406
commit
fbeca53cd7
1 changed files with 2 additions and 2 deletions
|
|
@ -1105,11 +1105,11 @@ def xc_get_vod_streams(request, user, category_id=None):
|
|||
#'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(movie.created_at.timestamp()),
|
||||
"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('youtube_trailer'),
|
||||
"trailer": (movie.custom_properties or {}).get('trailer') or "",
|
||||
"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