Show button for trailers instead of card row (#618)

## Description
On both movie & series detail pages, show a button to play trailers
instead of the row of cards below.

The button works like this:
- If no trailers, the button shows "No trailers" and is
disabled/non-clickable
- If only a single trailer, the button shows "Play trailer" and clicking
it plays the trailer
- Otherwise, shows "Trailers" and clicking displays a dialog to choose
one

Local trailers are shown first in the list. Then there is an attempt to
sort the trailers for the dialog so that names with "Official Trailer"
or "Official Theatrical Trailer" are listed first and "Teaser" is listed
last. This isn't perfect and doesn't work for non-English, but there's
no other metadata to use.

### Related issues
Closes #408
This commit is contained in:
Ray 2026-01-02 13:50:45 -05:00 committed by GitHub
parent b8e8a1d913
commit 0fe8e5d988
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
12 changed files with 218 additions and 170 deletions

View file

@ -14,4 +14,5 @@ data class LocalTrailer(
data class RemoteTrailer(
override val name: String,
val url: String,
val subtitle: String?,
) : Trailer