0.99.8: After Dark daytime Option B (19 lighter late-night cult films also by day)
Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
This commit is contained in:
@@ -125,6 +125,16 @@ private val AfterDarkWithdrawn get() = setOf(
|
||||
"5718634", // The Devil's Advocate (1997)
|
||||
)
|
||||
|
||||
/**
|
||||
* Lighter late-night cult films that may also play by day (Option B, approved by Paul 4 November 2026): PG and PG-13
|
||||
* titles, the 1950s and 1960s monster films and the 1970s television films. They stay in the late-night rotation too.
|
||||
* Ratings were checked against the catalogue; a PG or PG-13 rating isn't taken to mean suitable for children.
|
||||
*/
|
||||
internal val AfterDarkDaytimeCrossover get() = listOf("Attack of the Killer Tomatoes! (1978)", "Big Trouble in Little China", "Critters", "Harold and Maude",
|
||||
"It Came from Outer Space", "Killer Klowns from Outer Space", "Mars Attacks!", "Night of the Comet", "Phantom of the Paradise", "Plan 9 from Outer Space",
|
||||
"The Adventures of Buckaroo Banzai Across the 8th Dimension", "The Blob (1958)", "The Day of the Triffids", "Them! (1954)", "Count Dracula",
|
||||
"The Night Stalker", "The Night Strangler", "Nosferatu the Vampyre", "Invasion of the Body Snatchers")
|
||||
|
||||
/** After Dark reads every film on its list, as the other film channels do. Reviewed suggestions join on top. */
|
||||
private val AfterDarkFilms = listOf("The Thing (1982)", "The Evil Dead (1983)", "Re-Animator", "Hellraiser (1987)", "Videodrome", "An American Werewolf in London",
|
||||
"Halloween (1978)", "Day of the Dead (1985)", "They Live", "Escape from New York", "The Fog (1980)", "Near Dark", "The Lost Boys (1987)", "Fright Night (1985)", "Society", "Tremors (1990)",
|
||||
@@ -143,7 +153,7 @@ internal val SmartChannels = listOf(
|
||||
withdrawn = AfterDarkWithdrawn,
|
||||
dayParts = AfterDarkEvents + listOf(DayPart(21, 5), DayPart(5, 21, listOf("The 'Burbs", "'Til Death Do Us Part (2017)", "Tremors (1990)", "The Lost Boys (1987)", "Fright Night (1985)", "Poltergeist (1982)", "Scream (1996)",
|
||||
"Escape from New York", "They Live", "Repo Man", "Donnie Darko", "From Dusk Till Dawn", "Creepshow", "Near Dark", "Halloween (1978)", "The Fog (1980)", "Blue Velvet",
|
||||
"The Wicker Man (1973)", "An American Werewolf in London", "Prince of Darkness"), group = "day")),
|
||||
"The Wicker Man (1973)", "An American Werewolf in London", "Prince of Darkness") + AfterDarkDaytimeCrossover, group = "day")),
|
||||
suggestionRules = listOf(
|
||||
SuggestionRule("day", "Daytime", "Movie", listOf("Horror", "Comedy"), 1975..2010, 6f, setOf("NC-17", "X"), 40, NotCultCinema, 70),
|
||||
// Capped so the biggest blockbusters stay out: this channel is cult cinema.
|
||||
|
||||
@@ -66,7 +66,7 @@ internal class HttpsEmbyTransport(internal val deviceId: String = UUID.randomUUI
|
||||
connection.connectTimeout = 10_000
|
||||
connection.readTimeout = request.readTimeoutMs ?: if (request.path == "/Sessions/Logout") 5_000 else 15_000
|
||||
connection.setRequestProperty("Accept", "application/json")
|
||||
connection.setRequestProperty("X-Emby-Authorization", "Emby Client=\"Orbit TV\", Device=\"Orbit TV\", DeviceId=\"$deviceId\", Version=\"0.99.7\"")
|
||||
connection.setRequestProperty("X-Emby-Authorization", "Emby Client=\"Orbit TV\", Device=\"Orbit TV\", DeviceId=\"$deviceId\", Version=\"0.99.8\"")
|
||||
request.token?.let { connection.setRequestProperty("X-Emby-Token", it) }
|
||||
if (request.method == "POST") {
|
||||
val bytes = request.body.orEmpty().toByteArray(Charsets.UTF_8)
|
||||
|
||||
@@ -33,7 +33,7 @@ internal class SecureMediaDataSource(private val session: EmbySampleSession) : B
|
||||
next.instanceFollowRedirects = false
|
||||
next.connectTimeout = 10_000
|
||||
next.readTimeout = 20_000
|
||||
next.setRequestProperty("User-Agent", "OrbitTV/0.99.7")
|
||||
next.setRequestProperty("User-Agent", "OrbitTV/0.99.8")
|
||||
next.setRequestProperty("Accept-Encoding", "identity")
|
||||
session.mediaHeaders(address).forEach { (key, value) -> next.setRequestProperty(key, value) }
|
||||
if (dataSpec.position != 0L || dataSpec.length != C.LENGTH_UNSET.toLong()) {
|
||||
|
||||
Reference in New Issue
Block a user