Tv

class Tv

TV listings. Free key: 1 per call.

Functions

Link copied to clipboard
suspend fun channel(channelId: Long): List<TvListing>

eventstv.php?id= — upcoming listings on one channel, by TvListing.channelId.

suspend fun channel(name: String): List<TvListing>

eventstv.php?c= — upcoming listings on one channel, by name (e.g. TSN 1).

Link copied to clipboard
suspend fun day(date: LocalDate, sport: String? = null, country: String? = null): List<TvListing>

eventstv.php?d= — TV listings for a day, optionally narrowed to a sport, or to a country and sport. The API returns an empty body when given a country without a sport, so that combination is rejected here.