fix(catalog): use season posters for episode cards
This commit is contained in:
@@ -28,8 +28,8 @@ const episodeCatalogSelectBody = `(
|
||||
COALESCE(e.imdb_id, '') AS imdb_id,
|
||||
COALESCE(e.tmdb_id, '') AS tmdb_id,
|
||||
COALESCE(e.tvdb_id, '') AS tvdb_id,
|
||||
COALESCE(e.still_path, '') AS poster_path,
|
||||
COALESCE(e.still_thumbhash, '') AS poster_thumbhash,
|
||||
COALESCE(NULLIF(s.poster_path, ''), NULLIF(si.poster_path, ''), NULLIF(e.still_path, ''), '') AS poster_path,
|
||||
COALESCE(NULLIF(s.poster_thumbhash, ''), NULLIF(si.poster_thumbhash, ''), NULLIF(e.still_thumbhash, ''), '') AS poster_thumbhash,
|
||||
COALESCE(si.backdrop_path, '') AS backdrop_path,
|
||||
COALESCE(si.backdrop_thumbhash, '') AS backdrop_thumbhash,
|
||||
COALESCE(si.logo_path, '') AS logo_path,
|
||||
@@ -58,6 +58,7 @@ const episodeCatalogSelectBody = `(
|
||||
e.updated_at
|
||||
FROM episodes e
|
||||
JOIN media_items si ON si.content_id = e.series_id
|
||||
LEFT JOIN seasons s ON s.content_id = e.season_id
|
||||
WHERE %s
|
||||
) mi`
|
||||
|
||||
|
||||
Reference in New Issue
Block a user