Fixed up some tests

pull/4128/head
tidusjar 3 years ago
parent 53f2dbe5ad
commit 4af31f165b

@ -1,23 +1,23 @@
[
{
"title": "Game of Thrones",
"title": "The Falcon and the Winter Soldier",
"aliases": null,
"banner": null,
"seriesId": 0,
"status": "ended",
"firstAired": "2011-04-18T01:00:00",
"network": "HBO",
"status": null,
"firstAired": null,
"network": null,
"networkId": null,
"runtime": "60",
"runtime": null,
"genre": null,
"overview": "Seven noble families fight for control of the mythical land of Westeros. Friction between the houses leads to full-scale war. All while a very ancient evil awakens in the farthest north. Amidst the war, a neglected military order of misfits, the Night's Watch, is all that stands between the realms of men and icy horrors beyond.",
"overview": "Following the events of “Avengers: Endgame”, the Falcon, Sam Wilson and the Winter Soldier, Bucky Barnes team up in a global adventure that tests their abilities, and their patience.",
"lastUpdated": 0,
"airsDayOfWeek": null,
"airsTime": "21:00",
"rating": "9.10556",
"airsTime": null,
"rating": "7.8",
"siteRating": 0,
"trailer": "https://youtube.com/watch?v=bjqEWgDVPe0",
"homepage": "https://www.hbo.com/game-of-thrones",
"trailer": null,
"homepage": null,
"seasonRequests": [],
"requestAll": false,
"firstSeason": false,
@ -25,43 +25,43 @@
"fullyAvailable": false,
"partlyAvailable": false,
"type": 0,
"backdropPath": null,
"id": 121361,
"approved": true,
"denied": false,
"backdropPath": "/qGA31gx01iIJMgk2MyVgurhCGeO.jpg",
"id": 88396,
"approved": false,
"denied": null,
"deniedReason": null,
"requested": true,
"requestId": 1,
"requested": false,
"requestId": 0,
"available": false,
"plexUrl": null,
"embyUrl": null,
"jellyfinUrl": null,
"quality": null,
"imdbId": "tt0944947",
"theTvDbId": "121361",
"imdbId": null,
"theTvDbId": null,
"theMovieDbId": null,
"subscribed": false,
"showSubscribe": false
},
{
"title": "Breaking Bad",
"title": "The Flash",
"aliases": null,
"banner": null,
"seriesId": 0,
"status": "ended",
"firstAired": "2008-01-21T02:00:00",
"network": "AMC",
"status": null,
"firstAired": null,
"network": null,
"networkId": null,
"runtime": "45",
"runtime": null,
"genre": null,
"overview": "When Walter White, a New Mexico chemistry teacher, is diagnosed with Stage III cancer and given a prognosis of only two years left to live. He becomes filled with a sense of fearlessness and an unrelenting desire to secure his family's financial future at any cost as he enters the dangerous world of drugs and crime.",
"overview": "After a particle accelerator causes a freak storm, CSI Investigator Barry Allen is struck by lightning and falls into a coma. Months later he awakens with the power of super speed, granting him the ability to move through Central City like an unseen guardian angel. Though initially excited by his newfound powers, Barry is shocked to discover he is not the only \"meta-human\" who was created in the wake of the accelerator explosion -- and not everyone is using their new powers for good. Barry partners with S.T.A.R. Labs and dedicates his life to protect the innocent. For now, only a few close friends and associates know that Barry is literally the fastest man alive, but it won't be long before the world learns what Barry Allen has become...The Flash.",
"lastUpdated": 0,
"airsDayOfWeek": null,
"airsTime": "21:00",
"rating": "9.28991",
"airsTime": null,
"rating": "7.7",
"siteRating": 0,
"trailer": "https://youtube.com/watch?v=XZ8daibM3AE",
"homepage": "https://www.amc.com/shows/breaking-bad",
"trailer": null,
"homepage": null,
"seasonRequests": [],
"requestAll": false,
"firstSeason": false,
@ -69,8 +69,8 @@
"fullyAvailable": false,
"partlyAvailable": false,
"type": 0,
"backdropPath": null,
"id": 81189,
"backdropPath": "/lJA2RCMfsWoskqlQhXPSLFQGXEJ.jpg",
"id": 60735,
"approved": false,
"denied": null,
"deniedReason": null,
@ -81,31 +81,31 @@
"embyUrl": null,
"jellyfinUrl": null,
"quality": null,
"imdbId": "tt0903747",
"theTvDbId": "81189",
"imdbId": null,
"theTvDbId": null,
"theMovieDbId": null,
"subscribed": false,
"showSubscribe": false
},
{
"title": "The Walking Dead",
"title": "Riverdale",
"aliases": null,
"banner": null,
"seriesId": 0,
"status": "returning series",
"firstAired": "2010-11-01T01:00:00",
"network": "AMC",
"status": null,
"firstAired": null,
"network": null,
"networkId": null,
"runtime": "42",
"runtime": null,
"genre": null,
"overview": "Sheriff's deputy Rick Grimes awakens from a coma to find a post-apocalyptic world dominated by flesh-eating zombies. He sets out to find his family and encounters many other survivors along the way.",
"overview": "Set in the present, the series offers a bold, subversive take on Archie, Betty, Veronica and their friends, exploring the surreality of small-town life, the darkness and weirdness bubbling beneath Riverdales wholesome facade.",
"lastUpdated": 0,
"airsDayOfWeek": null,
"airsTime": "21:00",
"rating": "8.18472269269855",
"airsTime": null,
"rating": "8.6",
"siteRating": 0,
"trailer": "https://youtube.com/watch?v=R1v0uFms68U",
"homepage": "https://www.amc.com/shows/the-walking-dead",
"trailer": null,
"homepage": null,
"seasonRequests": [],
"requestAll": false,
"firstSeason": false,
@ -113,8 +113,8 @@
"fullyAvailable": false,
"partlyAvailable": false,
"type": 0,
"backdropPath": null,
"id": 153021,
"backdropPath": "/wRbjVBdDo5qHAEOVYoMWpM58FSA.jpg",
"id": 69050,
"approved": false,
"denied": null,
"deniedReason": null,
@ -125,31 +125,31 @@
"embyUrl": null,
"jellyfinUrl": null,
"quality": null,
"imdbId": "tt1520211",
"theTvDbId": "153021",
"imdbId": null,
"theTvDbId": null,
"theMovieDbId": null,
"subscribed": false,
"showSubscribe": false
},
{
"title": "The Big Bang Theory",
"title": "The Good Doctor",
"aliases": null,
"banner": null,
"seriesId": 0,
"status": "ended",
"firstAired": "2007-09-25T00:00:00",
"network": "CBS",
"status": null,
"firstAired": null,
"network": null,
"networkId": null,
"runtime": "25",
"runtime": null,
"genre": null,
"overview": "A woman who moves into an apartment across the hall from two brilliant but socially awkward physicists shows them how little they know about life outside of the laboratory.",
"overview": "A young surgeon with Savant syndrome is recruited into the surgical unit of a prestigious hospital. The question will arise: can a person who doesn't have the ability to relate to people actually save their lives",
"lastUpdated": 0,
"airsDayOfWeek": null,
"airsTime": "20:00",
"rating": "8.14052",
"airsTime": null,
"rating": "8.6",
"siteRating": 0,
"trailer": "https://youtube.com/watch?v=3g2yTcg1QFI",
"homepage": "https://www.cbs.com/shows/big_bang_theory/",
"trailer": null,
"homepage": null,
"seasonRequests": [],
"requestAll": false,
"firstSeason": false,
@ -157,43 +157,43 @@
"fullyAvailable": false,
"partlyAvailable": false,
"type": 0,
"backdropPath": null,
"id": 80379,
"approved": false,
"denied": null,
"backdropPath": "/6tfT03sGp9k4c0J3dypjrI8TSAI.jpg",
"id": 71712,
"approved": true,
"denied": false,
"deniedReason": null,
"requested": false,
"requestId": 0,
"requested": true,
"requestId": 2,
"available": false,
"plexUrl": null,
"embyUrl": null,
"jellyfinUrl": null,
"quality": null,
"imdbId": "tt0898266",
"theTvDbId": "80379",
"imdbId": null,
"theTvDbId": null,
"theMovieDbId": null,
"subscribed": false,
"showSubscribe": false
},
{
"title": "Sherlock",
"title": "WandaVision",
"aliases": null,
"banner": null,
"seriesId": 0,
"status": "ended",
"firstAired": "2010-07-25T20:00:00",
"network": "BBC One",
"status": null,
"firstAired": null,
"network": null,
"networkId": null,
"runtime": "90",
"runtime": null,
"genre": null,
"overview": "A modern update finds the famous sleuth and his doctor partner solving crime in 21st century London.",
"overview": "Wanda Maximoff and Vision—two super-powered beings living idealized suburban lives—begin to suspect that everything is not as it seems.",
"lastUpdated": 0,
"airsDayOfWeek": null,
"airsTime": "21:00",
"rating": "9.043281293560078",
"airsTime": null,
"rating": "8.5",
"siteRating": 0,
"trailer": "https://youtube.com/watch?v=xK7S9mrFWL4",
"homepage": "https://www.bbc.co.uk/programmes/b018ttws",
"trailer": null,
"homepage": null,
"seasonRequests": [],
"requestAll": false,
"firstSeason": false,
@ -201,8 +201,8 @@
"fullyAvailable": false,
"partlyAvailable": false,
"type": 0,
"backdropPath": null,
"id": 176941,
"backdropPath": "/glKDfE6btIRcVB5zrjspRIs4r52.jpg",
"id": 85271,
"approved": false,
"denied": null,
"deniedReason": null,
@ -213,31 +213,31 @@
"embyUrl": null,
"jellyfinUrl": null,
"quality": null,
"imdbId": "tt1475582",
"theTvDbId": "176941",
"imdbId": null,
"theTvDbId": null,
"theMovieDbId": null,
"subscribed": false,
"showSubscribe": false
},
{
"title": "How I Met Your Mother",
"title": "Superman & Lois",
"aliases": null,
"banner": null,
"seriesId": 0,
"status": "ended",
"firstAired": "2005-09-20T00:00:00",
"network": "CBS",
"status": null,
"firstAired": null,
"network": null,
"networkId": null,
"runtime": "22",
"runtime": null,
"genre": null,
"overview": "A father recounts to his children - through a series of flashbacks - the journey he and his four best friends took leading up to him meeting their mother.",
"overview": "After years of facing megalomaniacal supervillains, monsters wreaking havoc on Metropolis, and alien invaders intent on wiping out the human race, The Man of Steel aka Clark Kent and Lois Lane come face to face with one of their greatest challenges ever: dealing with all the stress, pressures and complexities that come with being working parents in today's society.",
"lastUpdated": 0,
"airsDayOfWeek": null,
"airsTime": "20:00",
"rating": "8.24396",
"airsTime": null,
"rating": "8.3",
"siteRating": 0,
"trailer": "https://youtube.com/watch?v=XgUmyAGwxgw",
"homepage": "https://www.cbs.com/shows/how_i_met_your_mother/",
"trailer": null,
"homepage": null,
"seasonRequests": [],
"requestAll": false,
"firstSeason": false,
@ -245,43 +245,43 @@
"fullyAvailable": false,
"partlyAvailable": false,
"type": 0,
"backdropPath": null,
"id": 75760,
"backdropPath": "/6SJppowm7cdQgLkvoTlnTUSbjr9.jpg",
"id": 95057,
"approved": false,
"denied": null,
"denied": false,
"deniedReason": null,
"requested": false,
"requestId": 0,
"requested": true,
"requestId": 3,
"available": false,
"plexUrl": null,
"embyUrl": null,
"jellyfinUrl": null,
"quality": null,
"imdbId": "tt0460649",
"theTvDbId": "75760",
"imdbId": null,
"theTvDbId": null,
"theMovieDbId": null,
"subscribed": false,
"showSubscribe": false
},
{
"title": "Dexter",
"title": "Grey's Anatomy",
"aliases": null,
"banner": null,
"seriesId": 0,
"status": "ended",
"firstAired": "2006-10-02T01:00:00",
"network": "Showtime",
"status": null,
"firstAired": null,
"network": null,
"networkId": null,
"runtime": "50",
"runtime": null,
"genre": null,
"overview": "Dexter Morgan, a blood spatter pattern analyst for the Miami Metro Police also leads a secret life as a serial killer, hunting down criminals who have slipped through the cracks of justice.",
"overview": "Follows the personal and professional lives of a group of doctors at Seattles Grey Sloan Memorial Hospital.",
"lastUpdated": 0,
"airsDayOfWeek": null,
"airsTime": "21:00",
"rating": "8.56617",
"airsTime": null,
"rating": "8.2",
"siteRating": 0,
"trailer": "https://youtube.com/watch?v=YQeUmSD1c3g",
"homepage": "https://www.sho.com/dexter",
"trailer": null,
"homepage": null,
"seasonRequests": [],
"requestAll": false,
"firstSeason": false,
@ -289,8 +289,8 @@
"fullyAvailable": false,
"partlyAvailable": false,
"type": 0,
"backdropPath": null,
"id": 79349,
"backdropPath": "/clnyhPqj1SNgpAdeSS6a6fwE6Bo.jpg",
"id": 1416,
"approved": false,
"denied": null,
"deniedReason": null,
@ -301,31 +301,31 @@
"embyUrl": null,
"jellyfinUrl": null,
"quality": null,
"imdbId": "tt0773262",
"theTvDbId": "79349",
"imdbId": null,
"theTvDbId": null,
"theMovieDbId": null,
"subscribed": false,
"showSubscribe": false
},
{
"title": "Friends",
"title": "The Walking Dead",
"aliases": null,
"banner": null,
"seriesId": 0,
"status": "ended",
"firstAired": "1994-09-23T00:00:00",
"network": "NBC",
"status": null,
"firstAired": null,
"network": null,
"networkId": null,
"runtime": "25",
"runtime": null,
"genre": null,
"overview": "The misadventures of a group of friends as they navigate the pitfalls of work, life and love in Manhattan.",
"overview": "Sheriff's deputy Rick Grimes awakens from a coma to find a post-apocalyptic world dominated by flesh-eating zombies. He sets out to find his family and encounters many other survivors along the way.",
"lastUpdated": 0,
"airsDayOfWeek": null,
"airsTime": "20:00",
"rating": "8.72021",
"airsTime": null,
"rating": "8",
"siteRating": 0,
"trailer": "https://youtube.com/watch?v=hDNNmeeJs1Q",
"homepage": "",
"trailer": null,
"homepage": null,
"seasonRequests": [],
"requestAll": false,
"firstSeason": false,
@ -333,8 +333,8 @@
"fullyAvailable": false,
"partlyAvailable": false,
"type": 0,
"backdropPath": null,
"id": 79168,
"backdropPath": "/rqeYMLryjcawh2JeRpCVUDXYM5b.jpg",
"id": 1402,
"approved": false,
"denied": null,
"deniedReason": null,
@ -345,31 +345,31 @@
"embyUrl": null,
"jellyfinUrl": null,
"quality": null,
"imdbId": "tt0108778",
"theTvDbId": "79168",
"imdbId": null,
"theTvDbId": null,
"theMovieDbId": null,
"subscribed": false,
"showSubscribe": false
},
{
"title": "Stranger Things",
"title": "Lucifer",
"aliases": null,
"banner": null,
"seriesId": 0,
"status": "returning series",
"firstAired": "2016-07-15T07:00:00",
"network": "Netflix",
"status": null,
"firstAired": null,
"network": null,
"networkId": null,
"runtime": "50",
"runtime": null,
"genre": null,
"overview": "When a young boy vanishes, a small town uncovers a mystery involving secret experiments, terrifying supernatural forces, and one strange little girl.",
"overview": "Bored and unhappy as the Lord of Hell, Lucifer Morningstar abandoned his throne and retired to Los Angeles, where he has teamed up with LAPD detective Chloe Decker to take down criminals. But the longer he's away from the underworld, the greater the threat that the worst of humanity could escape.",
"lastUpdated": 0,
"airsDayOfWeek": null,
"airsTime": "03:00",
"rating": "8.705786185554972",
"airsTime": null,
"rating": "8.5",
"siteRating": 0,
"trailer": "https://youtube.com/watch?v=b9EkMc79ZSU",
"homepage": "https://www.netflix.com/title/80057281",
"trailer": null,
"homepage": null,
"seasonRequests": [],
"requestAll": false,
"firstSeason": false,
@ -377,8 +377,8 @@
"fullyAvailable": false,
"partlyAvailable": false,
"type": 0,
"backdropPath": null,
"id": 305288,
"backdropPath": "/4EYPN5mVIhKLfxGruy7Dy41dTVn.jpg",
"id": 63174,
"approved": false,
"denied": null,
"deniedReason": null,
@ -389,31 +389,31 @@
"embyUrl": null,
"jellyfinUrl": null,
"quality": null,
"imdbId": "tt4574334",
"theTvDbId": "305288",
"imdbId": null,
"theTvDbId": null,
"theMovieDbId": null,
"subscribed": false,
"showSubscribe": false
},
{
"title": "Arrow",
"title": "Sky Rojo",
"aliases": null,
"banner": null,
"seriesId": 0,
"status": "ended",
"firstAired": "2012-10-11T01:00:00",
"network": "The CW",
"status": null,
"firstAired": null,
"network": null,
"networkId": null,
"runtime": "42",
"runtime": null,
"genre": null,
"overview": "Spoiled billionaire playboy Oliver Queen is missing and presumed dead when his yacht is lost at sea. He returns five years later a changed man, determined to clean up the city as a hooded vigilante armed with a bow.",
"overview": "On the run from their pimp and his henchmen, three women embark on a wild and crazy journey in search of freedom.",
"lastUpdated": 0,
"airsDayOfWeek": null,
"airsTime": "21:00",
"rating": "7.70376",
"airsTime": null,
"rating": "8.1",
"siteRating": 0,
"trailer": "https://youtube.com/watch?v=hTv13EjlLNg",
"homepage": "https://www.cwtv.com/shows/arrow",
"trailer": null,
"homepage": null,
"seasonRequests": [],
"requestAll": false,
"firstSeason": false,
@ -421,8 +421,8 @@
"fullyAvailable": false,
"partlyAvailable": false,
"type": 0,
"backdropPath": null,
"id": 257655,
"backdropPath": "/uTFX9V2dct1nKjG6zhNiThPm8Tp.jpg",
"id": 117023,
"approved": false,
"denied": null,
"deniedReason": null,
@ -433,31 +433,31 @@
"embyUrl": null,
"jellyfinUrl": null,
"quality": null,
"imdbId": "tt2193021",
"theTvDbId": "257655",
"imdbId": null,
"theTvDbId": null,
"theMovieDbId": null,
"subscribed": false,
"showSubscribe": false
},
{
"title": "Lost",
"title": "The Boarding School: Las Cumbres",
"aliases": null,
"banner": null,
"seriesId": 0,
"status": "ended",
"firstAired": "2004-09-23T01:00:00",
"network": "ABC",
"status": null,
"firstAired": null,
"network": null,
"networkId": null,
"runtime": "42",
"runtime": null,
"genre": null,
"overview": "Stripped of everything, the survivors of a horrific plane crash must work together to stay alive. But the island holds many secrets.",
"overview": "In an inaccessible place between the mountains and isolated from the world, a school is located next to an old monastery. The students are rebellious and problematic young people who live under the strict and severe discipline imposed by the center to reintegrate them into society. The surrounding forest is home to ancient legends, threats that are still valid and that will immerse them in terrifying adventures.",
"lastUpdated": 0,
"airsDayOfWeek": null,
"airsTime": "21:00",
"rating": "8.23659",
"airsTime": null,
"rating": "7.5",
"siteRating": 0,
"trailer": "https://youtube.com/watch?v=72kQIIDBIUU",
"homepage": "https://abc.go.com/shows/lost",
"trailer": null,
"homepage": null,
"seasonRequests": [],
"requestAll": false,
"firstSeason": false,
@ -465,8 +465,8 @@
"fullyAvailable": false,
"partlyAvailable": false,
"type": 0,
"backdropPath": null,
"id": 73739,
"backdropPath": "/kl07N07l4XNjXF48oujzWXs40Dw.jpg",
"id": 97513,
"approved": false,
"denied": null,
"deniedReason": null,
@ -477,31 +477,31 @@
"embyUrl": null,
"jellyfinUrl": null,
"quality": null,
"imdbId": "tt0411008",
"theTvDbId": "73739",
"imdbId": null,
"theTvDbId": null,
"theMovieDbId": null,
"subscribed": false,
"showSubscribe": false
},
{
"title": "House",
"title": "The Rookie",
"aliases": null,
"banner": null,
"seriesId": 0,
"status": "ended",
"firstAired": "2004-11-17T02:00:00",
"network": "FOX",
"status": null,
"firstAired": null,
"network": null,
"networkId": null,
"runtime": "45",
"runtime": null,
"genre": null,
"overview": "Dr. Gregory House is a maverick physician who is devoid of bedside manner. While his behavior can border on antisocial, Dr. House thrives on the challenge of solving the medical puzzles that other doctors give up on. Together with his hand-picked team of young medical experts, he'll do whatever it takes in the race against the clock to solve the case.",
"overview": "Starting over isnt easy, especially for small-town guy John Nolan who, after a life-altering incident, is pursuing his dream of being an LAPD officer. As the forces oldest rookie, hes met with skepticism from some higher-ups who see him as just a walking midlife crisis.",
"lastUpdated": 0,
"airsDayOfWeek": null,
"airsTime": "21:00",
"rating": "8.66596",
"airsTime": null,
"rating": "8",
"siteRating": 0,
"trailer": "https://youtube.com/watch?v=MczMB8nU1sY",
"homepage": "https://www.fox.com/house/index.htm",
"trailer": null,
"homepage": null,
"seasonRequests": [],
"requestAll": false,
"firstSeason": false,
@ -509,8 +509,8 @@
"fullyAvailable": false,
"partlyAvailable": false,
"type": 0,
"backdropPath": null,
"id": 73255,
"backdropPath": "/6hChiX0vIjWY4y2kz1WndHVMsDu.jpg",
"id": 79744,
"approved": false,
"denied": null,
"deniedReason": null,
@ -521,31 +521,31 @@
"embyUrl": null,
"jellyfinUrl": null,
"quality": null,
"imdbId": "tt0412142",
"theTvDbId": "73255",
"imdbId": null,
"theTvDbId": null,
"theMovieDbId": null,
"subscribed": false,
"showSubscribe": false
},
{
"title": "Homeland",
"title": "The Boys",
"aliases": null,
"banner": null,
"seriesId": 0,
"status": "ended",
"firstAired": "2011-10-03T01:00:00",
"network": "Showtime",
"status": null,
"firstAired": null,
"network": null,
"networkId": null,
"runtime": "45",
"runtime": null,
"genre": null,
"overview": "CIA officer Carrie Mathison is tops in her field despite being bipolar, which makes her volatile and unpredictable. With the help of her long-time mentor Saul Berenson, Carrie fearlessly risks everything, including her personal well-being and even sanity, at every turn.",
"overview": "A group of vigilantes known informally as “The Boys” set out to take down corrupt superheroes with no more than blue-collar grit and a willingness to fight dirty.",
"lastUpdated": 0,
"airsDayOfWeek": null,
"airsTime": "21:00",
"rating": "8.343610105492623",
"airsTime": null,
"rating": "8.4",
"siteRating": 0,
"trailer": "https://youtube.com/watch?v=KyFmS3wRPCQ",
"homepage": "https://www.sho.com/sho/homeland/home",
"trailer": null,
"homepage": null,
"seasonRequests": [],
"requestAll": false,
"firstSeason": false,
@ -553,8 +553,8 @@
"fullyAvailable": false,
"partlyAvailable": false,
"type": 0,
"backdropPath": null,
"id": 247897,
"backdropPath": "/mY7SeH4HFFxW1hiI6cWuwCRKptN.jpg",
"id": 76479,
"approved": false,
"denied": null,
"deniedReason": null,
@ -565,31 +565,31 @@
"embyUrl": null,
"jellyfinUrl": null,
"quality": null,
"imdbId": "tt1796960",
"theTvDbId": "247897",
"imdbId": null,
"theTvDbId": null,
"theMovieDbId": null,
"subscribed": false,
"showSubscribe": false
},
{
"title": "House of Cards",
"title": "The Act",
"aliases": null,
"banner": null,
"seriesId": 0,
"status": "ended",
"firstAired": "2013-02-01T08:00:00",
"network": "Netflix",
"status": null,
"firstAired": null,
"network": null,
"networkId": null,
"runtime": "50",
"runtime": null,
"genre": null,
"overview": "Set in present day Washington, D.C., House of Cards is the story of Frank Underwood, a ruthless and cunning politician, and his wife Claire who will stop at nothing to conquer everything. This wicked political drama penetrates the shadowy world of greed, sex and corruption in modern D.C.",
"overview": "A seasonal anthology series that tells startling, stranger-than-fiction true crime stories with the first season following Gypsy Blanchard, a girl trying to escape the toxic relationship she has with her overprotective mother.",
"lastUpdated": 0,
"airsDayOfWeek": null,
"airsTime": "03:00",
"rating": "8.667647295881357",
"airsTime": null,
"rating": "7.5",
"siteRating": 0,
"trailer": "https://youtube.com/watch?v=x1E8PSGcyqI",
"homepage": "https://www.netflix.com/title/70178217",
"trailer": null,
"homepage": null,
"seasonRequests": [],
"requestAll": false,
"firstSeason": false,
@ -597,8 +597,8 @@
"fullyAvailable": false,
"partlyAvailable": false,
"type": 0,
"backdropPath": null,
"id": 262980,
"backdropPath": "/vb1sQLC2MqfCPOFqHd8SyVsyDVB.jpg",
"id": 82883,
"approved": false,
"denied": null,
"deniedReason": null,
@ -609,31 +609,31 @@
"embyUrl": null,
"jellyfinUrl": null,
"quality": null,
"imdbId": "tt1856010",
"theTvDbId": "262980",
"imdbId": null,
"theTvDbId": null,
"theMovieDbId": null,
"subscribed": false,
"showSubscribe": false
},
{
"title": "Supernatural",
"title": "The Vampire Diaries",
"aliases": null,
"banner": null,
"seriesId": 0,
"status": "ended",
"firstAired": "2005-09-14T00:00:00",
"network": "The CW",
"status": null,
"firstAired": null,
"network": null,
"networkId": null,
"runtime": "45",
"runtime": null,
"genre": null,
"overview": "When they were boys, Sam and Dean Winchester lost their mother to a mysterious and demonic supernatural force. Subsequently, their father raised them to be soldiers. He taught them about the paranormal evil that lives in the dark corners and on the back roads of America ... and he taught them how to kill it. Now, the Winchester brothers crisscross the country in their '67 Chevy Impala, battling every kind of supernatural threat they encounter along the way.",
"overview": "The story of two vampire brothers obsessed with the same girl, who bears a striking resemblance to the beautiful but ruthless vampire they knew and loved in 1864.",
"lastUpdated": 0,
"airsDayOfWeek": null,
"airsTime": "20:00",
"rating": "8.448307891123497",
"airsTime": null,
"rating": "8.3",
"siteRating": 0,
"trailer": "",
"homepage": "https://www.cwtv.com/shows/supernatural",
"trailer": null,
"homepage": null,
"seasonRequests": [],
"requestAll": false,
"firstSeason": false,
@ -641,8 +641,8 @@
"fullyAvailable": false,
"partlyAvailable": false,
"type": 0,
"backdropPath": null,
"id": 78901,
"backdropPath": "/aBkVgChtyyJaHyZh1gfd8DbzQon.jpg",
"id": 18165,
"approved": false,
"denied": null,
"deniedReason": null,
@ -653,31 +653,31 @@
"embyUrl": null,
"jellyfinUrl": null,
"quality": null,
"imdbId": "tt0460681",
"theTvDbId": "78901",
"imdbId": null,
"theTvDbId": null,
"theMovieDbId": null,
"subscribed": false,
"showSubscribe": false
},
{
"title": "Fringe",
"title": "The Umbrella Academy",
"aliases": null,
"banner": null,
"seriesId": 0,
"status": "ended",
"firstAired": "2008-09-10T01:00:00",
"network": "FOX",
"status": null,
"firstAired": null,
"network": null,
"networkId": null,
"runtime": "46",
"runtime": null,
"genre": null,
"overview": "FBI Special Agent Olivia Dunham, brilliant but formerly institutionalized scientist Walter Bishop and his scheming, reluctant son Peter uncover a deadly mystery involving a series of unbelievable events and realize they may be a part of a larger, more disturbing pattern that blurs the line between science fiction and technology.",
"overview": "A dysfunctional family of superheroes comes together to solve the mystery of their father's death, the threat of the apocalypse and more.",
"lastUpdated": 0,
"airsDayOfWeek": null,
"airsTime": "21:00",
"rating": "8.697706364733797",
"airsTime": null,
"rating": "8.8",
"siteRating": 0,
"trailer": "https://youtube.com/watch?v=29bSzbqZ3xE",
"homepage": "https://www.fox.com/fringe",
"trailer": null,
"homepage": null,
"seasonRequests": [],
"requestAll": false,
"firstSeason": false,
@ -685,8 +685,8 @@
"fullyAvailable": false,
"partlyAvailable": false,
"type": 0,
"backdropPath": null,
"id": 82066,
"backdropPath": "/scZlQQYnDVlnpxFTxaIv2g0BWnL.jpg",
"id": 75006,
"approved": false,
"denied": null,
"deniedReason": null,
@ -697,31 +697,31 @@
"embyUrl": null,
"jellyfinUrl": null,
"quality": null,
"imdbId": "tt1119644",
"theTvDbId": "82066",
"imdbId": null,
"theTvDbId": null,
"theMovieDbId": null,
"subscribed": false,
"showSubscribe": false
},
{
"title": "Suits",
"title": "Mayans M.C.",
"aliases": null,
"banner": null,
"seriesId": 0,
"status": "ended",
"firstAired": "2011-06-24T01:00:00",
"network": "USA Network",
"status": null,
"firstAired": null,
"network": null,
"networkId": null,
"runtime": "43",
"runtime": null,
"genre": null,
"overview": "College drop-out Mike Ross accidentally lands a job with one of New York's best legal closers, Harvey Specter. They soon become a winning team with Mike's raw talent and photographic memory, and Mike soon reminds Harvey of why he went into the field of law in the first place.",
"overview": "Set in the aftermath of Jax Tellers death, Ezekiel \"EZ\" Reyes is fresh out of prison and a prospect in the Mayans M.C. charter on the Cali/Mexi border. Now, EZ must carve out his new identity in a town where he was once the golden boy with the American Dream in his grasp.",
"lastUpdated": 0,
"airsDayOfWeek": null,
"airsTime": "21:00",
"rating": "8.55011",
"airsTime": null,
"rating": "7.8",
"siteRating": 0,
"trailer": "https://youtube.com/watch?v=2Q18TnxZxLI",
"homepage": "https://www.usanetwork.com/suits",
"trailer": null,
"homepage": null,
"seasonRequests": [],
"requestAll": false,
"firstSeason": false,
@ -729,8 +729,8 @@
"fullyAvailable": false,
"partlyAvailable": false,
"type": 0,
"backdropPath": null,
"id": 247808,
"backdropPath": "/gaKhfksFK24N19bjlFpJxamYZ02.jpg",
"id": 76231,
"approved": false,
"denied": null,
"deniedReason": null,
@ -741,8 +741,8 @@
"embyUrl": null,
"jellyfinUrl": null,
"quality": null,
"imdbId": "tt1632701",
"theTvDbId": "247808",
"imdbId": null,
"theTvDbId": null,
"theMovieDbId": null,
"subscribed": false,
"showSubscribe": false

@ -1,51 +1,102 @@
import { movieDetailsPage as Page } from "@/integration/page-objects";
describe("TV Search V1 API tests", () => {
beforeEach(() => {
cy.login();
});
beforeEach(() => {
cy.login();
});
it("Get Extra TV Info", () => {
cy.api({url: '/api/v1/search/tv/info/287247', headers: { 'Authorization': 'Bearer ' + window.localStorage.getItem('id_token')} })
.then((res) => {
expect(res.status).equal(200);
cy.fixture('api/v1/tv-search-extra-info').then(x => {
expect(res.body).deep.equal(x);
})
});
it("Get Extra TV Info", () => {
cy.api({
url: "/api/v1/search/tv/info/287247",
headers: {
Authorization: "Bearer " + window.localStorage.getItem("id_token"),
},
}).then((res) => {
expect(res.status).equal(200);
const body = res.body;
cy.fixture("api/v1/tv-search-extra-info").then((x) => {
expect(res.body.title).equal(x.title);
expect(res.body.status).equal(x.status);
expect(res.body.id).equal(x.id);
expect(res.body.firstAired).equal(x.firstAired);
expect(res.body.network).equal(x.network);
expect(res.body.seriesId).equal(x.seriesId);
expect(res.body.runtime).equal(x.runtime);
expect(res.body.networkId).equal(x.networkId);
expect(res.body.overview).equal(x.overview);
expect(res.body.seasonRequests.length).equal(x.seasonRequests.length);
expect(res.body.seasonRequests[0].seasonNumber).equal(
x.seasonRequests[0].seasonNumber
);
expect(res.body.seasonRequests[0].episodes.length).equal(
x.seasonRequests[0].episodes.length
);
expect(res.body.seasonRequests[0].episodes[0].episodeNumber).equal(
x.seasonRequests[0].episodes[0].episodeNumber
);
expect(res.body.seasonRequests[0].episodes[0].title).equal(
x.seasonRequests[0].episodes[0].title
);
expect(res.body.seasonRequests[0].episodes[0].airDate).equal(
x.seasonRequests[0].episodes[0].airDate
);
expect(res.body.seasonRequests[0].episodes[0].url).equal(
x.seasonRequests[0].episodes[0].url
);
expect(res.body.seasonRequests[0].episodes[0].available).equal(
x.seasonRequests[0].episodes[0].available
);
expect(res.body.seasonRequests[0].episodes[0].requested).equal(
x.seasonRequests[0].episodes[0].requested
);
expect(res.body.seasonRequests[0].episodes[0].approved).equal(
x.seasonRequests[0].episodes[0].approved
);
expect(res.body.seasonRequests[0].episodes[0].airDateDisplay).equal(
x.seasonRequests[0].episodes[0].airDateDisplay
);
expect(res.body.seasonRequests[0].seasonAvailable).equal(
x.seasonRequests[0].seasonAvailable
);
expect(res.body.id).equal(x.id);
expect(res.body.imdbId).equal(x.imdbId);
expect(res.body.theMovieDbId).equal(x.theMovieDbId);
});
});
});
it("TV Basic Search", () => {
cy.api({url: '/api/v1/search/tv/Shitts Creek', headers: { 'Authorization': 'Bearer ' + window.localStorage.getItem('id_token')} })
.then((res) => {
expect(res.status).equal(200);
const body = res.body;
expect(body[0].title).is.equal("Schitt's Creek")
expect(body[0].status).is.equal("Ended");
expect(body[0].id).is.not.null;
expect(body[0].id).to.be.an('number');
});
});
it("TV Basic Search", () => {
cy.api({
url: "/api/v1/search/tv/Shitts Creek",
headers: {
Authorization: "Bearer " + window.localStorage.getItem("id_token"),
},
}).then((res) => {
expect(res.status).equal(200);
const body = res.body;
expect(body[0].title).is.equal("Schitt's Creek");
expect(body[0].status).is.equal("Ended");
expect(body[0].id).is.not.null;
expect(body[0].id).to.be.an("number");
});
});
const types = [
'popular',
'trending',
'anticipated',
'mostwatched'
];
const types = ["popular", "trending", "anticipated", "mostwatched"];
types.forEach((type) => {
// derive test name from data
it(`${type} TV List`, () => {
cy.api({url: '/api/v1/search/tv/'+type, headers: { 'Authorization': 'Bearer ' + window.localStorage.getItem('id_token')} })
.then((res) => {
expect(res.status).equal(200);
const body = res.body;
expect(body.length).is.greaterThan(0);
expect(body[0].title).is.not.null;
expect(body[0].id).is.not.null;
expect(body[0].id).to.be.an('number');
});
// derive test name from data
it(`${type} TV List`, () => {
cy.api({
url: "/api/v1/search/tv/" + type,
headers: {
Authorization: "Bearer " + window.localStorage.getItem("id_token"),
},
}).then((res) => {
expect(res.status).equal(200);
const body = res.body;
expect(body.length).is.greaterThan(0);
expect(body[0].title).is.not.null;
expect(body[0].id).is.not.null;
expect(body[0].id).to.be.an("number");
});
});
});
});
});

@ -127,6 +127,7 @@ describe("Movie Details Buttons", () => {
cy.verifyNotification("Denied Request");
cy.wait(1000);
Page.informationPanel.denyReason.should('have.text', "Automation Tests");
});

@ -227,23 +227,24 @@ describe("Discover Cards Requests Tests", () => {
});
});
it.only("Available TV (From Details Call) does not allow us to request", () => {
cy.intercept("GET", "**/search/Tv/popular/**").as("cardsResponse");
it("Available TV (From Details Call) does not allow us to request", () => {
cy.intercept("GET", "**/search/Tv/popular/**", { fixture: '/discover/popularTv'}).as("cardsResponse");
cy.intercept("GET", "**/search/Tv/moviedb/88396", (req) => {
req.reply((res2) => {
const body = res2.body;
body.fullyAvailable = true;
res2.send(body);
});
}).as("movieDbResponse");
window.localStorage.setItem("DiscoverOptions2", "3");
Page.visit();
cy.wait("@cardsResponse").then((res) => {
const body = res.response.body;
var expectedId = body[1].id;
cy.intercept("GET", "**/search/Tv/moviedb/"+expectedId, (req) => {
req.reply((res2) => {
const body = res2.body;
body.fullyAvailable = true;
res2.send(body);
});
}).as("movieDbResponse");
var title = body[1].title;
var expectedId = "88396";
var title = body[0].title;
cy.wait("@movieDbResponse")

Loading…
Cancel
Save