0.88.0: Vortex, Heroes, Orbit X, Rewind and ToonZ identities; Movie Nights roadmap principle
Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
This commit is contained in:
@@ -94,3 +94,98 @@ internal val RiotDayParts get() = listOf(
|
||||
DayPart(22, 0, RiotStunts, days = setOf(DayOfWeek.SATURDAY)),
|
||||
DayPart(6, 18, RiotDaytime), DayPart(18, 21, RiotLaughs), DayPart(21, 2, RiotAfterHours), DayPart(2, 6, RiotGraveyard))
|
||||
internal val RiotMixed get() = RiotShows.toSet() - setOf("Arrested Development", "BoJack Horseman")
|
||||
|
||||
private val Weekdays = setOf(DayOfWeek.MONDAY, DayOfWeek.TUESDAY, DayOfWeek.WEDNESDAY, DayOfWeek.THURSDAY, DayOfWeek.FRIDAY)
|
||||
|
||||
/** Vortex, after Toonami UK: action cartoons by day, the core anime in Toonami's own hours, grown-up anime late. */
|
||||
private val VortexCartoons = listOf("Batman Beyond", "Batman: The Animated Series", "Superman: The Animated Series", "ThunderCats", "The Powerpuff Girls", "Jonny Quest",
|
||||
"Samurai Jack", "Justice League", "Justice League Unlimited", "Voltron", "Voltron: Defender of the Universe", "ReBoot", "Beast Wars: Transformers")
|
||||
private val VortexAnime = listOf("Dragon Ball Z", "Dragon Ball", "Dragon Ball GT", "Naruto", "Yu Yu Hakusho", "Gundam Wing", "Mobile Suit Gundam Wing", "Sailor Moon", "Robotech", "Ronin Warriors",
|
||||
"Tenchi Muyo", "Tenchi Muyo! Ryo-Ohki", "Tenchi Universe", "Outlaw Star", "The Big O", "Cardcaptors", "Cardcaptor Sakura", "Zoids", "Zoids: Chaotic Century")
|
||||
/** Paul's own favourites alongside the Toonami staples. */
|
||||
private val VortexFavourites = listOf("Pokémon", "Yu-Gi-Oh! Duel Monsters", "Mortal Kombat: Defenders of the Realm")
|
||||
/** Toonami's own hours: the shows it was known for, and Paul's favourites. */
|
||||
private val VortexToonami = listOf("Dragon Ball Z", "Gundam Wing", "Mobile Suit Gundam Wing", "Tenchi Muyo", "Tenchi Muyo! Ryo-Ohki", "Tenchi Universe", "Samurai Jack", "Batman Beyond",
|
||||
"ThunderCats", "Jonny Quest", "Dragon Ball", "Dragon Ball GT", "Yu Yu Hakusho", "Sailor Moon", "Outlaw Star", "The Big O", "Cardcaptors", "Cardcaptor Sakura") + VortexFavourites
|
||||
/** Reviewed suggestions that suit the daytime. */
|
||||
private val VortexFamilyAnime = listOf("Yu-Gi-Oh! GX", "Yu-Gi-Oh! 5D's", "Yu-Gi-Oh! Zexal", "Pokémon: Origins", "Zoids Fuzors", "Zoids: New Century Zero", "Avatar: The Last Airbender",
|
||||
"Teknoman", "Dragon Ball Super", "One Piece", "Hunter x Hunter (2011)", "The Law of Ueki", "Saint Seiya", "Mobile Fighter G Gundam", "RWBY", "Regular Show", "Gravity Falls")
|
||||
private val VortexEvening = listOf("Naruto", "Robotech", "Ronin Warriors", "Dragon Ball Kai", "My Hero Academia", "Magi: Adventure of Sinbad", "Mobile Suit Gundam 00", "Mobile Suit Zeta Gundam", "Mobile Suit Gundam SEED",
|
||||
"Vision of Escaflowne", "Trigun", "S-CRY-Ed", "Fighting Spirit", "Megalobox", "Mob Psycho 100", "Kaze no Stigma", "Shakugan no Shana", "Nobunaga the Fool", "Nobunaga Concerto",
|
||||
"The Unlimited - Hyoubu Kyousuke", "Silver Fang Legend Weed", "Tokyo Ravens", "The Devil Is a Part-Timer!", "Kingdom (2012)", "Shadow Skill")
|
||||
private val VortexLate = listOf("Attack on Titan", "Ghost in the Shell: Stand Alone Complex", "Jormungand", "Now and Then, Here and There", "Murder Princess", "Those Who Hunt Elves",
|
||||
"Tears to Tiara", "Zakuro", "Karas", "The Maxx", "Legend of the Galactic Heroes Gaiden", "Dragon Ball Z Abridged",
|
||||
"Dragon Ball Z", "Gundam Wing", "Mobile Suit Gundam Wing", "Outlaw Star", "The Big O", "Trigun", "Megalobox", "Kingdom (2012)", "Fighting Spirit")
|
||||
/** What Vortex asks the library for. Its other favourites came in as reviewed suggestions. */
|
||||
internal val VortexShows get() = (VortexCartoons + VortexAnime + "Pokémon").distinct()
|
||||
/**
|
||||
* Movie Night comes first, so on Friday and Saturday it takes 20:00 to 22:00 and Toonami's evening hour picks up after the film.
|
||||
* Daytime suggestions not yet placed by hand go late, never into the daytime. Evening suggestions keep their evening.
|
||||
*/
|
||||
internal val VortexDayParts get() = listOf(
|
||||
DayPart(20, 22, group = "movie", days = setOf(DayOfWeek.FRIDAY, DayOfWeek.SATURDAY)),
|
||||
// Mornings are the staples. Reviewed modern anime joins in the afternoon, so it complements the channel rather than leading it.
|
||||
DayPart(6, 12, VortexCartoons + VortexFavourites + listOf("Cardcaptor Sakura", "Cardcaptors", "Sailor Moon", "Dragon Ball", "Zoids: Chaotic Century", "Zoids")),
|
||||
DayPart(12, 16, VortexCartoons + VortexFavourites + VortexFamilyAnime + listOf("Dragon Ball Z", "Mobile Suit Gundam Wing", "Tenchi Muyo! Ryo-Ohki", "Yu Yu Hakusho", "Outlaw Star", "The Big O")),
|
||||
DayPart(16, 18, VortexToonami, group = "toonami"), DayPart(18, 21, VortexToonami + VortexEvening, group = "night"), DayPart(21, 23, VortexToonami, group = "toonami"),
|
||||
DayPart(23, 6, VortexLate, group = "day"))
|
||||
|
||||
/** Heroes: the recognisable superhero cartoons every day, Marvel on Saturday mornings as Fox Kids had it. */
|
||||
private val HeroesCore = listOf("Batman: The Animated Series", "Superman: The Animated Series", "Batman Beyond", "Justice League", "Justice League Unlimited",
|
||||
"X-Men: The Animated Series", "Spider-Man: The Animated Series", "Teen Titans")
|
||||
private val HeroesSupporting = listOf("Spider-Man Unlimited", "Static Shock", "The Spectacular Spider-Man", "Young Justice", "Batman: The Brave and the Bold", "Iron Man: Armored Adventures",
|
||||
"The Avengers: Earth's Mightiest Heroes", "The Batman", "Fantastic Four", "Silver Surfer", "Spider-Man and His Amazing Friends", "Ben 10")
|
||||
private val HeroesMarvel = listOf("X-Men: The Animated Series", "Spider-Man: The Animated Series", "Spider-Man Unlimited", "Silver Surfer", "Fantastic Four",
|
||||
"Spider-Man and His Amazing Friends", "The Avengers: Earth's Mightiest Heroes", "Iron Man: Armored Adventures", "The Spectacular Spider-Man")
|
||||
private val HeroesAfterSchool = listOf("Batman: The Animated Series", "Superman: The Animated Series", "Batman Beyond", "Justice League", "Justice League Unlimited", "Static Shock", "Teen Titans")
|
||||
internal val HeroesShows get() = (HeroesCore + HeroesSupporting).distinct()
|
||||
internal val HeroesDayParts get() = listOf(
|
||||
DayPart(7, 11, HeroesMarvel, days = setOf(DayOfWeek.SATURDAY)),
|
||||
DayPart(6, 15, HeroesShows), DayPart(15, 18, HeroesAfterSchool), DayPart(18, 22, HeroesCore + listOf("Young Justice", "The Avengers: Earth's Mightiest Heroes", "The Spectacular Spider-Man")),
|
||||
DayPart(22, 6, HeroesShows))
|
||||
/** Self-contained episodes mix. Shows with story arcs stay in order. */
|
||||
internal val HeroesMixed get() = setOf("Batman: The Animated Series", "Superman: The Animated Series", "Batman Beyond", "Batman: The Brave and the Bold", "The Batman", "Static Shock",
|
||||
"Spider-Man and His Amazing Friends", "Ben 10")
|
||||
|
||||
/** Orbit X, Paul's Fox Kids: action and adventure on Saturday mornings and after school. */
|
||||
private val OrbitXCore = listOf("Biker Mice from Mars", "Digimon: Digital Monsters", "Teenage Mutant Ninja Turtles", "The Transformers", "He-Man and the Masters of the Universe",
|
||||
"ThunderCats", "Gargoyles", "The Real Ghostbusters", "Power Rangers", "G.I. Joe")
|
||||
private val OrbitXSupporting = listOf("Street Sharks", "SWAT Kats: The Radical Squadron", "Captain Planet and the Planeteers", "M.A.S.K.", "Exosquad", "Inspector Gadget",
|
||||
"She-Ra: Princess of Power", "Bucky O'Hare and the Toad Wars", "Visionaries: Knights of the Magical Light")
|
||||
/** Heroes is their preferred home. Here they're the Fox Kids flavour. */
|
||||
private val OrbitXGuests = listOf("X-Men: The Animated Series", "Spider-Man: The Animated Series")
|
||||
/** The names on the original list, kept so nothing already chosen drops out. */
|
||||
private val OrbitXEarlierNames = listOf("Digimon Adventure", "Mighty Morphin Power Rangers", "G.I. Joe: A Real American Hero")
|
||||
internal val OrbitXShows get() = (OrbitXCore + OrbitXSupporting + OrbitXGuests + OrbitXEarlierNames).distinct()
|
||||
internal val OrbitXDayParts get() = listOf(
|
||||
DayPart(7, 12, OrbitXCore + OrbitXEarlierNames + OrbitXGuests, days = setOf(DayOfWeek.SATURDAY)),
|
||||
DayPart(15, 18, OrbitXCore + OrbitXEarlierNames + OrbitXGuests, days = Weekdays),
|
||||
DayPart(6, 18, OrbitXCore + OrbitXSupporting + OrbitXEarlierNames), DayPart(18, 23, OrbitXShows), DayPart(23, 6, OrbitXCore + OrbitXSupporting + OrbitXEarlierNames))
|
||||
internal val OrbitXMixed get() = setOf("Biker Mice from Mars", "Teenage Mutant Ninja Turtles", "The Transformers", "He-Man and the Masters of the Universe", "ThunderCats",
|
||||
"The Real Ghostbusters", "G.I. Joe", "G.I. Joe: A Real American Hero", "Street Sharks", "SWAT Kats: The Radical Squadron", "Captain Planet and the Planeteers", "M.A.S.K.",
|
||||
"Inspector Gadget", "She-Ra: Princess of Power")
|
||||
|
||||
/** Rewind, the after-school 2000s: Cartoon Network at its heart, with Nickelodeon, Kids' WB and a little Disney. */
|
||||
private val RewindCore = listOf("Dexter's Laboratory", "Johnny Bravo", "The Powerpuff Girls", "Cow and Chicken", "I Am Weasel", "Ed, Edd n Eddy", "Ed Edd n Eddy",
|
||||
"Courage the Cowardly Dog", "The Grim Adventures of Billy & Mandy", "Codename: Kids Next Door", "Foster's Home for Imaginary Friends")
|
||||
private val RewindSupporting = listOf("Rugrats", "Hey Arnold!", "Doug", "CatDog", "Rocko's Modern Life", "The Wild Thornberrys", "SpongeBob SquarePants",
|
||||
"Animaniacs", "Pinky and the Brain", "Recess", "What's New, Scooby-Doo?", "What's New Scooby-Doo?")
|
||||
/** Newer additions, with Rewind as their preferred home. Vortex keeps them too. */
|
||||
private val RewindNewer = listOf("Regular Show", "Gravity Falls")
|
||||
internal val RewindShows get() = (RewindCore + RewindSupporting + RewindNewer).distinct()
|
||||
internal val RewindDayParts get() = listOf(
|
||||
DayPart(6, 9, RewindCore + listOf("Rugrats", "Hey Arnold!", "Doug")), DayPart(9, 15, RewindShows),
|
||||
DayPart(15, 19, RewindCore), DayPart(19, 23, RewindShows), DayPart(23, 6, RewindCore))
|
||||
internal val RewindMixed get() = RewindShows.toSet() - "Gravity Falls"
|
||||
|
||||
/** ToonZ, after Boomerang: the classic cartoon library, with British favourites at teatime. */
|
||||
private val ToonZCore = listOf("Looney Tunes", "Tom and Jerry", "Scooby-Doo, Where Are You!", "The Flintstones", "The Jetsons", "The Yogi Bear Show", "Popeye the Sailor", "Popeye")
|
||||
/** Includes the names on the original list that the library doesn't hold, kept in case they turn up. */
|
||||
private val ToonZSupporting = listOf("Wacky Races", "Top Cat", "Hong Kong Phooey", "The Huckleberry Hound Show", "The Looney Tunes Show", "Dastardly & Muttley in Their Flying Machines",
|
||||
"Dastardly and Muttley in Their Flying Machines", "The Pink Panther", "The Pink Panther Show", "Merrie Melodies", "The Bugs Bunny Show", "The Tom and Jerry Show", "Woody Woodpecker")
|
||||
private val ToonZTeatime = listOf("Danger Mouse", "Count Duckula", "Bananaman")
|
||||
internal val ToonZShows get() = (ToonZCore + ToonZSupporting + ToonZTeatime).distinct()
|
||||
internal val ToonZDayParts get() = listOf(
|
||||
DayPart(6, 10, ToonZCore + ToonZSupporting), DayPart(10, 16, ToonZCore + ToonZSupporting), DayPart(16, 18, ToonZTeatime + ToonZCore),
|
||||
DayPart(18, 0, ToonZCore + ToonZSupporting), DayPart(0, 6, ToonZShows))
|
||||
internal val ToonZMixed get() = ToonZShows.toSet()
|
||||
|
||||
@@ -31,19 +31,10 @@ internal val ChannelPresets = listOf(
|
||||
ChannelPreset(104, "Orbit Gold", GoldShows, smartOnly = true),
|
||||
ChannelPreset(103, "Orbit Three", ThreeShows, smartOnly = true),
|
||||
ChannelPreset(105, "Riot", RiotShows, smartOnly = true),
|
||||
ChannelPreset(602, "Heroes", listOf("Batman: The Animated Series", "Superman: The Animated Series", "Spider-Man: The Animated Series", "X-Men: The Animated Series", "Batman Beyond",
|
||||
"Spider-Man Unlimited", "Justice League", "Justice League Unlimited", "Teen Titans", "Static Shock", "The Spectacular Spider-Man", "Young Justice",
|
||||
"Batman: The Brave and the Bold", "Iron Man: Armored Adventures", "The Avengers: Earth's Mightiest Heroes", "The Batman", "Fantastic Four", "Silver Surfer",
|
||||
"Spider-Man and His Amazing Friends", "Ben 10"), smartOnly = true),
|
||||
ChannelPreset(605, "ToonZ", listOf("Looney Tunes", "The Looney Tunes Show", "Merrie Melodies", "The Bugs Bunny Show", "Tom and Jerry", "The Tom and Jerry Show", "The Flintstones", "The Jetsons",
|
||||
"Popeye the Sailor", "Popeye", "Top Cat", "The Yogi Bear Show", "Wacky Races", "Scooby-Doo, Where Are You!", "The Pink Panther Show", "Woody Woodpecker", "Dastardly and Muttley in Their Flying Machines",
|
||||
"The Huckleberry Hound Show", "Hong Kong Phooey", "Danger Mouse", "Count Duckula", "Bananaman"), smartOnly = true),
|
||||
ChannelPreset(604, "Rewind", listOf("Dexter's Laboratory", "Johnny Bravo", "What's New, Scooby-Doo?", "Courage the Cowardly Dog", "Ed, Edd n Eddy", "Ed Edd n Eddy", "Recess", "The Powerpuff Girls", "Cow and Chicken",
|
||||
"I Am Weasel", "The Grim Adventures of Billy & Mandy", "Codename: Kids Next Door", "Foster's Home for Imaginary Friends", "Hey Arnold!", "Rugrats", "Doug", "CatDog", "Rocko's Modern Life",
|
||||
"Animaniacs", "Pinky and the Brain", "The Wild Thornberrys", "SpongeBob SquarePants"), smartOnly = true),
|
||||
ChannelPreset(603, "Orbit X", listOf("Digimon: Digital Monsters", "Digimon Adventure", "Gargoyles", "The Transformers", "He-Man and the Masters of the Universe", "ThunderCats", "Biker Mice from Mars",
|
||||
"Mighty Morphin Power Rangers", "G.I. Joe: A Real American Hero", "Teenage Mutant Ninja Turtles", "Street Sharks", "SWAT Kats: The Radical Squadron", "Captain Planet and the Planeteers", "M.A.S.K.",
|
||||
"Exosquad", "The Real Ghostbusters", "Inspector Gadget", "She-Ra: Princess of Power", "Bucky O'Hare and the Toad Wars", "Visionaries: Knights of the Magical Light"), smartOnly = true),
|
||||
ChannelPreset(602, "Heroes", HeroesShows, smartOnly = true),
|
||||
ChannelPreset(605, "ToonZ", ToonZShows, smartOnly = true),
|
||||
ChannelPreset(604, "Rewind", RewindShows, smartOnly = true),
|
||||
ChannelPreset(603, "Orbit X", OrbitXShows, smartOnly = true),
|
||||
ChannelPreset(107, "Evidence", listOf("CSI: Crime Scene Investigation", "NCIS", "CSI: Miami", "CSI: NY", "Law & Order", "Law & Order: Special Victims Unit", "Criminal Minds", "Bones",
|
||||
"Castle", "The Mentalist", "Monk", "Columbo", "Midsomer Murders", "Vera", "Luther", "Line of Duty", "Taggart", "Silent Witness", "Waking the Dead", "A Touch of Frost", "Dexter", "Sherlock", "Broadchurch", "Death in Paradise", "Lewis", "Inspector Morse",
|
||||
"Dalziel and Pascoe", "Happy Valley", "The Wire", "Hawaii Five-0", "Blue Bloods"), smartOnly = true),
|
||||
|
||||
@@ -37,12 +37,6 @@ private val ParadoxLate = listOf("Twin Peaks", "The Outer Limits", "The Outer Li
|
||||
private val ParadoxShows get() = (ParadoxStandalones + ParadoxPrimeTime + ParadoxLate).distinct()
|
||||
private val ParadoxDayParts get() = listOf(DayPart(6, 18, ParadoxStandalones), DayPart(18, 23, ParadoxPrimeTime), DayPart(23, 6, ParadoxLate))
|
||||
|
||||
/** Toonami-inspired: Paul's picks and the earlier shortlist, split into cartoons by day and anime from the evening. */
|
||||
private val VortexDaytime = listOf("Batman Beyond", "Batman: The Animated Series", "Superman: The Animated Series", "ThunderCats", "The Powerpuff Girls", "Jonny Quest",
|
||||
"Samurai Jack", "Justice League", "Justice League Unlimited", "Voltron", "Voltron: Defender of the Universe", "ReBoot", "Beast Wars: Transformers")
|
||||
private val VortexEvening = listOf("Dragon Ball Z", "Dragon Ball", "Dragon Ball GT", "Naruto", "Yu Yu Hakusho", "Gundam Wing", "Mobile Suit Gundam Wing", "Sailor Moon", "Robotech", "Ronin Warriors",
|
||||
"Tenchi Muyo", "Tenchi Muyo! Ryo-Ohki", "Tenchi Universe", "Outlaw Star", "The Big O", "Cardcaptors", "Cardcaptor Sakura", "Zoids", "Zoids: Chaotic Century")
|
||||
|
||||
private val NotCultCinema = setOf("Family", "Animation", "Documentary", "Music")
|
||||
|
||||
internal val SmartChannels = listOf(
|
||||
@@ -59,9 +53,8 @@ internal val SmartChannels = listOf(
|
||||
SuggestionRule("day", "Daytime", "Movie", listOf("Science Fiction", "Action"), 1975..2005, 6.5f, setOf("NC-17", "X"), 40, NotCultCinema + "Adventure", 70, 7.9f),
|
||||
SuggestionRule("day", "Daytime", "Movie", listOf("Thriller", "Mystery"), 1975..2005, 6.5f, setOf("NC-17", "X"), 30, NotCultCinema + "Science Fiction", 70, 7.9f),
|
||||
SuggestionRule("late", "Late night", "Movie", listOf("Horror"), 1970..2010, 6f, emptySet(), 90, NotCultCinema, 70))),
|
||||
ChannelProgramming(VORTEX_NUMBER, "Vortex", VortexDaytime + VortexEvening, seriesCount = 40, finishTogether = true, exactTitles = true, englishAudio = false,
|
||||
dayParts = listOf(DayPart(20, 22, group = "movie", days = setOf(java.time.DayOfWeek.FRIDAY, java.time.DayOfWeek.SATURDAY)),
|
||||
DayPart(6, 18, VortexDaytime, group = "day"), DayPart(18, 6, VortexEvening, group = "night")),
|
||||
ChannelProgramming(VORTEX_NUMBER, "Vortex", VortexShows, seriesCount = 40, finishTogether = true, exactTitles = true, englishAudio = false,
|
||||
dayParts = VortexDayParts,
|
||||
suggestionRules = listOf(
|
||||
SuggestionRule("movie", "Movie Night", "Movie", listOf("Animation"), 1985..2025, 5f, setOf("NC-17", "X"), 30, setOf("Documentary"), 30, titleContains = "Dragon Ball"),
|
||||
SuggestionRule("movie", "Movie Night", "Movie", listOf("Animation", "Action"), 1985..2015, 7f, setOf("NC-17", "X"), 30, setOf("Documentary", "Family"), 60),
|
||||
@@ -78,10 +71,12 @@ internal val SmartChannels = listOf(
|
||||
suggestionRules = SmartChannelRules[it.number].orEmpty(), dayParts = SmartChannelParts[it.number].orEmpty(), shuffleTitles = SmartChannelMixed[it.number].orEmpty()) }
|
||||
|
||||
/** Shows that play in a mixed order on channels whose identity is agreed. See ChannelIdentities.kt. */
|
||||
private val SmartChannelMixed: Map<Int, Set<String>> get() = mapOf(101 to Orbit1Mixed, 102 to Orbit2Mixed, 103 to ThreeMixed, 104 to GoldMixed, 105 to RiotMixed)
|
||||
private val SmartChannelMixed: Map<Int, Set<String>> get() = mapOf(101 to Orbit1Mixed, 102 to Orbit2Mixed, 103 to ThreeMixed, 104 to GoldMixed, 105 to RiotMixed,
|
||||
602 to HeroesMixed, 603 to OrbitXMixed, 604 to RewindMixed, 605 to ToonZMixed)
|
||||
|
||||
/** Dark Files, from the programming bible: crime by day, mysteries early evening, the paranormal late. */
|
||||
private val SmartChannelParts: Map<Int, List<DayPart>> get() = mapOf(101 to Orbit1DayParts, 102 to Orbit2DayParts, 103 to ThreeDayParts, 104 to GoldDayParts, 105 to RiotDayParts, 204 to listOf(
|
||||
private val SmartChannelParts: Map<Int, List<DayPart>> get() = mapOf(101 to Orbit1DayParts, 102 to Orbit2DayParts, 103 to ThreeDayParts, 104 to GoldDayParts, 105 to RiotDayParts,
|
||||
602 to HeroesDayParts, 603 to OrbitXDayParts, 604 to RewindDayParts, 605 to ToonZDayParts, 204 to listOf(
|
||||
DayPart(6, 18, DarkFilesCrime, group = "day"), DayPart(18, 21, DarkFilesMysteries, group = "evening"), DayPart(21, 6, DarkFilesParanormal, group = "late")),
|
||||
// Ring X, from the bible: each weeknight's own show, and the whole vault the rest of the week.
|
||||
401 to listOf(DayPart(0, 24, RingXMondayNight, days = setOf(java.time.DayOfWeek.MONDAY)), DayPart(0, 24, RingXImpact, days = setOf(java.time.DayOfWeek.TUESDAY)),
|
||||
|
||||
@@ -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.87.0\"")
|
||||
connection.setRequestProperty("X-Emby-Authorization", "Emby Client=\"Orbit TV\", Device=\"Orbit TV\", DeviceId=\"$deviceId\", Version=\"0.88.0\"")
|
||||
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.87.0")
|
||||
next.setRequestProperty("User-Agent", "OrbitTV/0.88.0")
|
||||
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