var showsHolder = document.getElementById("showsHolder");
var sortMethods = ["a-z","genre","phase"];

var CBCShows = [{
"title" : "2020 Indspire Awards",
"image" : "/tv/content/entry/Indspire2019_Youth-Inuit-Kelly-Fraser.jpg",
"description" : "Celebrating exceptional First Nations, Inuit, and Métis individuals, this year's Indspire Awards highlights the significant contributions of Indigenous people in Canada.",
"airtime" : "Start streaming on CBC Gem",
"showURL" : "https://www.cbc.ca/indspire",
"watchURL" : "https://gem.cbc.ca/media/everything-indigenous/season-1/episode-13/38e815a-012d5bf6a78",
"phase" : "Gem",
"genre" : { "name" : "Unscripted", "type" : "unscripted"}
},
{
"title" : "21 Thunder",
"image" : "/tv/content/entry/21Thunder-generic-300.jpg",
"description" : "In the cutthroat world of pro soccer, a club lives and dies by the stars on its under-21 team.",
"airtime" : "Now Streaming on CBC Gem",
"showURL" : "https://www.cbc.ca/21thunder",
"watchURL" : "https://watch.cbc.ca/season/21-thunder/season-1/1a5cc774-dc01-4381-a513-f273abfd0345",
"phase" : "Gem",
"genre" : { "name" : "Drama", "type" : "drama"}
},
{
"title" : "22 Minutes",
"image" : "/tv/content/entry/22-minutes-s27.jpg",
"description" : "THIS HOUR HAS 22 MINUTES delights audiences with a weekly fresh and hilarious take on Canadian politics and culture. Guest-starring Canada's most popular and unpopular politicians, 22 MINUTES mixes news satire, sketch and ambush comedy.",
"airtime" : "Tuesdays at 8:30pm/9NT",
"showURL" : "https://www.cbc.ca/22minutes",
"watchURL" : "https://gem.cbc.ca/season/this-hour-has-22-minutes/season-27/65a3542b-707b-4f54-8502-e91b9c416bed",
"phase" : "Broadcast",
"genre" : { "name" : "Comedy", "type" : "comedy"}
},
{
"title" : "Absolutely Canadian",
"image" : "/tv/content/entry/absolutely_canadian.jpg",
"description" : "Absolutely Canadian is a one-hour series showcasing the best in regional documentary and performance from across Canada. Each locally produced program highlights diverse stories and dynamic musical acts, straight from Canadian communities.",
"airtime" : "Wednesdays at 5:00pm ET",
"showURL" : "",
"watchURL" : "https://watch.cbc.ca/season/absolutely-canadian/absolutely-canadian/05e71c4e-1248-4b9e-8ccb-301484ec3523",
"phase" : "Gem",
"genre" : { "name" : "Documentary", "type" : "documentary"}
},
{
"title" : "Anne with an E",
"image" : "/tv/content/entry/anne-s3.jpg",
"description" : "Anne is an outsider who, against all odds and numerous challenges, fights for love and acceptance and her place in the world.",
"airtime" : "Watch on CBC Gem",
"showURL" : "https://www.cbc.ca/anne/",
"watchURL" : "https://gem.cbc.ca/season/anne-with-an-e/season-3/52d528d7-e68a-4529-9194-71003d527cf1",
"phase" : "Gem",
"genre" : { "name" : "Drama", "type" : "drama"}
},
{
"title" : "Anyone&#8217;s Game",
"image" : "/tv/content/entry/AG_poster_d_w_leaf.jpg",
"description" : "Follow Canada's top high school basketball program as they fight for hardwood supremacy in the prestigious Grind Session tournament",
"airtime" : "Fridays at 8:30 p.m.",
"showURL" : "https://www.cbc.ca/television/anyonesgame",
"watchURL" : "https://gem.cbc.ca/",
"phase" : "Premiering",
"genre" : { "name" : "Documentary", "type" : "documentary"}
},
{
"title" : "Arctic Vets",
"image" : "/tv/content/entry/ArcticVets_ShowListing_1280x720.jpg",
"description" : "Arctic Vets follows a team of animal experts that dedicate their lives to rescuing, protecting and healing the animals of Canada’s frozen North when they are most in need.",
"airtime" : "",
"showURL" : "https://www.cbc.ca/television/arcticvets",
"watchURL" : "https://gem.cbc.ca/season/arctic-vets/season-1/978e1d19-3164-4a0e-b22f-a729da3aae03?cmp=arcticvets-pareto-unscripted",
"phase" : "Gem",
"genre" : { "name" : "Unscripted", "type" : "unscripted"}
},
{
"title" : "Back in Time for Dinner",
"image" : "/tv/content/entry/The_Campus_Family_BITFD-300.jpg",
"description" : "Follow an adventurous family on the time-travelling journey of a lifetime as they take on iconic trends in food, design and domestic gadgetry, beginning in the 1940s. Guided by host Carlo Rota, each week the Campus family from southern Ontario will live through a new decade of Canadian food and domestic trends.",
"airtime" : "Thursdays at 8pm/8:30NT",
"showURL" : "https://www.cbc.ca/life/backintimefordinner",
"watchURL" : "https://watch.cbc.ca/season/back-in-time-for-dinner/season-1/044cb8fc-975d-487f-ae37-1c7edbc0b121",
"phase" : "Gem",
"genre" : { "name" : "Unscripted", "type" : "unscripted"}
},
{
"title" : "Back in Time for Winter",
"image" : "/tv/content/entry/BackInTimeForWinter_1280x720.jpg",
"description" : "Back in Time for Winter follows one modern family on a winter time-travelling adventure, as they take on 60 years of iconic outdoor activities, trends in cold-weather food, fashion, domestic work and technology.",
"airtime" : "Thursdays at 8 P.M. (8:30NT)",
"showURL" : "https://www.cbc.ca/life/backintimeforwinter",
"watchURL" : "https://gem.cbc.ca/season/back-in-time-for-winter/season-1/141d5001-a658-4a1d-b35b-9743b2666514",
"phase" : "Broadcast",
"genre" : { "name" : "Unscripted", "type" : "unscripted"}
},
{
"title" : "Baroness Von Sketch Show",
"image" : "/tv/content/entry/bvss_s4.jpg",
"description" : "From the politics of ordering a coffee to entitled co-workers to open relationships, this satirical sketch show holds a fun house mirror up to modern life.",
"airtime" : "Tuesdays at 930pm/10:00NT",
"showURL" : "https://www.cbc.ca/baroness",
"watchURL" : "https://gem.cbc.ca/season/baroness-von-sketch-show/season-4/0cfb971d-cad2-418e-9320-caf38bb4aadb",
"phase" : "Gem",
"genre" : { "name" : "Comedy", "type" : "comedy"}
},
{
"title" : "Battle of the Blades",
"image" : "/tv/content/entry/BattleOfTheBladesS5_1280.jpg",
"description" : "Athletes from two of Canada’s favourite sports — figure skating and hockey — pair up and perform in a live, high-stakes figure skating competition for the charity of their choice.",
"airtime" : "",
"showURL" : "https://www.cbc.ca/television/battleoftheblades",
"watchURL" : "https://gem.cbc.ca/season/battle-of-the-blades/season-5/79a8ca6d-a6f9-4833-a422-ae79592c61d4",
"phase" : "Gem",
"genre" : { "name" : "Unscripted", "type" : "unscripted"}
},
{
"title" : "Being Erica",
"image" : "/tv/content/entry/BeingErica-binge-028347-thumb.jpg",
"description" : "BEING ERICA is a funny and magical comedy/drama series where the classic fantasy of revisiting the past offers 30-something year old Erica Strange a chance to come to terms with her choices in life.",
"airtime" : "Now Streaming on CBC Gem",
"showURL" : "",
"watchURL" : "https://watch.cbc.ca/season/being-erica/season-1/9536e9fb-84f4-4637-afa3-3500b05f3dc3",
"phase" : "Gem",
"genre" : { "name" : "Drama", "type" : "drama"}
},
{
"title" : "Bellevue",
"image" : "/tv/content/entry/Bellevue-generic-300.jpg",
"description" : "Anna Paquin stars in this series set in a small blue-collar town with a lot of 'good people' who 'live right' and take it upon themselves to see that the neighbours do too.",
"airtime" : "Now Streaming on CBC Gem",
"showURL" : "https://www.cbc.ca/bellevue/",
"watchURL" : "https://watch.cbc.ca/season/bellevue/season-1/80d2a2aa-45e6-4df0-b5cc-1be467157c59",
"phase" : "Gem",
"genre" : { "name" : "Drama", "type" : "drama"}
},
{
"title" : "Blackstone",
"image" : "/tv/content/entry/Blackstone-generictitle.jpg",
"description" : "Compelling and uncompromising, Blackstone is both a portrayal of a community plagued by corruption, violence and injustice, and an inspiring story of the undying hope and resilience of a people fighting for a better life in the midst of adversity.",
"airtime" : "Now Streaming on CBC Gem",
"showURL" : "",
"watchURL" : "https://watch.cbc.ca/season/blackstone/season-1/4c5419b1-fbb7-421a-aff0-008ee90cdc19",
"phase" : "Gem",
"genre" : { "name" : "Drama", "type" : "drama"}
},
{
"title" : "Bondi Vet",
"image" : "/tv/content/entry/BondiVet-generic.jpg",
"description" : "A touching look at the bond between man and animal; heartwarming and heartbreaking stories that families will love. From the drama of a critically injured family dog rushed to the clinic after a hit-and-run, to the tear-jerking tale of a kangaroo joey abandoned at birth, BONDI VET follows the lives of veterinary surgeon Chris Brown and emergency veterinarian Lisa Chimes.",
"airtime" : "Weekdays at 4pm",
"showURL" : "",
"watchURL" : "https://watch.cbc.ca/season/bondi-vet/bondi-vet-top-ten/32fc0474-547e-45c8-a96c-850d65145f97",
"phase" : "Broadcast",
"genre" : { "name" : "Unscripted", "type" : "unscripted"}
},
{
"title" : "Burden of Truth",
"image" : "/tv/content/entry/CBC_SiteListing_BurdenOfTruth_S3_616x346.jpg",
"description" : "Now at a new firm, Joanna Chang is assigned the case of a brilliant young Internet privacy activist. Meanwhile, back in Millwood, Billy Crawford is dealing with the aftermath of the Matheson Steel lawsuit.",
"airtime" : "Wednesdays at 8pm/8:30NT",
"showURL" : "https://www.cbc.ca/burdenoftruth/",
"watchURL" : "https://gem.cbc.ca/season/burden-of-truth/season-3/2b9e3e72-ba88-44cd-a3cf-02dff9cac604?cmp=scripted_gem",
"phase" : "Broadcast",
"genre" : { "name" : "Drama", "type" : "drama"}
},
{
"title" : "But I&#8217;m Chris Jericho!",
"image" : "/tv/content/entry/300-ButImChrisJericho-generic.jpg",
"description" : "In this tongue-in-cheek portrayal of his life, Chris Jericho is a former wrestler struggling to make it big as an actor.",
"airtime" : "Watch the series online",
"showURL" : "",
"watchURL" : "https://watch.cbc.ca/season/but-im-chris-jericho/season-1/693727fd-a92c-4d71-abc9-4f0e382c53cb",
"phase" : "Gem",
"genre" : { "name" : "Comedy", "type" : "comedy"}
},
{
"title" : "Canada&#8217;s Smartest Person",
"image" : "/tv/content/entry/CSP2016.jpg",
"description" : "Canada's Smartest Person is a whole new way of looking at SMART. Four participants are challenged with various tasks that will redefine what it means to be smart based on multiple intelligence theory.",
"airtime" : "Now Streaming on CBC Gem",
"showURL" : "https://www.cbc.ca/smartestperson/",
"watchURL" : "https://watch.cbc.ca/season/canadas-smartest-person/season-1/3cbe68ec-ae57-443d-a821-21b277f95d45",
"phase" : "Gem",
"genre" : { "name" : "Unscripted", "type" : "unscripted"}
},
{
"title" : "Canada&#8217;s Smartest Person Junior",
"image" : "/tv/content/entry/TV-CSP-Seasaon-1-1280x720-2.jpg",
"description" : "In an exciting evolution of CBC's hit competition format, Canada's Smartest Person,12 remarkable kids aged 8-12 battle it out over six weeks for their chance to be named Canada’s Smartest Person Junior.",
"airtime" : "Wednesdays at 8pm/8:30NT",
"showURL" : "https://www.cbc.ca/smartestpersonjunior/",
"watchURL" : "https://watch.cbc.ca/season/canadas-smartest-person-junior/season-1/a1896836-1c9f-4b10-ace2-058708728293",
"phase" : "Gem",
"genre" : { "name" : "Unscripted", "type" : "unscripted"}
},
{
"title" : "Canada: The Story of Us",
"image" : "/tv/content/entry/StoryOfUsLogo-300.jpg",
"description" : "Over 10 hours, the drama-documentary tells the extraordinary tale of some of the people, places and events that shaped Canada — stories of change makers and rule breakers, dreamers and visionaries, scientists and entrepreneurs who forged a nation in a vast and harsh land.",
"airtime" : "Now Streaming on CBC Gem",
"showURL" : "https://www.cbc.ca/2017/canadathestoryofus",
"watchURL" : "https://watch.cbc.ca/season/canada-the-story-of-us/season-1/1c9a9fb9-d1d4-4587-9f38-8c1f43d2aee0",
"phase" : "Gem",
"genre" : { "name" : "Unscripted", "type" : "unscripted"}
},
{
"title" : "Canadian Reflections",
"image" : "/tv/content/entry/300-CanReflections-2017.jpg",
"description" : "CANADIAN REFLECTIONS is Canada’s longest running showcase of independent short film. For over thirty years, we have given Canada’s best and brightest filmmakers a national audience, currently broadcasting into homes across the country Sundays at midnight.",
"airtime" : "Now Streaming on CBC Gem",
"showURL" : "https://www.cbc.ca/reflections",
"watchURL" : "https://watch.cbc.ca/series/canadian-reflections/all/a2f1c889-8595-49fd-a881-cbeca2d647fa",
"phase" : "Gem",
"genre" : { "name" : "Drama", "type" : "drama"}
},
{
"title" : "Caught",
"image" : "/tv/content/entry/caught_thumbnail.jpg",
"description" : "Locked up after a drug bust, David Slaney makes a daring escape from a New Brunswick prison to attempt one more drug deal with his former partner. It’s Slaney’s last chance at freedom but in this tale of bravado and betrayal, nothing is what it seems and no one can be trusted.",
"airtime" : "Now Streaming on CBC Gem",
"showURL" : "https://www.cbc.ca/caught",
"watchURL" : "https://watch.cbc.ca/season/caught/season-1/64205a8d-b57d-4337-8c27-d89906bf1e2a",
"phase" : "Gem",
"genre" : { "name" : "Drama", "type" : "drama"}
},
{
"title" : "Cavendish",
"image" : "/tv/content/entry/CAVENDISH-shows-listing-thumbnail.jpg",
"description" : "Brothers Mark (Mark Little) and Andy (Andy Bush) return to Cavendish for the first time since childhood to care for their ailing father who runs The Museum of the Strange and Fantastic. They quickly find out that Cavendish is not like other towns, and while Mark (the golden boy) and Andy (the striver) become embroiled in creepy misadventures, they soon realize their family dynamic hasn’t changed much since they were kids.",
"airtime" : "Tuesdays at 9:30pm/10NT",
"showURL" : "https://www.cbc.ca/cavendish/",
"watchURL" : "https://watch.cbc.ca/season/cavendish/season-1/50ad1d4a-b15d-43af-959b-c58f7ce299bf",
"phase" : "Gem",
"genre" : { "name" : "Comedy", "type" : "comedy"}
},
{
"title" : "CBC Docs POV",
"image" : "/tv/content/entry/Docs-POV-large.jpg",
"description" : "CBC's new point-of-view documentary series gets to the heart of issues that matter to Canadians. Celebrating the great Canadian tradition of documentary, Canada's best filmmakers bring us films with compelling characters, harrowing tales and unforgettable moments. ",
"airtime" : "Sundays at 9pm/9:30NT",
"showURL" : "https://www.cbc.ca/cbcdocspov/",
"watchURL" : "https://watch.cbc.ca/season/cbc-docs-pov/season-2/25c75b8b-f8da-4996-bb5c-0c8eaa1c762f",
"phase" : "Broadcast",
"genre" : { "name" : "Documentary", "type" : "documentary"}
},
{
"title" : "Coronation Street",
"image" : "/tv/content/entry/coronation_street_2019.jpg",
"description" : "CORONATION STREET is the long-running British soap opera set in fictional town of Weartherfield, based on the real town of Salford in North West England. The series, first broadcast on December 9 1960, portrays the everyday life of a working-class British community.",
"airtime" : "Weeknights at 7:30pm/8NT",
"showURL" : "https://www.cbc.ca/coronation/",
"watchURL" : "https://watch.cbc.ca/series/coronation-street/all/ebc258f5-ee40-4cca-b66b-ba6bd55b7235",
"phase" : "Broadcast",
"genre" : { "name" : "Drama", "type" : "drama"}
},
{
"title" : "Coroner",
"image" : "/tv/content/entry/Media-Centre-Events-Page_CORONER_620x349.jpg",
"description" : "Coroner is a one-hour drama about Jenny Cooper, a coroner who investigates unexplained or sudden deaths in the city of Toronto. Fierce and quick-witted, Jenny is a newly-widowed single mother with secrets of her own to unearth. Starring Serinda Swan and Roger Cross, coming January 7th, 2019.",
"airtime" : "Mondays at 9/9:30NT",
"showURL" : "https://www.cbc.ca/coroner/",
"watchURL" : "https://gem.cbc.ca/season/coroner/season-2/60397da7-7642-4da9-a96f-204798ebe183?cmp=scripted_gem",
"phase" : "Broadcast",
"genre" : { "name" : "Drama", "type" : "drama"}
},
{
"title" : "Cracked",
"image" : "/tv/content/entry/CrackedTV.jpg",
"description" : "CRACKED is about a unique team of police investigators and mental health professionals, the PSYCH CRIMES UNIT, tasked with solving the wide variety of crimes that cross the boundary between law enforcement and psychological disturbance.",
"airtime" : "Now Streaming on CBC Gem",
"showURL" : "",
"watchURL" : "https://watch.cbc.ca/season/cracked/season-1/fd89927d-4931-4784-ae02-e5446f198c28",
"phase" : "Gem",
"genre" : { "name" : "Drama", "type" : "drama"}
},
{
"title" : "Crawford",
"image" : "/tv/content/entry/crawford_streaming_site_hdr_16x9.jpg",
"description" : "The world of Crawford is a familiar yet unusual one. When raccoons invade the world’s most functioning dysfunctional family’s home, they help breathe life and new meaning into the odd behaviours of the family.",
"airtime" : "Now Streaming on CBC Gem",
"showURL" : "https://watch.cbc.ca/crawford/season-1/b0c53e89-587e-49cf-9c18-d69c049b2828",
"watchURL" : "https://watch.cbc.ca/crawford/season-1/b0c53e89-587e-49cf-9c18-d69c049b2828",
"phase" : "Gem",
"genre" : { "name" : "Comedy", "type" : "comedy"}
},
{
"title" : "Diggstown",
"image" : "/tv/content/entry/Diggstown_TVthumb.jpg",
"description" : "Diggstown follows Marcie Diggs, a star corporate lawyer who reconsiders her priorities after her beloved aunt commits suicide following a malicious prosecution.",
"airtime" : "Wednesdays at 8pm/8:30NT",
"showURL" : "https://www.cbc.ca/diggstown/",
"watchURL" : "https://gem.cbc.ca/season/diggstown/season-1/eb4e5e89-6cba-406c-8fcc-801f46a18c67",
"phase" : "Gem",
"genre" : { "name" : "Drama", "type" : "drama"}
},
{
"title" : "Dragons&#8217; Den",
"image" : "/tv/content/entry/dd-s15-keyart-16x9.png",
"description" : "Launching a business is no small task. No matter how big an idea you think you have, it still takes a lot of work and a ton of cash. Enter the Dragons' Den, where aspiring entrepreneurs pitch their business concepts and products to a panel of Canadian business moguls who have the cash and the know-how to make it happen.",
"airtime" : "",
"showURL" : "https://www.cbc.ca/dragonsden/",
"watchURL" : "https://gem.cbc.ca/season/dragons-den/season-14/834b86e3-cd07-46dc-9053-522591d5a4d7",
"phase" : "Gem",
"genre" : { "name" : "Unscripted", "type" : "unscripted"}
},
{
"title" : "Enslaved",
"image" : "/tv/content/entry/Enslaved_SiteListing_1280x720.jpg",
"description" : "ENSLAVED is a six-part documentary series that sheds new light on 400 years of human trafficking from Africa to the New World, led by Hollywood icon and human rights activist Samuel L. Jackson.",
"airtime" : "Sundays at 9:00 p.m. (9:30 NT)",
"showURL" : "https://www.cbc.ca/documentaries/enslaved",
"watchURL" : "https://gem.cbc.ca/media/enslaved/season-1/episode-0/38e815a-01322859cf9?cmp=DM_SEM_ENSLAVED",
"phase" : "Premiering",
"genre" : { "name" : "Unscripted", "type" : "unscripted"}
},
{
"title" : "Exhibitionists",
"image" : "/tv/content/entry/Exhibitionists-generic-blue.jpg",
"description" : "Exhibitionists explores the most exciting cultural happenings across Canada through a passionate lens. ",
"airtime" : "",
"showURL" : "https://www.cbc.ca/arts/exhibitionists",
"watchURL" : "https://watch.cbc.ca/season/cbc-arts-exhibitionists/season-4/63a94726-3b48-41e6-9d5c-7146a997a343",
"phase" : "Gem",
"genre" : { "name" : "Unscripted", "type" : "unscripted"}
},
{
"title" : "Family Feud Canada",
"image" : "/tv/content/entry/FFC-S2-keyart-16x9.png",
"description" : "Two Canadian families compete to guess the most popular answers to fun, family-friendly survey questions, with host Gerry Dee.",
"airtime" : "Monday to Thursday at 7:30 p.m. (8 NT)",
"showURL" : "https://www.cbc.ca/television/familyfeud",
"watchURL" : "https://gem.cbc.ca/season/family-feud-canada/season-2/694e25df-c74e-4267-8812-84ee8bf4cba0",
"phase" : "Broadcast",
"genre" : { "name" : "Unscripted", "type" : "unscripted"}
},
{
"title" : "Farm Crime",
"image" : "/tv/content/entry/FC-S2-KEYART-TV_WEBSITE_THUMBNAIL.jpg",
"description" : "From brazen lobster heists to contemporary horse rustling, Farm Crime is a true crime documentary series investigating unconventional offences in farming and agriculture.",
"airtime" : "New season now Streaming on CBC Gem",
"showURL" : "https://www.cbc.ca/farmcrime/",
"watchURL" : "https://gem.cbc.ca/season/farm-crime/season-2/a76f087f-e92d-4b3d-8dfa-0e67f63b5246?cmp=familyfeud-pareto-unscripted",
"phase" : "Gem",
"genre" : { "name" : "Unscripted", "type" : "unscripted"}
},
{
"title" : "Fortunate Son",
"image" : "/tv/content/entry/SiteListingPolopoly_FortunateSon_616x346.jpg",
"description" : "War, riots, assassinations, political corruption, racial tension. Like today, 1968 was a time of global political and social upheaval. Tensions between generations, races and genders were all reaching critical levels. But 1968 was also a time of hope, of new ideas and change. Fortunate Son tells the story of a family divided by a mother’s deeply held commitment to activism and the personal cost it exacts on those she loves.",
"airtime" : "Wednesday at 9/9:30NT",
"showURL" : "https://www.cbc.ca/fortunateson",
"watchURL" : "https://gem.cbc.ca/season/fortunate-son/season-1/157f0cb9-a24c-4d35-8b36-d69190903103?cmp=scripted_gem",
"phase" : "Broadcast",
"genre" : { "name" : "Drama", "type" : "drama"}
},
{
"title" : "Frankie Drake Mysteries",
"image" : "/tv/content/entry/frankie-drake-s3.jpg",
"description" : "Set in Toronto during the 1920s, FRANKIE DRAKE MYSTERIES follows the city’s only female private detective as she takes on the cases the police don’t want or can’t handle. Her gender is her biggest advantage – who would ever think a woman could be a detective? ",
"airtime" : "Mondays at 9/9:30NT",
"showURL" : "https://www.cbc.ca/frankiedrake/",
"watchURL" : "https://gem.cbc.ca/season/frankie-drake-mysteries/season-3/356f60f3-38b7-48d6-9e1e-98731e54f397?cmp=scripted_gem",
"phase" : "Gem",
"genre" : { "name" : "Drama", "type" : "drama"}
},
{
"title" : "Fridge Wars",
"image" : "/tv/content/entry/FridgeWars_SiteListing_616x346.jpg",
"description" : "Think you have nothing to eat at home? Think again. Fridge Wars is a new culinary competition that pits celebrity chefs against each other with the challenge of creating extraordinary meals using only the ingredients taken from the ordinary fridges of Canadian families. When cooking time's up, the first family takes their place at the dining room table and tastes each meal, scoring them on look, taste and originality — without knowing who cooked what. Those results go in the Fridge Wars vault and we do it all again with a new family and a new fridge full of challenges. This time upping the ante with a &quot;What the Fridge (WTF) Challenge&quot; that forces both chefs to adapt to a totally unique culinary crisis. With both families' scores tabulated, the final scene reveals which chef successfully created a mouth-watering masterpiece to win the Fridge Wars battle.",
"airtime" : "",
"showURL" : "https://www.cbc.ca/life/fridgewars",
"watchURL" : "https://gem.cbc.ca/season/fridge-wars/season-1/850cd849-042f-4983-a739-83b61c25a6fd",
"phase" : "Gem",
"genre" : { "name" : "Unscripted", "type" : "unscripted"}
},
{
"title" : "From the Vaults",
"image" : "/tv/content/entry/FromTheVaults_ShowListing_616x346.jpg",
"description" : "FROM THE VAULTS is an all-access music journey into a Canadian treasure that few have ever seen: The CBC Archives.",
"airtime" : "Thursdays at 9pm/9:30NT",
"showURL" : "https://www.cbc.ca/television/fromthevaults",
"watchURL" : "https://watch.cbc.ca/season/from-the-vaults/season-1/b1bc9f0a-c563-4622-b200-80fb41e98421",
"phase" : "Gem",
"genre" : { "name" : "Unscripted", "type" : "unscripted"}
},
{
"title" : "Good People",
"image" : "/tv/content/entry/Good_People_1280x720.jpg",
"description" : "Good People takes a hard look at Canada’s problems and scours the planet for the places and solutions that offer hope. Exploring homelessness, gun violence outbreaks, veteran welfare, a world-worst record on garbage, and the opioid crisis, host Mark Sakamoto focuses the issues and connects with the people most affected.",
"airtime" : "",
"showURL" : "https://www.cbc.ca/documentaries/goodpeople",
"watchURL" : "https://gem.cbc.ca/season/good-people-with-mark-sakamoto/season-1/db73b5fb-91a4-441c-9ee6-5d907a5288c1",
"phase" : "Gem",
"genre" : { "name" : "Documentary", "type" : "documentary"}
},
{
"title" : "Halifax Comedy Festival",
"image" : "/tv/content/entry/HalifaxComedyFest-logo-300.jpg",
"description" : "",
"airtime" : "Tuesdays at 9:30pm/10NT",
"showURL" : "",
"watchURL" : "https://watch.cbc.ca/season/halifax-comedy-festival/season-23/0012bf8e-b318-4ccf-8775-5b088d34d812",
"phase" : "Gem",
"genre" : { "name" : "Comedy", "type" : "comedy"}
},
{
"title" : "Heartland",
"image" : "/tv/content/entry/heartland-s13.jpg",
"description" : "Set against the stunning vistas of the Alberta Rocky Mountains, Heartland is a sprawling family drama that follows sisters Amy and Lou Fleming and their grandfather, Jack, through the highs and lows of life on a horse ranch.",
"airtime" : "Sundays at 7pm/7:30NT",
"showURL" : "https://www.cbc.ca/heartland/",
"watchURL" : "https://gem.cbc.ca/season/heartland/season-13/6cfaaf06-89d7-47db-90b7-dfabb91d91cb?cmp=scripted_gem",
"phase" : "Gem",
"genre" : { "name" : "Drama", "type" : "drama"}
},
{
"title" : "Hello Goodbye",
"image" : "/tv/content/entry/HelloGoodbye-generic.jpg",
"description" : "Bustling airport arrival and departure terminals see thousands of people every day, and each and every traveller has a unique story to tell.",
"airtime" : "Fridays at 8:30pm/9NT",
"showURL" : "https://www.cbc.ca/hellogoodbye/",
"watchURL" : "https://watch.cbc.ca/season/hello-goodbye/season-1/bf940784-29d9-4690-b0b9-f90a87c3b7c7",
"phase" : "Gem",
"genre" : { "name" : "Unscripted", "type" : "unscripted"}
},
{
"title" : "High Arctic Haulers",
"image" : "/tv/content/entry/CBC_InstagramHeader_HighArcticHaulers_1240x700.jpg",
"description" : "A fleet of cargo ships battles the tumultuous waters of the High Arctic to reach remote communities who rely on the annual sealift.",
"airtime" : "Series premieres Sunday, Jan. 5 at 8 PM (8:30NT)",
"showURL" : "https://www.cbc.ca/television/higharctichaulers/",
"watchURL" : "https://gem.cbc.ca/season/high-arctic-haulers/season-1/3a69b049-cccf-43bf-bf2c-71b5575a211f",
"phase" : "Gem",
"genre" : { "name" : "Unscripted", "type" : "unscripted"}
},
{
"title" : "Hudson",
"image" : "/tv/content/entry/hudson_banner.jpg",
"description" : "While left in charge of Maggie’s Diner for the week, a driven Jade Virani butts heads with the new girl in town while they vie for the new manager position. Hudson is a digital series based in the world of Heartland.",
"airtime" : "Streaming now on CBC Gem",
"showURL" : "",
"watchURL" : "https://gem.cbc.ca/season/hudson/season-1/6ea3bef7-6cb7-449f-af14-1acff078b928",
"phase" : "Gem",
"genre" : { "name" : "Drama", "type" : "drama"}
},
{
"title" : "Interrupt this Program",
"image" : "/tv/content/entry/InterruptThisProgram-logo300.jpg",
"description" : "When a city experiences trauma — a natural disaster, long-term war, political unrest, or economic meltdown — how do artists respond?",
"airtime" : "Sundays at 9pm/9:30 NT",
"showURL" : "https://www.cbc.ca/arts/interruptthisprogram",
"watchURL" : "https://watch.cbc.ca/season/interrupt-this-program/season-1/75e126a3-96f2-461e-b6f0-8623b1b9041b",
"phase" : "Gem",
"genre" : { "name" : "Unscripted", "type" : "unscripted"}
},
{
"title" : "Jensplaining",
"image" : "/tv/content/entry/jensplaining-gemcard2.jpg",
"description" : "Dr. Jen Gunter is “Twitter’s Gynecologist.” Through humour and expertise, she helps us understand how celebrity endorsed popular pseudoscience &quot;wellness&quot; products and trends are anything but harmless.",
"airtime" : "",
"showURL" : "",
"watchURL" : "https://gem.cbc.ca/season/jensplaining/season-1/9064a0b9-bbd2-4129-8998-a30cc97ebbb2",
"phase" : "Gem",
"genre" : { "name" : "Unscripted", "type" : "unscripted"}
},
{
"title" : "Kim&#8217;s Convenience",
"image" : "/tv/content/entry/KimsConvenience-SiteListing-616x346.jpg",
"description" : "KIM'S CONVENIENCE is the funny, heartfelt story of the Kims, a Korean-Canadian family, running a convenience store in downtown Toronto.",
"airtime" : "Tuesdays at 9pm/9:30NT",
"showURL" : "https://www.cbc.ca/kimsconvenience",
"watchURL" : "https://gem.cbc.ca/season/kims-convenience/season-4/fd64213c-4590-4da9-8c83-8112632cd82e?cmp=scripted_gem",
"phase" : "Broadcast",
"genre" : { "name" : "Comedy", "type" : "comedy"}
},
{
"title" : "Land and Sea",
"image" : "/tv/content/entry/LandAndSeaNetwork-logo.jpg",
"description" : "The series documents the lives of Canadians who live on the natural resources of the eastern coast of the country. They are the stories of people who keep the oldest traditions alive.",
"airtime" : "Now Streaming on CBC Gem",
"showURL" : "",
"watchURL" : "https://watch.cbc.ca/season/land-and-sea-network/season-18/983daeaf-8e14-4a54-a53c-dbb9c021da00",
"phase" : "Gem",
"genre" : { "name" : "Documentary", "type" : "documentary"}
},
{
"title" : "Little Dog",
"image" : "/tv/content/entry/little-dog-s2-hero.jpg",
"description" : "Tommy ‘Little Dog’ Ross is on the run after winning a fight he was supposed to throw, screwing over Tucker, and inadvertently losing his mother’s house. To make life even messier, Tommy is trying to parent a child he didn’t know he had and win Pamela back at the same time.",
"airtime" : "Streaming now on CBC Gem",
"showURL" : "https://www.cbc.ca/littledog",
"watchURL" : "https://watch.cbc.ca/season/little-dog/season-2/5be2d695-98b5-43ca-a624-9d03bcc6b91e",
"phase" : "Gem",
"genre" : { "name" : "Comedy", "type" : "comedy"}
},
{
"title" : "Marketplace",
"image" : "/tv/content/entry/Marketplace2016.jpg",
"description" : "Canada's No. 1 investigative consumer show uses investigative reporting, independent testing and, where warranted, hidden cameras to create a unique programming stamp.",
"airtime" : "Fridays at 8pm/8:30NT",
"showURL" : "https://www.cbc.ca/marketplace/",
"watchURL" : "https://watch.cbc.ca/season/marketplace/season-46/4eb03490-68e2-4708-a386-1fbd5910ccf2",
"phase" : "Broadcast",
"genre" : { "name" : "News", "type" : "news"}
},
{
"title" : "Michael: Every Day",
"image" : "/tv/content/entry/michael_every_day.jpg",
"description" : "Five years after their last meeting, Michael suffers a devastating panic attack at the airport on his departure for a business trip. Returning to Ottawa for help he finds out that his therapist, David, is in worse shape than he is. ",
"airtime" : "Now Streaming on CBC Gem",
"showURL" : "https://www.cbc.ca/michael",
"watchURL" : "https://watch.cbc.ca/series/michael-every-day/3686c672-d688-45c6-85ac-c1d2f2290791",
"phase" : "Gem",
"genre" : { "name" : "Comedy", "type" : "comedy"}
},
{
"title" : "Mr. D",
"image" : "/tv/content/entry/B-Mr-D-Media-Center-Program-Header-750x360.jpg",
"description" : "Mr. D is based on the stand-up comedy act of Dee, who was a teacher for nine years before transitioning to a career in comedy. The series revolves around the eponymous Mr. D, an under-qualified and unmotivated teacher trying to fake his way through work – and life.",
"airtime" : "Wednesdays at 9pm/9:30NT",
"showURL" : "https://www.cbc.ca/mrd",
"watchURL" : "https://watch.cbc.ca/season/mr-d/season-8/7cf74189-db9b-4fa7-b311-bfa543b7651f",
"phase" : "Gem",
"genre" : { "name" : "Comedy", "type" : "comedy"}
},
{
"title" : "Munk Dialogues",
"image" : "/tv/content/entry/CBCGem_CBC_MPX_Thumbnail_The_Munk_Debates_1240x700.jpg",
"description" : "The autumn 2020 Munk Dialogues are a 10-week public conversation about how the pandemic is reshaping the world as we know it, from our politics to society to shared values to the economy.",
"airtime" : "",
"showURL" : "",
"watchURL" : "https://gem.cbc.ca/season/munk-dialogues/season-1/c3a125ca-ec79-45ee-85ef-cfc3a0f59cf8?cmp=sch-munk",
"phase" : "Gem",
"genre" : { "name" : "Unscripted", "type" : "unscripted"}
},
{
"title" : "Murdoch Mysteries",
"image" : "/tv/content/entry/murdoch-mysteries-s13.jpg",
"description" : "Set in Toronto in the early 1900s, MURDOCH MYSTERIES explores the world of William Murdoch, a dashing detective who uses inventive forensic techniques to solve some of the city's most gruesome crimes.",
"airtime" : "Mondays at 8pm/8:30 NT",
"showURL" : "https://www.cbc.ca/murdochmysteries/",
"watchURL" : "https://gem.cbc.ca/season/murdoch-mysteries/season-13/1f641619-433c-49d1-84d6-bbfb189fae76",
"phase" : "Broadcast",
"genre" : { "name" : "Drama", "type" : "drama"}
},
{
"title" : "Red Button",
"image" : "/tv/content/entry/red-button-tvshow.png",
"description" : "RED BUTTON is a groundbreaking approach to storytelling where young documentary subjects turn the camera on themselves to break down the misconceptions, prejudices or stereotypes they face. Each episode focuses on one young person who gives us an unflinchingly honest portrayal of their life.",
"airtime" : "Start Streaming on CBC Gem",
"showURL" : "https://www.cbc.ca/redbutton/",
"watchURL" : "https://gem.cbc.ca/season/red-button/season-2/7cc35460-070f-4354-832a-e4d0d0a14df9",
"phase" : "Gem",
"genre" : { "name" : "Documentary", "type" : "documentary"}
},
{
"title" : "Republic of Doyle",
"image" : "/tv/content/entry/Doyle_TV.jpg",
"description" : "REPUBLIC OF DOYLE stars Allan Hawco as the charming and bold detective, Jake Doyle, who struggles daily to navigate the complications of running the family P.I. business while keeping his very volatile private life in check.",
"airtime" : "Now Streaming on CBC Gem",
"showURL" : "https://www.cbc.ca/republicofdoyle/",
"watchURL" : "https://watch.cbc.ca/season/republic-of-doyle/season-1/2812f32b-dc61-4597-ac67-0694c1f09abe",
"phase" : "Gem",
"genre" : { "name" : "Drama", "type" : "drama"}
},
{
"title" : "Rick Mercer Report",
"image" : "/tv/content/entry/Mercer_RIM_1470x910.jpg",
"description" : "Canada's number one political satirist, Rick Mercer, serves up his weekly dose of political satire, ranting, funny takes on the week's top stories and lively cross-country adventures. ",
"airtime" : "Tuesdays at 8pm/8:30NT",
"showURL" : "https://www.cbc.ca/mercerreport/",
"watchURL" : "https://watch.cbc.ca/season/rick-mercer-report/season-15/bbc3991b-7106-4941-9ec8-10d2cdaa1fc1",
"phase" : "Gem",
"genre" : { "name" : "Comedy", "type" : "comedy"}
},
{
"title" : "Schitt&#8217;s Creek",
"image" : "/tv/content/entry/SchittsCreekS6_SiteListing_616x346.jpg",
"description" : "Follow the trials of the Rose family as they navigate their new-found poverty – and each other – in Schitt’s Creek, a town they once purchased as a joke.",
"airtime" : "Tuesdays at 9pm/9:30NT",
"showURL" : "https://www.cbc.ca/schittscreek",
"watchURL" : "https://gem.cbc.ca/season/schitts-creek/season-6/4beb167e-f4da-4435-9282-7acb77230775?cmp=scripted_gem",
"phase" : "Broadcast",
"genre" : { "name" : "Comedy", "type" : "comedy"}
},
{
"title" : "Shoot the Messenger",
"image" : "/tv/content/entry/ShootMessenger-300.jpg",
"description" : "A young reporter finds herself drawn into an interconnected web of criminal and illicit sexual activity that reaches into the corridors of corporate and political power. ",
"airtime" : "Now Streaming on CBC Gem",
"showURL" : "",
"watchURL" : "https://watch.cbc.ca/season/shoot-the-messenger/season-1/61f32ab3-1bcd-422a-b37b-ff9b2a3f7232",
"phase" : "Gem",
"genre" : { "name" : "Drama", "type" : "drama"}
},
{
"title" : "Short Docs",
"image" : "/tv/content/entry/ShortDocs.jpg",
"description" : "CBC Short Docs is the go-to destination for Canadians looking for engaging, character-driven, short (under 30 minutes) documentary content by emerging documentary filmmakers from across Canada.",
"airtime" : "Watch CBC Short Docs online!",
"showURL" : "https://www.cbc.ca/shortdocs/",
"watchURL" : "https://watch.cbc.ca/series/short-docs/all/8844b939-df74-491a-b2c0-89ca3b79478f",
"phase" : "Broadcast",
"genre" : { "name" : "Documentary", "type" : "documentary"}
},
{
"title" : "Short Film Face Off",
"image" : "/tv/content/entry/ShortFilmFaceOff620.jpg",
"description" : "Short Film Face Off is a magazine program showcasing short films from across the country.",
"airtime" : "Now Streaming on CBC Gem",
"showURL" : "",
"watchURL" : "https://watch.cbc.ca/season/short-film-face-off/season-9/2c4b6e8f-006c-4c99-9301-854d51d0d3e4",
"phase" : "Gem",
"genre" : { "name" : "Drama", "type" : "drama"}
},
{
"title" : "Still Standing",
"image" : "/tv/content/entry/CBCGem_Poster_StillStandingS6_1240x700.jpg",
"description" : "Comedian Jonny Harris explores small towns on the ropes, performs stand-up shows for the locals who’ve stuck it out through hard times, and proves that Canadians know how to laugh at themselves.",
"airtime" : "Tuesdays at 8/8:30 NT",
"showURL" : "https://www.cbc.ca/television/stillstanding",
"watchURL" : "https://gem.cbc.ca/season/still-standing/season-5/8ce2c191-cd01-4520-af15-1b48e8c79b39",
"phase" : "Gem",
"genre" : { "name" : "Unscripted", "type" : "unscripted"}
},
{
"title" : "Strange Empire",
"image" : "/tv/content/entry/StrangeEmpire-620.jpg",
"description" : "Strange Empire is a drama revolving around the daily struggle of three women to survive and to build a decent community in the lawless land of southern Alberta in 1869.",
"airtime" : "Now Streaming on CBC Gem",
"showURL" : "",
"watchURL" : "https://watch.cbc.ca/season/strange-empire/season-1/577265d4-123d-4de0-86b0-967bcd203bd3",
"phase" : "Gem",
"genre" : { "name" : "Drama", "type" : "drama"}
},
{
"title" : "Street Legal",
"image" : "/tv/content/entry/sl-thumbnail.jpg",
"description" : "The award-winning character-driven legal drama picks up 25 years after the original series with Olivia Novak now a partner at a major Bay Street law firm. When an upstart firm of young social-activist lawyers beat her to a filing, Olivia pursues them as an acquisition target but ends up joining the boutique firm.",
"airtime" : "Mondays at 9pm/9:30NT",
"showURL" : "https://www.cbc.ca/streetlegal/",
"watchURL" : "https://gem.cbc.ca/season/street-legal/season-1/b296a026-c684-4028-9a0e-f461b09464ca",
"phase" : "Gem",
"genre" : { "name" : "Drama", "type" : "drama"}
},
{
"title" : "TallBoyz",
"image" : "/tv/content/entry/tallboyz-s1.jpg",
"description" : "TALLBOYZ is a new sketch comedy of epic proportions. Measuring in at a whopping 25'2&quot; (collectively), this crew has quite the perspective to share. Nothing is off-limits or out of reach.",
"airtime" : "Tuesdays at 9pm/9:30NT",
"showURL" : "https://www.cbc.ca/tallboyz/",
"watchURL" : "https://gem.cbc.ca/season/tall-boyz/season-1/5704c235-100c-448e-af26-b3aa6ad02f28?cmp=scripted_gem",
"phase" : "Gem",
"genre" : { "name" : "Comedy", "type" : "comedy"}
},
{
"title" : "The Amazing Gayl Pile",
"image" : "/tv/content/entry/AmazingGaylePile-showlogo.jpg",
"description" : "One man's misguided quest to conquer the world of home shopping. Gayl Pile (Morgan Waters) finds himself stuck in the daily grind as a host on the Shop-At-Home-Channel in Hamilton, ON.",
"airtime" : "Streaming now on CBC Gem",
"showURL" : "",
"watchURL" : "https://watch.cbc.ca/season/the-amazing-gayl-pile/season-1/41549690-f308-4f5d-951b-5f97d0af54a8",
"phase" : "Gem",
"genre" : { "name" : "Comedy", "type" : "comedy"}
},
{
"title" : "The Book of Negroes",
"image" : "/tv/content/entry/TBON.jpg",
"description" : "A six-part miniseries that follows the harrowing journey of Aminata Diallo and her return home after being forced into slavery as a child.",
"airtime" : "Now Streaming on CBC Gem",
"showURL" : "",
"watchURL" : "https://watch.cbc.ca/season/the-book-of-negroes/season-1/60c7dae4-ef54-4a90-bd34-1c75e2727c37",
"phase" : "Gem",
"genre" : { "name" : "Drama", "type" : "drama"}
},
{
"title" : "The Detectives",
"image" : "/tv/content/entry/TheDetectivesS2_ShowPage_Desktop_1200x522.jpg",
"description" : "A gripping true crime series that brings to life the real investigations of Canadian detectives by blending first-person interviews with scripted drama.",
"airtime" : "Thursdays at 9pm (9:30 NT)",
"showURL" : "http://www.cbc.ca/thedetectives/",
"watchURL" : "https://gem.cbc.ca/season/the-detectives/season-1/2e8c34bb-f55c-4017-8630-02d3ae3cb2bb",
"phase" : "Gem",
"genre" : { "name" : "Unscripted", "type" : "unscripted"}
},
{
"title" : "The Fifth Estate",
"image" : "/tv/content/entry/fifth_estate-large.jpg",
"description" : "Each week, the fifth estate brings in-depth investigations that matter to Canadians – delivering a dazzling parade of political leaders, controversial characters and ordinary people whose lives were touched by triumph or tragedy.",
"airtime" : "Sundays at 9pm/9:30NT",
"showURL" : "https://www.cbc.ca/fifth/",
"watchURL" : "https://watch.cbc.ca/season/the-fifth-estate/season-44/0b17a3da-b5a1-4e58-8b1a-a45b24352d4f",
"phase" : "Broadcast",
"genre" : { "name" : "News", "type" : "news"}
},
{
"title" : "The Great Canadian Baking Show",
"image" : "/tv/content/entry/GCBS4_Thumbnail_1280x720.jpg",
"description" : "THE GREAT CANADIAN BAKING SHOW brings together 10 amateur bakers from across Canada to compete in a series of themed culinary challenges. Each week, the competitor who shows the most skill, creativity and finesse will be named Star Baker, while the weakest will be sent home until only three finalists are left vying for the Great Canadian Baking Show title. ",
"airtime" : "",
"showURL" : "http://www.cbc.ca/life/greatcanadianbakingshow",
"watchURL" : "https://gem.cbc.ca/season/the-great-canadian-baking-show/season-3/4c51f1f7-71de-45bf-af58-fd628f4f15f5",
"phase" : "Gem",
"genre" : { "name" : "Unscripted", "type" : "unscripted"}
},
{
"title" : "The National",
"image" : "/tv/content/entry/TheNational_4hosts.jpg",
"description" : "Canada's destination for original journalism. Welcome to The National, the flagship nightly newscast of CBC News.",
"airtime" : "Weekdays at 10pm/10:30NT",
"showURL" : "https://www.cbc.ca/thenational/",
"watchURL" : "https://watch.cbc.ca/series/the-national/all/7edf3b97-b615-483a-842c-6c168d68c0ba",
"phase" : "Broadcast",
"genre" : { "name" : "News", "type" : "news"}
},
{
"title" : "The Nature of Things",
"image" : "/tv/content/entry/TNOT-2016-2-300.jpg",
"description" : "The Nature of Things is one of the most successful series in the history of Canadian television. Hosted by the world-renowned geneticist and environmentalist, David Suzuki, the program is in its 58th season, a landmark by any standard.",
"airtime" : "Sundays at 8pm/8:30NT",
"showURL" : "https://www.cbc.ca/natureofthings/",
"watchURL" : "https://watch.cbc.ca/season/the-nature-of-things/season-58/d77bb9b3-eb40-46ec-9f29-07af7219c6a1",
"phase" : "Broadcast",
"genre" : { "name" : "Documentary", "type" : "documentary"}
},
{
"title" : "The Neddeaus of Duqesne Island",
"image" : "/tv/content/entry/NeddeausDuqesne-generic-300.jpg",
"description" : "The Neddeaus of Duqesne Island is a 1970s documentary about a family living isolated on an island in Northern Canada.",
"airtime" : "",
"showURL" : "",
"watchURL" : "https://gem.cbc.ca/season/the-neddeaus-of-duqesne-island/season-1/8c41561e-5154-4679-8e1a-ed481c49efe1?cmp=sch-neddeaus",
"phase" : "Gem",
"genre" : { "name" : "Comedy", "type" : "comedy"}
},
{
"title" : "The Passionate Eye",
"image" : "/tv/content/entry/passionate-eye.jpg",
"description" : "The Passionate Eye is a curated playlist of thought-provoking documentaries based on news and current affairs topics. As Canada's longest-running showcase for international documentaries, it offers viewers a selection of the world's best and most newsworthy political and social issue documentaries.",
"airtime" : "Saturdays at 10pm and Sundays at 10pm on CBC News Network",
"showURL" : "https://www.cbc.ca/passionateeye/",
"watchURL" : "https://watch.cbc.ca/series/the-passionate-eye/all/a987b56b-fbb1-4753-b5ed-32e07bb81c19",
"phase" : "Broadcast",
"genre" : { "name" : "Documentary", "type" : "documentary"}
},
{
"title" : "The Romeo Section",
"image" : "/tv/content/entry/RomeoSection-s2-300.jpg",
"description" : "From acclaimed showrunner Chris Haddock (Da Vinci's Inquest, Intelligence), The Romeo Section is an espionage drama set in Vancouver. It follows spymaster Professor Wolfgang McGee, an academic who secretly manages a roster of espionage assets. ",
"airtime" : "Now Streaming on CBC Gem",
"showURL" : "",
"watchURL" : "https://watch.cbc.ca/season/the-romeo-section/season-1/828ea332-b1f2-4a0f-bb9b-12e7c4cd4797",
"phase" : "Gem",
"genre" : { "name" : "Drama", "type" : "drama"}
},
{
"title" : "The Stats of Life",
"image" : "/tv/content/entry/TheStatsOfLife-keyart-1600x900.jpg",
"description" : "Through census data, surveys and studies, we now know more about ourselves than ever before. But what’s the story behind the stats? In our diverse modern world, is there still such a thing as 'average?'",
"airtime" : "Streaming now on CBC Gem",
"showURL" : "https://www.cbc.ca/thestatsoflife/",
"watchURL" : "https://watch.cbc.ca/season/the-stats-of-life/season-2/7cd0bb91-0bbc-47e0-8903-7c2373577e9b",
"phase" : "Gem",
"genre" : { "name" : "Unscripted", "type" : "unscripted"}
},
{
"title" : "This Life",
"image" : "/tv/content/entry/ThisLife_s2.jpg",
"description" : "We all live our lives knowing we're going to die. For one woman, this truth hits hard - and the effect transforms not only her own existence, but also the lives of everyone who loves her.",
"airtime" : "Now Streaming on CBC Gem",
"showURL" : "https://www.cbc.ca/thislife/",
"watchURL" : "https://watch.cbc.ca/season/this-life/season-1/c6ea52d9-9e96-4bac-b829-f520f5274057",
"phase" : "Gem",
"genre" : { "name" : "Drama", "type" : "drama"}
},
{
"title" : "Trickster",
"image" : "/tv/content/entry/website_16x9.png",
"description" : "Jared is only sixteen but feels like he is the one who must stabilize his family's life. He puzzles over why his maternal grandmother has never liked him, why she says he's the son of a trickster, that he isn't human.",
"airtime" : "Wednesdays at 9/9:930nt",
"showURL" : "https://www.cbc.ca/trickster/",
"watchURL" : "https://gem.cbc.ca/season/trickster/season-1/dcdc337f-fe75-4001-8c4d-93ededf90d6c?cmp=sch-trickster",
"phase" : "Premiering",
"genre" : { "name" : "Drama", "type" : "drama"}
},
{
"title" : "Under New Management",
"image" : "/tv/content/entry/unm-s1-unofficial-keyart.jpg",
"description" : "Renowned venture capitalist Arlene Dickinson coaches budding entrepreneurs on a life-changing journey of assessing three businesses for sale. Using her deep business experience and uncanny insight into personality and relationships, she helps the business buyers decide whether they are ready to successfully put a small business &quot;Under New Management.&quot;",
"airtime" : "Fridays at 8:30PM/9NT",
"showURL" : "https://www.cbc.ca/undernewmanagement/",
"watchURL" : "",
"phase" : "Broadcast",
"genre" : { "name" : "Unscripted", "type" : "unscripted"}
},
{
"title" : "Unspeakable",
"image" : "/tv/content/entry/Unspeakable_temp.jpg",
"description" : "Unspeakable is based on emotionally charged personal accounts as well as Andre Picard's Gift of Death: Confronting Canada's Tainted Blood Tragedy, Vic Parson's Bad Blood: The Tragedy of the Canadian Tainted Blood Scandal, and The Royal Commission of Inquiry into the Canadian Blood Tragedy, led by Justice Horace Krever.",
"airtime" : "Wednesdays at 9pm/9:30NT",
"showURL" : "https://www.cbc.ca/unspeakable/",
"watchURL" : "https://watch.cbc.ca/season/unspeakable/season-1/4f956fb9-2d89-450f-b999-8f8498ea54f2",
"phase" : "Gem",
"genre" : { "name" : "Drama", "type" : "drama"}
},
{
"title" : "What&#8217;re You At? With Tom Power",
"image" : "/tv/content/entry/WhatreYouAt_v4_SiteListing_616X346_rev1.png",
"description" : "What’re You At? with Tom Power is a one-hour weekly TV program showcasing community and culture.",
"airtime" : "Sunday nights at 8 (8:30NT)",
"showURL" : " https://www.cbc.ca/television/whatreyouat",
"watchURL" : "https://gem.cbc.ca/season/whatre-you-at-with-tom-power/season-1/4c88aef3-c9c8-4e54-bc61-62683bb51a86",
"phase" : "Broadcast",
"genre" : { "name" : "Unscripted", "type" : "unscripted"}
},
{
"title" : "When Calls the Heart",
"image" : "/tv/content/entry/WCTH2018.jpg",
"description" : "Based on the bestselling novel by Janette Oke, the series follows the story of young school teacher Elizabeth Thatcher (Erin Krakow), who has just arrived in Coal Valley, a 19th century coal mining town in the Western Frontier, that is worlds apart from the wealthy, high-society life where she grew up. ",
"airtime" : "Now Streaming on CBC Gem",
"showURL" : "",
"watchURL" : "https://watch.cbc.ca/season/when-calls-the-heart/season-4/123882c2-2dbb-46b2-a9d3-48c73ccfb9f9",
"phase" : "Gem",
"genre" : { "name" : "Drama", "type" : "drama"}
},
{
"title" : "Workin&#8217; Moms",
"image" : "/tv/content/entry/WorkinMoms-EventsPage-620x349.jpg",
"description" : "Workin’ Moms follows the lives of four women as they juggle love, careers, and parenthood. Whether it is an identity crisis, a huge job opportunity, postpartum depression, or an unplanned pregnancy – they face both the good and bad with grace and humour. ",
"airtime" : "Streaming now on CBC Gem",
"showURL" : "https://www.cbc.ca/workinmoms/",
"watchURL" : "https://watch.cbc.ca/season/workin-moms/season-3/8faf2629-6f9f-455b-8b62-791e70926e64?cmp=scripted_gem",
"phase" : "Gem",
"genre" : { "name" : "Comedy", "type" : "comedy"}
},
{
"title" : "X Company",
"image" : "/tv/content/entry/XCompany-season3-300.jpg",
"description" : "Inspired by the true stories of an ultra-secret training facility on the shores of Lake Ontario.",
"airtime" : "Now Streaming on CBC Gem",
"showURL" : "http://www.cbc.ca/xcompany",
"watchURL" : "https://watch.cbc.ca/season/x-company/season-1/c3a1cc5b-7f12-4994-b308-21424983dea4",
"phase" : "Gem",
"genre" : { "name" : "Drama", "type" : "drama"}
},
{
"title" : "You Can&#8217;t Ask That",
"image" : "/tv/content/entry/CBCGem_CBC_Poster_YCAT_1240x700.jpg",
"description" : "Each episode asks a group of	people with the same disability the	awkward,	inappropriate or uncomfortable questions you are too afraid to ask. It’s an audacious, touching and funny series that is guaranteed to challenge everyone’s assumptions about life with a disability.",
"airtime" : "",
"showURL" : "",
"watchURL" : "https://gem.cbc.ca/season/you-cant-ask-that/season-2/032f99e7-d692-42b1-9abf-4f546216d5a0",
"phase" : "Gem",
"genre" : { "name" : "Unscripted", "type" : "unscripted"}
}];

var CBCShowsSortMethods = {};

CBCShowsSortMethods.alpha = {}
CBCShowsSortMethods.alpha.a_to_e = { name: "#, A - E", content: new Array() };
CBCShowsSortMethods.alpha.f_to_j = { name: "F - J", content: new Array() };
CBCShowsSortMethods.alpha.k_to_p = { name: "K - P", content: new Array() };
CBCShowsSortMethods.alpha.q_to_u = { name: "Q - U", content: new Array() };
CBCShowsSortMethods.alpha.v_to_z = { name: "V - Z", content: new Array() };

CBCShowsSortMethods.genre = {};

CBCShowsSortMethods.genre.comedy = { name: "Comedy", content: new Array() };

CBCShowsSortMethods.genre.drama = { name: "Drama", content: new Array() };

CBCShowsSortMethods.genre.unscripted = { name: "Unscripted", content: new Array() };

CBCShowsSortMethods.genre.documentary = { name: "Documentary", content: new Array() };

CBCShowsSortMethods.genre.news = { name: "News", content: new Array() };

CBCShowsSortMethods.genre.other = { name: "Other", content: new Array() };

CBCShowsSortMethods.genre.other = { name: "Other", content: new Array() };

CBCShowsSortMethods.phase = {};
CBCShowsSortMethods.phase.broadcast = { name: "Currently airing", content: new Array() };
CBCShowsSortMethods.phase.preseason = { name: "Coming Soon", content: new Array() };
CBCShowsSortMethods.phase.gem = { name: "Now Streaming on CBC Gem", content: new Array() };

for (var key in CBCShows) {
  var newShow = CBCShows[key];
  
  // CHECK ALPHANUMERIC POSITION
  var initialLetter = newShow.title[0].toLowerCase();
  if (initialLetter >= '0' && initialLetter <= '9') {CBCShowsSortMethods.alpha.a_to_e.content.push(newShow);} else if (initialLetter <= 'z' && initialLetter >= 'v') {CBCShowsSortMethods.alpha.v_to_z.content.push(newShow);} else if (initialLetter >= 'q') {CBCShowsSortMethods.alpha.q_to_u.content.push(newShow);} else if (initialLetter >= 'k') {CBCShowsSortMethods.alpha.k_to_p.content.push(newShow);} else if (initialLetter >= 'f') {CBCShowsSortMethods.alpha.f_to_j.content.push(newShow);} else if (initialLetter >= 'a') {CBCShowsSortMethods.alpha.a_to_e.content.push(newShow);} else {
    console.log("Couldn't sort ["+initialLetter+"] - "+newShow.title);
  }
  //console.log(initialLetter + " " + newShow.title + " : " + newShow.genre.name);
  
  // CHECK GENRE POSITION
  if (newShow.genre != "") {
    var genreArray = CBCShowsSortMethods.genre[newShow.genre.type];
    genreArray.content.push(newShow);
  } else {CBCShowsSortMethods.genre.other.content.push(newShow);}
  
  // CHECK PHASE POSITION
  var currentPhase = newShow.phase.toLowerCase();
  switch(currentPhase) {
    case "premiering" :
      CBCShowsSortMethods.phase.preseason.content.push(newShow);
      break;
    case "pre-season" :
      CBCShowsSortMethods.phase.preseason.content.push(newShow);
      break;
    case "broadcast" :
      CBCShowsSortMethods.phase.broadcast.content.push(newShow);
      break;
    case "gem" : 
      CBCShowsSortMethods.phase.gem.content.push(newShow);
      break;
    default : 
      CBCShowsSortMethods.phase.gem.content.push(newShow);
      break;
  }
}

function ScrollTo(name) {ScrollToResolver(document.getElementById(name));}

function ScrollToResolver(elem) {
  var jump = parseInt(elem.getBoundingClientRect().top * .2);
  document.body.scrollTop += jump;
  document.documentElement.scrollTop += jump;
  if (!elem.lastjump || elem.lastjump > Math.abs(jump)) {
    elem.lastjump = Math.abs(jump);
    setTimeout(function() {ScrollToResolver(elem);}, "26");
  } else {
    elem.lastjump = null;
  }
}
 
function createExpandedCard(category) {
  var newListItem = document.createElement('li');
  newListItem.className = 'showcard_expanded hidden';
  $(newListItem).attr('data-expanded',"false");
  $(newListItem).attr('data-category',category);

  // SET PROMO IMAGE SECTION
  var infoHolder = document.createElement('div');
  infoHolder.className = 'showcard_holder';

  var closeElement = document.createElement('div');
  closeElement.className = 'showcard_close';
  
  var closeButton = document.createElement('button');
  closeButton.className = 'showcard_close_button';
  closeButton.innerHTML = '<i class="far fa-times-circle"></i>';
  $(closeButton).click(function() {
    console.log("clicked on close button");
    $('li.showcard_expanded').addClass('hidden');
  });
  closeElement.appendChild(closeButton); 
  
  newListItem.appendChild(infoHolder);
  newListItem.appendChild(closeElement);

  return newListItem;
}
 
function setExpandedCard(showitem,category) {
  var expandedItem = $('li.showcard_expanded[data-category="'+category+'"]');
  
  var showHolder = $(expandedItem).find('.showcard_holder');
  $(showHolder).empty();
  $(expandedItem).removeClass('hidden');

  console.log('setting exapanded card data for '+$(showitem).find('h3').text());
  $(showitem).find('.promo_image').clone().appendTo($(showHolder));
  $(showitem).find('.meta').clone().appendTo($(showHolder));
}

function createShowCard(showitem,category) {
  var newListItemHolder = document.createElement('li');
  var newListItem = document.createElement('button');
  newListItemHolder.className = 'showcard';
  $(newListItemHolder).attr('data-expanded',"false");
  $(newListItemHolder).attr('data-category',category);

  // SET META SECTION
  var newListItem_meta = document.createElement('div');
  newListItem_meta.className = 'meta';
  var newListItem_meta_title = document.createElement('h3');
  newListItem_meta_title.className = "showcard_title";
  newListItem_meta_title.innerHTML = showitem.title;
  var newListItem_meta_airtime = document.createElement('span');
  newListItem_meta_airtime.className = 'showcard_airtime';
  newListItem_meta_airtime.innerHTML = showitem.airtime;
  var newListItem_meta_description = document.createElement('span');
  newListItem_meta_description.className = 'showcard_description';
  newListItem_meta_description.innerHTML = showitem.description;
  
  var newListItem_meta_links = document.createElement('ul');
  newListItem_meta_links.className = 'showcard_links';
  if (showitem.showURL!="") {
    var newLinkItem = document.createElement('li');
    var newLink = document.createElement('a');
    newLink.href = showitem.showURL;
    newLink.className = 'showcard_link website';
    newLink.innerHTML = "Visit the show website";
    newLinkItem.appendChild(newLink);
    newListItem_meta_links.appendChild(newLinkItem);
  }
  if (showitem.watchURL!="") {
    var newLinkItem = document.createElement('li');
    var newLink = document.createElement('a');
    newLink.href = showitem.watchURL;
    newLink.target = "_blank";
    newLink.className = 'showcard_link gem';
    newLink.innerHTML = "Start streaming on CBC Gem";
    newLinkItem.appendChild(newLink);
    newListItem_meta_links.appendChild(newLinkItem);
  }
  newListItem_meta.appendChild(newListItem_meta_title);
  newListItem_meta.appendChild(newListItem_meta_airtime);
  newListItem_meta.appendChild(newListItem_meta_description);
  newListItem_meta.appendChild(newListItem_meta_links);

  // SET PROMO IMAGE SECTION
  var newListItem_promoImage = document.createElement('figure');
  newListItem_promoImage.className = 'promo_image';

  var newListItem_promoImage_image = document.createElement('img');
  newListItem_promoImage_image.className = 'showcard_image';
  newListItem_promoImage_image.src = showitem.image;
  newListItem_promoImage_image.alt = showitem.title;
  
  var newListItem_promoImage_figcaption = document.createElement('figcaption');
  newListItem_promoImage_figcaption.className = 'showcard_qualifier';
  var showPhase = showitem.phase.toUpperCase();
  switch(showPhase) {
    case "PREMIERING" :
      newListItem_promoImage_figcaption.innerHTML = "NEW SERIES";
      newListItem_promoImage.appendChild(newListItem_promoImage_figcaption);
      break;
    case "PRE-SEASON" :
      newListItem_promoImage_figcaption.innerHTML = "RETURNING";
      newListItem_promoImage.appendChild(newListItem_promoImage_figcaption);
      break;
    case "BROADCAST" :
      break;
    default :
      $(newListItem_meta_airtime).addClass('hidden');
      break;
  }
  newListItem_promoImage.appendChild(newListItem_promoImage_image);
  
  newListItem.appendChild(newListItem_promoImage);
  newListItem.appendChild(newListItem_meta);

  newListItemHolder.appendChild(newListItem);
  return newListItemHolder;
}

function clickableCards() {
  $('li.showcard button').click(function() {
	  var parentObj = $(this).parent();
	  console.log(parentObj);
	  expandElement(parentObj);
  });
}

function expandElement(elem) {
  $('li.showcard_expanded').addClass('hidden');
  console.log('expandElement: expanding '+$(elem).find('h3').text());
  var currentCategory = $(elem).attr('data-category');
  setExpandedCard(elem,currentCategory);

  ScrollTo(currentCategory); 
}

function addHeader(title,category) {
  var newHeader = document.createElement('h2');
  newHeader.className = 'showgroup';
  newHeader.innerHTML = title;
  newHeader.id = category;
  $(newHeader).attr('data-category',category)
  showsHolder.appendChild(newHeader);
}

function sortBy(method) {
  showsHolder.innerHTML = "";
  var sortArray = [];
  switch(method) {
    case "a-z" :
      sortArray = CBCShowsSortMethods.alpha;
      break;
    case "genre" :
      sortArray = CBCShowsSortMethods.genre;
      break;
    case "phase" :
      sortArray = CBCShowsSortMethods.phase;
      break;
    default :
      sortArray = CBCShowsSortMethods.alpha;
      break;
  }

  for (var key in sortArray) {
    //console.log(key);
    var currentKey = sortArray[key];
    //console.log(currentKey.name + " [" + currentKey.content.length + "]");

    var newList = document.createElement('ul');
    newList.className = 'shows_list';
    newList.appendChild(createExpandedCard(key));

    for (var i=0; i< currentKey.content.length; i++) {
      var currentItem = currentKey.content[i];
      var newListItem = createShowCard(currentItem,key);

      newList.appendChild(newListItem);
    }
    addHeader(currentKey.name,key);
    showsHolder.appendChild(newList);
  }
  clickableCards();
}
 
$('.showsortmethod').click(function() {
  $('.showsortmethod').removeClass('selected');
  $(this).addClass('selected');
  var sortmethod = $(this).attr('data-sort');
  sortBy(sortmethod);
});

$('.showsortmethod[data-sort="a-z"]').addClass('selected');
sortBy("a-z");

/*
var CBCShows = {};
CBCShows.alpha = {};
CBCShows.alpha.a_to_e = { name: "#, A - E", content: new Array() };
CBCShows.alpha.f_to_j = { name: "F - J", content: new Array() };
CBCShows.alpha.k_to_p = { name: "K - P", content: new Array() };
CBCShows.alpha.q_to_u = { name: "Q - U", content: new Array() };
CBCShows.alpha.v_to_z = { name: "V - Z", content: new Array() };

CBCShows.genre = {};

CBCShows.genre.comedy = { name: "Comedy", content: new Array() };

CBCShows.genre.drama = { name: "Drama", content: new Array() };

CBCShows.genre.unscripted = { name: "Unscripted", content: new Array() };

CBCShows.genre.documentary = { name: "Documentary", content: new Array() };

CBCShows.genre.news = { name: "News", content: new Array() };

CBCShows.genre.other = { name: "Other", content: new Array() };

CBCShows.genre.other = { name: "Other", content: new Array() };

CBCShows.phase = {};
CBCShows.phase.broadcast = { name: "Currently airing", content: new Array() };
CBCShows.phase.preseason = { name: "Coming Soon", content: new Array() };
CBCShows.phase.gem = { name: "Now Streaming on CBC Gem", content: new Array() };


var tempShowList = [];

var newShow = {};
newShow.title = "2020 Indspire Awards";
newShow.url = "https://www.cbc.ca/indspire";
newShow.image = "/tv/content/entry/Indspire2019_Youth-Inuit-Kelly-Fraser.jpg";
newShow.description = "Celebrating exceptional First Nations, Inuit, and M&eacute;tis individuals, this year's Indspire Awards highlights the significant contributions of Indigenous people in Canada.";
newShow.airtime = "Start streaming on CBC Gem";
newShow.genre = "unscripted";
newShow.genreName = "Unscripted";
newShow.showURL = "https://www.cbc.ca/indspire";
newShow.watchURL = "https://gem.cbc.ca/media/everything-indigenous/season-1/episode-13/38e815a-012d5bf6a78";
newShow.phase = "Gem";
tempShowList.push(newShow);

var newShow = {};
newShow.title = "21 Thunder";
newShow.url = "https://www.cbc.ca/21thunder";
newShow.image = "/tv/content/entry/21Thunder-generic-300.jpg";
newShow.description = "In the cutthroat world of pro soccer, a club lives and dies by the stars on its under-21 team.";
newShow.airtime = "Now Streaming on CBC Gem";
newShow.genre = "drama";
newShow.genreName = "Drama";
newShow.showURL = "https://www.cbc.ca/21thunder";
newShow.watchURL = "https://watch.cbc.ca/season/21-thunder/season-1/1a5cc774-dc01-4381-a513-f273abfd0345";
newShow.phase = "Gem";
tempShowList.push(newShow);

var newShow = {};
newShow.title = "22 Minutes";
newShow.url = "https://www.cbc.ca/22minutes";
newShow.image = "/tv/content/entry/22-minutes-s27.jpg";
newShow.description = "THIS HOUR HAS 22 MINUTES delights audiences with a weekly fresh and hilarious take on Canadian politics and culture. Guest-starring Canada's most popular and unpopular politicians, 22 MINUTES mixes news satire, sketch and ambush comedy.";
newShow.airtime = "Tuesdays at 8:30pm/9NT";
newShow.genre = "comedy";
newShow.genreName = "Comedy";
newShow.showURL = "https://www.cbc.ca/22minutes";
newShow.watchURL = "https://gem.cbc.ca/season/this-hour-has-22-minutes/season-27/65a3542b-707b-4f54-8502-e91b9c416bed";
newShow.phase = "Broadcast";
tempShowList.push(newShow);

var newShow = {};
newShow.title = "Absolutely Canadian";
newShow.url = "";
newShow.image = "/tv/content/entry/absolutely_canadian.jpg";
newShow.description = "Absolutely Canadian is a one-hour series showcasing the best in regional documentary and performance from across Canada. Each locally produced program highlights diverse stories and dynamic musical acts, straight from Canadian communities.";
newShow.airtime = "Wednesdays at 5:00pm ET";
newShow.genre = "documentary";
newShow.genreName = "Documentary";
newShow.showURL = "";
newShow.watchURL = "https://watch.cbc.ca/season/absolutely-canadian/absolutely-canadian/05e71c4e-1248-4b9e-8ccb-301484ec3523";
newShow.phase = "Gem";
tempShowList.push(newShow);

var newShow = {};
newShow.title = "Anne with an E";
newShow.url = "https://www.cbc.ca/anne/";
newShow.image = "/tv/content/entry/anne-s3.jpg";
newShow.description = "Anne is an outsider who, against all odds and numerous challenges, fights for love and acceptance and her place in the world.";
newShow.airtime = "Watch on CBC Gem";
newShow.genre = "drama";
newShow.genreName = "Drama";
newShow.showURL = "https://www.cbc.ca/anne/";
newShow.watchURL = "https://gem.cbc.ca/season/anne-with-an-e/season-3/52d528d7-e68a-4529-9194-71003d527cf1";
newShow.phase = "Gem";
tempShowList.push(newShow);

var newShow = {};
newShow.title = "Anyone&#8217;s Game";
newShow.url = "https://www.cbc.ca/television/anyonesgame";
newShow.image = "/tv/content/entry/AG_poster_d_w_leaf.jpg";
newShow.description = "Follow Canada's top high school basketball program as they fight for hardwood supremacy in the prestigious Grind Session tournament";
newShow.airtime = "Fridays at 8:30 p.m.";
newShow.genre = "documentary";
newShow.genreName = "Documentary";
newShow.showURL = "https://www.cbc.ca/television/anyonesgame";
newShow.watchURL = "https://gem.cbc.ca/";
newShow.phase = "Premiering";
tempShowList.push(newShow);

var newShow = {};
newShow.title = "Arctic Vets";
newShow.url = "https://www.cbc.ca/television/arcticvets";
newShow.image = "/tv/content/entry/ArcticVets_ShowListing_1280x720.jpg";
newShow.description = "Arctic Vets follows a team of animal experts that dedicate their lives to rescuing, protecting and healing the animals of Canada&rsquo;s frozen North when they are most in need.";
newShow.airtime = "";
newShow.genre = "unscripted";
newShow.genreName = "Unscripted";
newShow.showURL = "https://www.cbc.ca/television/arcticvets";
newShow.watchURL = "https://gem.cbc.ca/season/arctic-vets/season-1/978e1d19-3164-4a0e-b22f-a729da3aae03?cmp=arcticvets-pareto-unscripted";
newShow.phase = "Gem";
tempShowList.push(newShow);

var newShow = {};
newShow.title = "Back in Time for Dinner";
newShow.url = "https://www.cbc.ca/life/backintimefordinner";
newShow.image = "/tv/content/entry/The_Campus_Family_BITFD-300.jpg";
newShow.description = "Follow an adventurous family on the time-travelling journey of a lifetime as they take on iconic trends in food, design and domestic gadgetry, beginning in the 1940s. Guided by host Carlo Rota, each week the Campus family from southern Ontario will live through a new decade of Canadian food and domestic trends.";
newShow.airtime = "Thursdays at 8pm/8:30NT";
newShow.genre = "unscripted";
newShow.genreName = "Unscripted";
newShow.showURL = "https://www.cbc.ca/life/backintimefordinner";
newShow.watchURL = "https://watch.cbc.ca/season/back-in-time-for-dinner/season-1/044cb8fc-975d-487f-ae37-1c7edbc0b121";
newShow.phase = "Gem";
tempShowList.push(newShow);

var newShow = {};
newShow.title = "Back in Time for Winter";
newShow.url = "https://www.cbc.ca/life/backintimeforwinter";
newShow.image = "/tv/content/entry/BackInTimeForWinter_1280x720.jpg";
newShow.description = "Back in Time for Winter follows one modern family on a winter time-travelling adventure, as they take on 60 years of iconic outdoor activities, trends in cold-weather food, fashion, domestic work and technology.";
newShow.airtime = "Thursdays at 8 P.M. (8:30NT)";
newShow.genre = "unscripted";
newShow.genreName = "Unscripted";
newShow.showURL = "https://www.cbc.ca/life/backintimeforwinter";
newShow.watchURL = "https://gem.cbc.ca/season/back-in-time-for-winter/season-1/141d5001-a658-4a1d-b35b-9743b2666514";
newShow.phase = "Broadcast";
tempShowList.push(newShow);

var newShow = {};
newShow.title = "Baroness Von Sketch Show";
newShow.url = "https://www.cbc.ca/baroness";
newShow.image = "/tv/content/entry/bvss_s4.jpg";
newShow.description = "From the politics of ordering a coffee to entitled co-workers to open relationships, this satirical sketch show holds a fun house mirror up to modern life.";
newShow.airtime = "Tuesdays at 930pm/10:00NT";
newShow.genre = "comedy";
newShow.genreName = "Comedy";
newShow.showURL = "https://www.cbc.ca/baroness";
newShow.watchURL = "https://gem.cbc.ca/season/baroness-von-sketch-show/season-4/0cfb971d-cad2-418e-9320-caf38bb4aadb";
newShow.phase = "Gem";
tempShowList.push(newShow);

var newShow = {};
newShow.title = "Battle of the Blades";
newShow.url = "https://www.cbc.ca/television/battleoftheblades";
newShow.image = "/tv/content/entry/BattleOfTheBladesS5_1280.jpg";
newShow.description = "Athletes from two of Canada&rsquo;s favourite sports &mdash; figure skating and hockey &mdash; pair up and perform in a live, high-stakes figure skating competition for the charity of their choice.";
newShow.airtime = "";
newShow.genre = "unscripted";
newShow.genreName = "Unscripted";
newShow.showURL = "https://www.cbc.ca/television/battleoftheblades";
newShow.watchURL = "https://gem.cbc.ca/season/battle-of-the-blades/season-5/79a8ca6d-a6f9-4833-a422-ae79592c61d4";
newShow.phase = "Gem";
tempShowList.push(newShow);

var newShow = {};
newShow.title = "Being Erica";
newShow.url = "";
newShow.image = "/tv/content/entry/BeingErica-binge-028347-thumb.jpg";
newShow.description = "BEING ERICA is a funny and magical comedy/drama series where the classic fantasy of revisiting the past offers 30-something year old Erica Strange a chance to come to terms with her choices in life.";
newShow.airtime = "Now Streaming on CBC Gem";
newShow.genre = "drama";
newShow.genreName = "Drama";
newShow.showURL = "";
newShow.watchURL = "https://watch.cbc.ca/season/being-erica/season-1/9536e9fb-84f4-4637-afa3-3500b05f3dc3";
newShow.phase = "Gem";
tempShowList.push(newShow);

var newShow = {};
newShow.title = "Bellevue";
newShow.url = "https://www.cbc.ca/bellevue/";
newShow.image = "/tv/content/entry/Bellevue-generic-300.jpg";
newShow.description = "Anna Paquin stars in this series set in a small blue-collar town with a lot of 'good people' who 'live right' and take it upon themselves to see that the neighbours do too.";
newShow.airtime = "Now Streaming on CBC Gem";
newShow.genre = "drama";
newShow.genreName = "Drama";
newShow.showURL = "https://www.cbc.ca/bellevue/";
newShow.watchURL = "https://watch.cbc.ca/season/bellevue/season-1/80d2a2aa-45e6-4df0-b5cc-1be467157c59";
newShow.phase = "Gem";
tempShowList.push(newShow);

var newShow = {};
newShow.title = "Blackstone";
newShow.url = "";
newShow.image = "/tv/content/entry/Blackstone-generictitle.jpg";
newShow.description = "Compelling and uncompromising, Blackstone is both a portrayal of a community plagued by corruption, violence and injustice, and an inspiring story of the undying hope and resilience of a people fighting for a better life in the midst of adversity.";
newShow.airtime = "Now Streaming on CBC Gem";
newShow.genre = "drama";
newShow.genreName = "Drama";
newShow.showURL = "";
newShow.watchURL = "https://watch.cbc.ca/season/blackstone/season-1/4c5419b1-fbb7-421a-aff0-008ee90cdc19";
newShow.phase = "Gem";
tempShowList.push(newShow);

var newShow = {};
newShow.title = "Bondi Vet";
newShow.url = "";
newShow.image = "/tv/content/entry/BondiVet-generic.jpg";
newShow.description = "A touching look at the bond between man and animal; heartwarming and heartbreaking stories that families will love. From the drama of a critically injured family dog rushed to the clinic after a hit-and-run, to the tear-jerking tale of a kangaroo joey abandoned at birth, BONDI VET follows the lives of veterinary surgeon Chris Brown and emergency veterinarian Lisa Chimes.";
newShow.airtime = "Weekdays at 4pm";
newShow.genre = "unscripted";
newShow.genreName = "Unscripted";
newShow.showURL = "";
newShow.watchURL = "https://watch.cbc.ca/season/bondi-vet/bondi-vet-top-ten/32fc0474-547e-45c8-a96c-850d65145f97";
newShow.phase = "Broadcast";
tempShowList.push(newShow);

var newShow = {};
newShow.title = "Burden of Truth";
newShow.url = "https://www.cbc.ca/burdenoftruth/";
newShow.image = "/tv/content/entry/CBC_SiteListing_BurdenOfTruth_S3_616x346.jpg";
newShow.description = "Now at a new firm, Joanna Chang is assigned the case of a brilliant young Internet privacy activist. Meanwhile, back in Millwood, Billy Crawford is dealing with the aftermath of the Matheson Steel lawsuit.";
newShow.airtime = "Wednesdays at 8pm/8:30NT";
newShow.genre = "drama";
newShow.genreName = "Drama";
newShow.showURL = "https://www.cbc.ca/burdenoftruth/";
newShow.watchURL = "https://gem.cbc.ca/season/burden-of-truth/season-3/2b9e3e72-ba88-44cd-a3cf-02dff9cac604?cmp=scripted_gem";
newShow.phase = "Broadcast";
tempShowList.push(newShow);

var newShow = {};
newShow.title = "But I&#8217;m Chris Jericho!";
newShow.url = "";
newShow.image = "/tv/content/entry/300-ButImChrisJericho-generic.jpg";
newShow.description = "In this tongue-in-cheek portrayal of his life, Chris Jericho is a former wrestler struggling to make it big as an actor.";
newShow.airtime = "Watch the series online";
newShow.genre = "comedy";
newShow.genreName = "Comedy";
newShow.showURL = "";
newShow.watchURL = "https://watch.cbc.ca/season/but-im-chris-jericho/season-1/693727fd-a92c-4d71-abc9-4f0e382c53cb";
newShow.phase = "Gem";
tempShowList.push(newShow);

var newShow = {};
newShow.title = "Canada&#8217;s Smartest Person";
newShow.url = "https://www.cbc.ca/smartestperson/";
newShow.image = "/tv/content/entry/CSP2016.jpg";
newShow.description = "Canada's Smartest Person is a whole new way of looking at SMART. Four participants are challenged with various tasks that will redefine what it means to be smart based on multiple intelligence theory.";
newShow.airtime = "Now Streaming on CBC Gem";
newShow.genre = "unscripted";
newShow.genreName = "Unscripted";
newShow.showURL = "https://www.cbc.ca/smartestperson/";
newShow.watchURL = "https://watch.cbc.ca/season/canadas-smartest-person/season-1/3cbe68ec-ae57-443d-a821-21b277f95d45";
newShow.phase = "Gem";
tempShowList.push(newShow);

var newShow = {};
newShow.title = "Canada&#8217;s Smartest Person Junior";
newShow.url = "https://www.cbc.ca/smartestpersonjunior/";
newShow.image = "/tv/content/entry/TV-CSP-Seasaon-1-1280x720-2.jpg";
newShow.description = "In an exciting evolution of CBC's hit competition format, Canada's Smartest Person,12 remarkable kids aged 8-12 battle it out over six weeks for their chance to be named Canada&rsquo;s Smartest Person Junior.";
newShow.airtime = "Wednesdays at 8pm/8:30NT";
newShow.genre = "unscripted";
newShow.genreName = "Unscripted";
newShow.showURL = "https://www.cbc.ca/smartestpersonjunior/";
newShow.watchURL = "https://watch.cbc.ca/season/canadas-smartest-person-junior/season-1/a1896836-1c9f-4b10-ace2-058708728293";
newShow.phase = "Gem";
tempShowList.push(newShow);

var newShow = {};
newShow.title = "Canada: The Story of Us";
newShow.url = "https://www.cbc.ca/2017/canadathestoryofus";
newShow.image = "/tv/content/entry/StoryOfUsLogo-300.jpg";
newShow.description = "Over 10 hours, the drama-documentary tells the extraordinary tale of some of the people, places and events that shaped Canada &mdash; stories of change makers and rule breakers, dreamers and visionaries, scientists and entrepreneurs who forged a nation in a vast and harsh land.";
newShow.airtime = "Now Streaming on CBC Gem";
newShow.genre = "unscripted";
newShow.genreName = "Unscripted";
newShow.showURL = "https://www.cbc.ca/2017/canadathestoryofus";
newShow.watchURL = "https://watch.cbc.ca/season/canada-the-story-of-us/season-1/1c9a9fb9-d1d4-4587-9f38-8c1f43d2aee0";
newShow.phase = "Gem";
tempShowList.push(newShow);

var newShow = {};
newShow.title = "Canadian Reflections";
newShow.url = "https://www.cbc.ca/reflections";
newShow.image = "/tv/content/entry/300-CanReflections-2017.jpg";
newShow.description = "CANADIAN REFLECTIONS is Canada&rsquo;s longest running showcase of independent short film. For over thirty years, we have given Canada&rsquo;s best and brightest filmmakers a national audience, currently broadcasting into homes across the country Sundays at midnight.";
newShow.airtime = "Now Streaming on CBC Gem";
newShow.genre = "drama";
newShow.genreName = "Drama";
newShow.showURL = "https://www.cbc.ca/reflections";
newShow.watchURL = "https://watch.cbc.ca/series/canadian-reflections/all/a2f1c889-8595-49fd-a881-cbeca2d647fa";
newShow.phase = "Gem";
tempShowList.push(newShow);

var newShow = {};
newShow.title = "Caught";
newShow.url = "https://www.cbc.ca/caught";
newShow.image = "/tv/content/entry/caught_thumbnail.jpg";
newShow.description = "Locked up after a drug bust, David Slaney makes a daring escape from a New Brunswick prison to attempt one more drug deal with his former partner. It&rsquo;s Slaney&rsquo;s last chance at freedom but in this tale of bravado and betrayal, nothing is what it seems and no one can be trusted.";
newShow.airtime = "Now Streaming on CBC Gem";
newShow.genre = "drama";
newShow.genreName = "Drama";
newShow.showURL = "https://www.cbc.ca/caught";
newShow.watchURL = "https://watch.cbc.ca/season/caught/season-1/64205a8d-b57d-4337-8c27-d89906bf1e2a";
newShow.phase = "Gem";
tempShowList.push(newShow);

var newShow = {};
newShow.title = "Cavendish";
newShow.url = "https://www.cbc.ca/cavendish/";
newShow.image = "/tv/content/entry/CAVENDISH-shows-listing-thumbnail.jpg";
newShow.description = "Brothers Mark (Mark Little) and Andy (Andy Bush) return to Cavendish for the first time since childhood to care for their ailing father who runs The Museum of the Strange and Fantastic. They quickly find out that Cavendish is not like other towns, and while Mark (the golden boy) and Andy (the striver) become embroiled in creepy misadventures, they soon realize their family dynamic hasn&rsquo;t changed much since they were kids.";
newShow.airtime = "Tuesdays at 9:30pm/10NT";
newShow.genre = "comedy";
newShow.genreName = "Comedy";
newShow.showURL = "https://www.cbc.ca/cavendish/";
newShow.watchURL = "https://watch.cbc.ca/season/cavendish/season-1/50ad1d4a-b15d-43af-959b-c58f7ce299bf";
newShow.phase = "Gem";
tempShowList.push(newShow);

var newShow = {};
newShow.title = "CBC Docs POV";
newShow.url = "https://www.cbc.ca/cbcdocspov/";
newShow.image = "/tv/content/entry/Docs-POV-large.jpg";
newShow.description = "CBC's new point-of-view documentary series gets to the heart of issues that matter to Canadians. Celebrating the great Canadian tradition of documentary, Canada's best filmmakers bring us films with compelling characters, harrowing tales and unforgettable moments. ";
newShow.airtime = "Sundays at 9pm/9:30NT";
newShow.genre = "documentary";
newShow.genreName = "Documentary";
newShow.showURL = "https://www.cbc.ca/cbcdocspov/";
newShow.watchURL = "https://watch.cbc.ca/season/cbc-docs-pov/season-2/25c75b8b-f8da-4996-bb5c-0c8eaa1c762f";
newShow.phase = "Broadcast";
tempShowList.push(newShow);

var newShow = {};
newShow.title = "Coronation Street";
newShow.url = "https://www.cbc.ca/coronation/";
newShow.image = "/tv/content/entry/coronation_street_2019.jpg";
newShow.description = "CORONATION STREET is the long-running British soap opera set in fictional town of Weartherfield, based on the real town of Salford in North West England. The series, first broadcast on December 9 1960, portrays the everyday life of a working-class British community.";
newShow.airtime = "Weeknights at 7:30pm/8NT";
newShow.genre = "drama";
newShow.genreName = "Drama";
newShow.showURL = "https://www.cbc.ca/coronation/";
newShow.watchURL = "https://watch.cbc.ca/series/coronation-street/all/ebc258f5-ee40-4cca-b66b-ba6bd55b7235";
newShow.phase = "Broadcast";
tempShowList.push(newShow);

var newShow = {};
newShow.title = "Coroner";
newShow.url = "https://www.cbc.ca/coroner/";
newShow.image = "/tv/content/entry/Media-Centre-Events-Page_CORONER_620x349.jpg";
newShow.description = "Coroner is a one-hour drama about Jenny Cooper, a coroner who investigates unexplained or sudden deaths in the city of Toronto. Fierce and quick-witted, Jenny is a newly-widowed single mother with secrets of her own to unearth. Starring Serinda Swan and Roger Cross, coming January 7th, 2019.";
newShow.airtime = "Mondays at 9/9:30NT";
newShow.genre = "drama";
newShow.genreName = "Drama";
newShow.showURL = "https://www.cbc.ca/coroner/";
newShow.watchURL = "https://gem.cbc.ca/season/coroner/season-2/60397da7-7642-4da9-a96f-204798ebe183?cmp=scripted_gem";
newShow.phase = "Broadcast";
tempShowList.push(newShow);

var newShow = {};
newShow.title = "Cracked";
newShow.url = "";
newShow.image = "/tv/content/entry/CrackedTV.jpg";
newShow.description = "CRACKED is about a unique team of police investigators and mental health professionals, the PSYCH CRIMES UNIT, tasked with solving the wide variety of crimes that cross the boundary between law enforcement and psychological disturbance.";
newShow.airtime = "Now Streaming on CBC Gem";
newShow.genre = "drama";
newShow.genreName = "Drama";
newShow.showURL = "";
newShow.watchURL = "https://watch.cbc.ca/season/cracked/season-1/fd89927d-4931-4784-ae02-e5446f198c28";
newShow.phase = "Gem";
tempShowList.push(newShow);

var newShow = {};
newShow.title = "Crawford";
newShow.url = "https://watch.cbc.ca/crawford/season-1/b0c53e89-587e-49cf-9c18-d69c049b2828";
newShow.image = "/tv/content/entry/crawford_streaming_site_hdr_16x9.jpg";
newShow.description = "The world of Crawford is a familiar yet unusual one. When raccoons invade the world&rsquo;s most functioning dysfunctional family&rsquo;s home, they help breathe life and new meaning into the odd behaviours of the family.";
newShow.airtime = "Now Streaming on CBC Gem";
newShow.genre = "comedy";
newShow.genreName = "Comedy";
newShow.showURL = "https://watch.cbc.ca/crawford/season-1/b0c53e89-587e-49cf-9c18-d69c049b2828";
newShow.watchURL = "https://watch.cbc.ca/crawford/season-1/b0c53e89-587e-49cf-9c18-d69c049b2828";
newShow.phase = "Gem";
tempShowList.push(newShow);

var newShow = {};
newShow.title = "Diggstown";
newShow.url = "https://www.cbc.ca/diggstown/";
newShow.image = "/tv/content/entry/Diggstown_TVthumb.jpg";
newShow.description = "Diggstown follows Marcie Diggs, a star corporate lawyer who reconsiders her priorities after her beloved aunt commits suicide following a malicious prosecution.";
newShow.airtime = "Wednesdays at 8pm/8:30NT";
newShow.genre = "drama";
newShow.genreName = "Drama";
newShow.showURL = "https://www.cbc.ca/diggstown/";
newShow.watchURL = "https://gem.cbc.ca/season/diggstown/season-1/eb4e5e89-6cba-406c-8fcc-801f46a18c67";
newShow.phase = "Gem";
tempShowList.push(newShow);

var newShow = {};
newShow.title = "Dragons&#8217; Den";
newShow.url = "https://www.cbc.ca/dragonsden/";
newShow.image = "/tv/content/entry/dd-s15-keyart-16x9.png";
newShow.description = "Launching a business is no small task. No matter how big an idea you think you have, it still takes a lot of work and a ton of cash. Enter the Dragons' Den, where aspiring entrepreneurs pitch their business concepts and products to a panel of Canadian business moguls who have the cash and the know-how to make it happen.";
newShow.airtime = "";
newShow.genre = "unscripted";
newShow.genreName = "Unscripted";
newShow.showURL = "https://www.cbc.ca/dragonsden/";
newShow.watchURL = "https://gem.cbc.ca/season/dragons-den/season-14/834b86e3-cd07-46dc-9053-522591d5a4d7";
newShow.phase = "Gem";
tempShowList.push(newShow);

var newShow = {};
newShow.title = "Enslaved";
newShow.url = "https://www.cbc.ca/documentaries/enslaved";
newShow.image = "/tv/content/entry/Enslaved_SiteListing_1280x720.jpg";
newShow.description = "ENSLAVED is a six-part documentary series that sheds new light on 400 years of human trafficking from Africa to the New World, led by Hollywood icon and human rights activist Samuel L. Jackson.";
newShow.airtime = "Sundays at 9:00 p.m. (9:30 NT)";
newShow.genre = "unscripted";
newShow.genreName = "Unscripted";
newShow.showURL = "https://www.cbc.ca/documentaries/enslaved";
newShow.watchURL = "https://gem.cbc.ca/media/enslaved/season-1/episode-0/38e815a-01322859cf9?cmp=DM_SEM_ENSLAVED";
newShow.phase = "Premiering";
tempShowList.push(newShow);

var newShow = {};
newShow.title = "Exhibitionists";
newShow.url = "https://www.cbc.ca/arts/exhibitionists";
newShow.image = "/tv/content/entry/Exhibitionists-generic-blue.jpg";
newShow.description = "Exhibitionists explores the most exciting cultural happenings across Canada through a passionate lens. ";
newShow.airtime = "";
newShow.genre = "unscripted";
newShow.genreName = "Unscripted";
newShow.showURL = "https://www.cbc.ca/arts/exhibitionists";
newShow.watchURL = "https://watch.cbc.ca/season/cbc-arts-exhibitionists/season-4/63a94726-3b48-41e6-9d5c-7146a997a343";
newShow.phase = "Gem";
tempShowList.push(newShow);

var newShow = {};
newShow.title = "Family Feud Canada";
newShow.url = "https://www.cbc.ca/television/familyfeud";
newShow.image = "/tv/content/entry/FFC-S2-keyart-16x9.png";
newShow.description = "Two Canadian families compete to guess the most popular answers to fun, family-friendly survey questions, with host Gerry Dee.";
newShow.airtime = "Monday to Thursday at 7:30 p.m. (8 NT)";
newShow.genre = "unscripted";
newShow.genreName = "Unscripted";
newShow.showURL = "https://www.cbc.ca/television/familyfeud";
newShow.watchURL = "https://gem.cbc.ca/season/family-feud-canada/season-2/694e25df-c74e-4267-8812-84ee8bf4cba0";
newShow.phase = "Broadcast";
tempShowList.push(newShow);

var newShow = {};
newShow.title = "Farm Crime";
newShow.url = "https://www.cbc.ca/farmcrime/";
newShow.image = "/tv/content/entry/FC-S2-KEYART-TV_WEBSITE_THUMBNAIL.jpg";
newShow.description = "From brazen lobster heists to contemporary horse rustling, Farm Crime is a true crime documentary series investigating unconventional offences in farming and agriculture.";
newShow.airtime = "New season now Streaming on CBC Gem";
newShow.genre = "unscripted";
newShow.genreName = "Unscripted";
newShow.showURL = "https://www.cbc.ca/farmcrime/";
newShow.watchURL = "https://gem.cbc.ca/season/farm-crime/season-2/a76f087f-e92d-4b3d-8dfa-0e67f63b5246?cmp=familyfeud-pareto-unscripted";
newShow.phase = "Gem";
tempShowList.push(newShow);

var newShow = {};
newShow.title = "Fortunate Son";
newShow.url = "https://www.cbc.ca/fortunateson";
newShow.image = "/tv/content/entry/SiteListingPolopoly_FortunateSon_616x346.jpg";
newShow.description = "War, riots, assassinations, political corruption, racial tension. Like today, 1968 was a time of global political and social upheaval. Tensions between generations, races and genders were all reaching critical levels. But 1968 was also a time of hope, of new ideas and change. Fortunate Son tells the story of a family divided by a mother&rsquo;s deeply held commitment to activism and the personal cost it exacts on those she loves.";
newShow.airtime = "Wednesday at 9/9:30NT";
newShow.genre = "drama";
newShow.genreName = "Drama";
newShow.showURL = "https://www.cbc.ca/fortunateson";
newShow.watchURL = "https://gem.cbc.ca/season/fortunate-son/season-1/157f0cb9-a24c-4d35-8b36-d69190903103?cmp=scripted_gem";
newShow.phase = "Broadcast";
tempShowList.push(newShow);

var newShow = {};
newShow.title = "Frankie Drake Mysteries";
newShow.url = "https://www.cbc.ca/frankiedrake/";
newShow.image = "/tv/content/entry/frankie-drake-s3.jpg";
newShow.description = "Set in Toronto during the 1920s, FRANKIE DRAKE MYSTERIES follows the city&rsquo;s only female private detective as she takes on the cases the police don&rsquo;t want or can&rsquo;t handle. Her gender is her biggest advantage &ndash; who would ever think a woman could be a detective? ";
newShow.airtime = "Mondays at 9/9:30NT";
newShow.genre = "drama";
newShow.genreName = "Drama";
newShow.showURL = "https://www.cbc.ca/frankiedrake/";
newShow.watchURL = "https://gem.cbc.ca/season/frankie-drake-mysteries/season-3/356f60f3-38b7-48d6-9e1e-98731e54f397?cmp=scripted_gem";
newShow.phase = "Gem";
tempShowList.push(newShow);

var newShow = {};
newShow.title = "Fridge Wars";
newShow.url = "https://www.cbc.ca/life/fridgewars";
newShow.image = "/tv/content/entry/FridgeWars_SiteListing_616x346.jpg";
newShow.description = "Think you have nothing to eat at home? Think again. Fridge Wars&nbsp;is a new culinary competition that pits celebrity chefs against each other with the challenge of creating extraordinary meals using only the ingredients taken from the ordinary fridges of Canadian families.&nbsp;When cooking time's up, the first family takes their place at the dining room table and tastes each meal, scoring them on look, taste and originality &mdash; without knowing who cooked what. Those results go in the&nbsp;Fridge Wars&nbsp;vault and we do it all again with a new family and a new fridge full of challenges. This time upping the ante with a &quot;What the Fridge (WTF)&nbsp;Challenge&quot; that forces both chefs to adapt to a totally unique culinary crisis. With both families' scores tabulated, the final scene reveals which chef successfully created a mouth-watering masterpiece to win the&nbsp;Fridge Wars&nbsp;battle.";
newShow.airtime = "";
newShow.genre = "unscripted";
newShow.genreName = "Unscripted";
newShow.showURL = "https://www.cbc.ca/life/fridgewars";
newShow.watchURL = "https://gem.cbc.ca/season/fridge-wars/season-1/850cd849-042f-4983-a739-83b61c25a6fd";
newShow.phase = "Gem";
tempShowList.push(newShow);

var newShow = {};
newShow.title = "From the Vaults";
newShow.url = "https://www.cbc.ca/television/fromthevaults";
newShow.image = "/tv/content/entry/FromTheVaults_ShowListing_616x346.jpg";
newShow.description = "FROM THE VAULTS is an all-access music journey into a Canadian treasure that few have ever seen: The CBC Archives.";
newShow.airtime = "Thursdays at 9pm/9:30NT";
newShow.genre = "unscripted";
newShow.genreName = "Unscripted";
newShow.showURL = "https://www.cbc.ca/television/fromthevaults";
newShow.watchURL = "https://watch.cbc.ca/season/from-the-vaults/season-1/b1bc9f0a-c563-4622-b200-80fb41e98421";
newShow.phase = "Gem";
tempShowList.push(newShow);

var newShow = {};
newShow.title = "Good People";
newShow.url = "https://www.cbc.ca/documentaries/goodpeople";
newShow.image = "/tv/content/entry/Good_People_1280x720.jpg";
newShow.description = "Good People takes a hard look at Canada&rsquo;s problems and scours the planet for the places and solutions that offer hope. Exploring homelessness, gun violence outbreaks, veteran welfare, a world-worst record on garbage, and the opioid crisis, host Mark Sakamoto focuses the issues and connects with the people most affected.";
newShow.airtime = "";
newShow.genre = "documentary";
newShow.genreName = "Documentary";
newShow.showURL = "https://www.cbc.ca/documentaries/goodpeople";
newShow.watchURL = "https://gem.cbc.ca/season/good-people-with-mark-sakamoto/season-1/db73b5fb-91a4-441c-9ee6-5d907a5288c1";
newShow.phase = "Gem";
tempShowList.push(newShow);

var newShow = {};
newShow.title = "Halifax Comedy Festival";
newShow.url = "";
newShow.image = "/tv/content/entry/HalifaxComedyFest-logo-300.jpg";
newShow.description = "";
newShow.airtime = "Tuesdays at 9:30pm/10NT";
newShow.genre = "comedy";
newShow.genreName = "Comedy";
newShow.showURL = "";
newShow.watchURL = "https://watch.cbc.ca/season/halifax-comedy-festival/season-23/0012bf8e-b318-4ccf-8775-5b088d34d812";
newShow.phase = "Gem";
tempShowList.push(newShow);

var newShow = {};
newShow.title = "Heartland";
newShow.url = "https://www.cbc.ca/heartland/";
newShow.image = "/tv/content/entry/heartland-s13.jpg";
newShow.description = "Set against the stunning vistas of the Alberta Rocky Mountains, Heartland is a sprawling family drama that follows sisters Amy and Lou Fleming and their grandfather, Jack, through the highs and lows of life on a horse ranch.";
newShow.airtime = "Sundays at 7pm/7:30NT";
newShow.genre = "drama";
newShow.genreName = "Drama";
newShow.showURL = "https://www.cbc.ca/heartland/";
newShow.watchURL = "https://gem.cbc.ca/season/heartland/season-13/6cfaaf06-89d7-47db-90b7-dfabb91d91cb?cmp=scripted_gem";
newShow.phase = "Gem";
tempShowList.push(newShow);

var newShow = {};
newShow.title = "Hello Goodbye";
newShow.url = "https://www.cbc.ca/hellogoodbye/";
newShow.image = "/tv/content/entry/HelloGoodbye-generic.jpg";
newShow.description = "Bustling airport arrival and departure terminals see thousands of people every day, and each and every traveller has a unique story to tell.";
newShow.airtime = "Fridays at 8:30pm/9NT";
newShow.genre = "unscripted";
newShow.genreName = "Unscripted";
newShow.showURL = "https://www.cbc.ca/hellogoodbye/";
newShow.watchURL = "https://watch.cbc.ca/season/hello-goodbye/season-1/bf940784-29d9-4690-b0b9-f90a87c3b7c7";
newShow.phase = "Gem";
tempShowList.push(newShow);

var newShow = {};
newShow.title = "High Arctic Haulers";
newShow.url = "https://www.cbc.ca/television/higharctichaulers/";
newShow.image = "/tv/content/entry/CBC_InstagramHeader_HighArcticHaulers_1240x700.jpg";
newShow.description = "A fleet of cargo ships battles the tumultuous waters of the High Arctic to reach remote communities who rely on the annual sealift.";
newShow.airtime = "Series premieres Sunday, Jan. 5 at 8 PM (8:30NT)";
newShow.genre = "unscripted";
newShow.genreName = "Unscripted";
newShow.showURL = "https://www.cbc.ca/television/higharctichaulers/";
newShow.watchURL = "https://gem.cbc.ca/season/high-arctic-haulers/season-1/3a69b049-cccf-43bf-bf2c-71b5575a211f";
newShow.phase = "Gem";
tempShowList.push(newShow);

var newShow = {};
newShow.title = "Hudson";
newShow.url = "";
newShow.image = "/tv/content/entry/hudson_banner.jpg";
newShow.description = "While left in charge of Maggie&rsquo;s Diner for the week, a driven Jade Virani butts heads with the new girl in town while they vie for the new manager position. Hudson is a digital series based in the world of Heartland.";
newShow.airtime = "Streaming now on CBC Gem";
newShow.genre = "drama";
newShow.genreName = "Drama";
newShow.showURL = "";
newShow.watchURL = "https://gem.cbc.ca/season/hudson/season-1/6ea3bef7-6cb7-449f-af14-1acff078b928";
newShow.phase = "Gem";
tempShowList.push(newShow);

var newShow = {};
newShow.title = "Interrupt this Program";
newShow.url = "https://www.cbc.ca/arts/interruptthisprogram";
newShow.image = "/tv/content/entry/InterruptThisProgram-logo300.jpg";
newShow.description = "When a city experiences trauma &mdash; a natural disaster, long-term war, political unrest, or economic meltdown &mdash; how do artists respond?";
newShow.airtime = "Sundays at 9pm/9:30 NT";
newShow.genre = "unscripted";
newShow.genreName = "Unscripted";
newShow.showURL = "https://www.cbc.ca/arts/interruptthisprogram";
newShow.watchURL = "https://watch.cbc.ca/season/interrupt-this-program/season-1/75e126a3-96f2-461e-b6f0-8623b1b9041b";
newShow.phase = "Gem";
tempShowList.push(newShow);

var newShow = {};
newShow.title = "Jensplaining";
newShow.url = "";
newShow.image = "/tv/content/entry/jensplaining-gemcard2.jpg";
newShow.description = "Dr. Jen Gunter is &ldquo;Twitter&rsquo;s Gynecologist.&rdquo; Through humour and expertise, she helps us understand how celebrity endorsed popular pseudoscience &quot;wellness&quot; products and trends are anything but harmless.";
newShow.airtime = "";
newShow.genre = "unscripted";
newShow.genreName = "Unscripted";
newShow.showURL = "";
newShow.watchURL = "https://gem.cbc.ca/season/jensplaining/season-1/9064a0b9-bbd2-4129-8998-a30cc97ebbb2";
newShow.phase = "Gem";
tempShowList.push(newShow);

var newShow = {};
newShow.title = "Kim&#8217;s Convenience";
newShow.url = "https://www.cbc.ca/kimsconvenience";
newShow.image = "/tv/content/entry/KimsConvenience-SiteListing-616x346.jpg";
newShow.description = "KIM'S CONVENIENCE is the funny, heartfelt story of the Kims, a Korean-Canadian family, running a convenience store in downtown Toronto.";
newShow.airtime = "Tuesdays at 9pm/9:30NT";
newShow.genre = "comedy";
newShow.genreName = "Comedy";
newShow.showURL = "https://www.cbc.ca/kimsconvenience";
newShow.watchURL = "https://gem.cbc.ca/season/kims-convenience/season-4/fd64213c-4590-4da9-8c83-8112632cd82e?cmp=scripted_gem";
newShow.phase = "Broadcast";
tempShowList.push(newShow);

var newShow = {};
newShow.title = "Land and Sea";
newShow.url = "";
newShow.image = "/tv/content/entry/LandAndSeaNetwork-logo.jpg";
newShow.description = "The series documents the lives of Canadians who live on the natural resources of the eastern coast of the country. They are the stories of people who keep the oldest traditions alive.";
newShow.airtime = "Now Streaming on CBC Gem";
newShow.genre = "documentary";
newShow.genreName = "Documentary";
newShow.showURL = "";
newShow.watchURL = "https://watch.cbc.ca/season/land-and-sea-network/season-18/983daeaf-8e14-4a54-a53c-dbb9c021da00";
newShow.phase = "Gem";
tempShowList.push(newShow);

var newShow = {};
newShow.title = "Little Dog";
newShow.url = "https://www.cbc.ca/littledog";
newShow.image = "/tv/content/entry/little-dog-s2-hero.jpg";
newShow.description = "Tommy &lsquo;Little Dog&rsquo; Ross is on the run after winning a fight he was supposed to throw, screwing over Tucker, and inadvertently losing his mother&rsquo;s house. To make life even messier, Tommy is trying to parent a child he didn&rsquo;t know he had and win Pamela back at the same time.";
newShow.airtime = "Streaming now on CBC Gem";
newShow.genre = "comedy";
newShow.genreName = "Comedy";
newShow.showURL = "https://www.cbc.ca/littledog";
newShow.watchURL = "https://watch.cbc.ca/season/little-dog/season-2/5be2d695-98b5-43ca-a624-9d03bcc6b91e";
newShow.phase = "Gem";
tempShowList.push(newShow);

var newShow = {};
newShow.title = "Marketplace";
newShow.url = "https://www.cbc.ca/marketplace/";
newShow.image = "/tv/content/entry/Marketplace2016.jpg";
newShow.description = "Canada's No. 1 investigative consumer show uses investigative reporting, independent testing and, where warranted, hidden cameras to create a unique programming stamp.";
newShow.airtime = "Fridays at 8pm/8:30NT";
newShow.genre = "news";
newShow.genreName = "News";
newShow.showURL = "https://www.cbc.ca/marketplace/";
newShow.watchURL = "https://watch.cbc.ca/season/marketplace/season-46/4eb03490-68e2-4708-a386-1fbd5910ccf2";
newShow.phase = "Broadcast";
tempShowList.push(newShow);

var newShow = {};
newShow.title = "Michael: Every Day";
newShow.url = "https://www.cbc.ca/michael";
newShow.image = "/tv/content/entry/michael_every_day.jpg";
newShow.description = "Five years after their last meeting, Michael suffers a devastating panic attack at the airport on his departure for a business trip. Returning to Ottawa for help he finds out that his therapist, David, is in worse shape than he is. ";
newShow.airtime = "Now Streaming on CBC Gem";
newShow.genre = "comedy";
newShow.genreName = "Comedy";
newShow.showURL = "https://www.cbc.ca/michael";
newShow.watchURL = "https://watch.cbc.ca/series/michael-every-day/3686c672-d688-45c6-85ac-c1d2f2290791";
newShow.phase = "Gem";
tempShowList.push(newShow);

var newShow = {};
newShow.title = "Mr. D";
newShow.url = "https://www.cbc.ca/mrd";
newShow.image = "/tv/content/entry/B-Mr-D-Media-Center-Program-Header-750x360.jpg";
newShow.description = "Mr. D is based on the stand-up comedy act of Dee, who was a teacher for nine years before transitioning to a career in comedy. The series revolves around the eponymous Mr. D, an under-qualified and unmotivated teacher trying to fake his way through work &ndash; and life.";
newShow.airtime = "Wednesdays at 9pm/9:30NT";
newShow.genre = "comedy";
newShow.genreName = "Comedy";
newShow.showURL = "https://www.cbc.ca/mrd";
newShow.watchURL = "https://watch.cbc.ca/season/mr-d/season-8/7cf74189-db9b-4fa7-b311-bfa543b7651f";
newShow.phase = "Gem";
tempShowList.push(newShow);

var newShow = {};
newShow.title = "Munk Dialogues";
newShow.url = "";
newShow.image = "/tv/content/entry/CBCGem_CBC_MPX_Thumbnail_The_Munk_Debates_1240x700.jpg";
newShow.description = "The autumn 2020 Munk Dialogues are a 10-week public conversation about how the pandemic is reshaping the world as we know it, from our politics to society to shared values to the economy.";
newShow.airtime = "";
newShow.genre = "unscripted";
newShow.genreName = "Unscripted";
newShow.showURL = "";
newShow.watchURL = "https://gem.cbc.ca/season/munk-dialogues/season-1/c3a125ca-ec79-45ee-85ef-cfc3a0f59cf8?cmp=sch-munk";
newShow.phase = "Gem";
tempShowList.push(newShow);

var newShow = {};
newShow.title = "Murdoch Mysteries";
newShow.url = "https://www.cbc.ca/murdochmysteries/";
newShow.image = "/tv/content/entry/murdoch-mysteries-s13.jpg";
newShow.description = "Set in Toronto in the early 1900s, MURDOCH MYSTERIES explores the world of William Murdoch, a dashing detective who uses inventive forensic techniques to solve some of the city's most gruesome crimes.";
newShow.airtime = "Mondays at 8pm/8:30 NT";
newShow.genre = "drama";
newShow.genreName = "Drama";
newShow.showURL = "https://www.cbc.ca/murdochmysteries/";
newShow.watchURL = "https://gem.cbc.ca/season/murdoch-mysteries/season-13/1f641619-433c-49d1-84d6-bbfb189fae76";
newShow.phase = "Broadcast";
tempShowList.push(newShow);

var newShow = {};
newShow.title = "Red Button";
newShow.url = "https://www.cbc.ca/redbutton/";
newShow.image = "/tv/content/entry/red-button-tvshow.png";
newShow.description = "RED BUTTON is a groundbreaking approach to storytelling where young documentary subjects turn the camera on themselves to break down the misconceptions, prejudices or stereotypes they face. Each episode focuses on one young person who gives us an unflinchingly honest portrayal of their life.";
newShow.airtime = "Start Streaming on CBC Gem";
newShow.genre = "documentary";
newShow.genreName = "Documentary";
newShow.showURL = "https://www.cbc.ca/redbutton/";
newShow.watchURL = "https://gem.cbc.ca/season/red-button/season-2/7cc35460-070f-4354-832a-e4d0d0a14df9";
newShow.phase = "Gem";
tempShowList.push(newShow);

var newShow = {};
newShow.title = "Republic of Doyle";
newShow.url = "https://www.cbc.ca/republicofdoyle/";
newShow.image = "/tv/content/entry/Doyle_TV.jpg";
newShow.description = "REPUBLIC OF DOYLE stars Allan Hawco as the charming and bold detective, Jake Doyle, who struggles daily to navigate the complications of running the family P.I. business while keeping his very volatile private life in check.";
newShow.airtime = "Now Streaming on CBC Gem";
newShow.genre = "drama";
newShow.genreName = "Drama";
newShow.showURL = "https://www.cbc.ca/republicofdoyle/";
newShow.watchURL = "https://watch.cbc.ca/season/republic-of-doyle/season-1/2812f32b-dc61-4597-ac67-0694c1f09abe";
newShow.phase = "Gem";
tempShowList.push(newShow);

var newShow = {};
newShow.title = "Rick Mercer Report";
newShow.url = "https://www.cbc.ca/mercerreport/";
newShow.image = "/tv/content/entry/Mercer_RIM_1470x910.jpg";
newShow.description = "Canada's number one political satirist, Rick Mercer, serves up his weekly dose of political satire, ranting, funny takes on the week's top stories and lively cross-country adventures. ";
newShow.airtime = "Tuesdays at 8pm/8:30NT";
newShow.genre = "comedy";
newShow.genreName = "Comedy";
newShow.showURL = "https://www.cbc.ca/mercerreport/";
newShow.watchURL = "https://watch.cbc.ca/season/rick-mercer-report/season-15/bbc3991b-7106-4941-9ec8-10d2cdaa1fc1";
newShow.phase = "Gem";
tempShowList.push(newShow);

var newShow = {};
newShow.title = "Schitt&#8217;s Creek";
newShow.url = "https://www.cbc.ca/schittscreek";
newShow.image = "/tv/content/entry/SchittsCreekS6_SiteListing_616x346.jpg";
newShow.description = "Follow the trials of the Rose family as they navigate their new-found poverty &ndash; and each other &ndash; in Schitt&rsquo;s Creek, a town they once purchased as a joke.";
newShow.airtime = "Tuesdays at 9pm/9:30NT";
newShow.genre = "comedy";
newShow.genreName = "Comedy";
newShow.showURL = "https://www.cbc.ca/schittscreek";
newShow.watchURL = "https://gem.cbc.ca/season/schitts-creek/season-6/4beb167e-f4da-4435-9282-7acb77230775?cmp=scripted_gem";
newShow.phase = "Broadcast";
tempShowList.push(newShow);

var newShow = {};
newShow.title = "Shoot the Messenger";
newShow.url = "";
newShow.image = "/tv/content/entry/ShootMessenger-300.jpg";
newShow.description = "A young reporter finds herself drawn into an interconnected web of criminal and illicit sexual activity that reaches into the corridors of corporate and political power. ";
newShow.airtime = "Now Streaming on CBC Gem";
newShow.genre = "drama";
newShow.genreName = "Drama";
newShow.showURL = "";
newShow.watchURL = "https://watch.cbc.ca/season/shoot-the-messenger/season-1/61f32ab3-1bcd-422a-b37b-ff9b2a3f7232";
newShow.phase = "Gem";
tempShowList.push(newShow);

var newShow = {};
newShow.title = "Short Docs";
newShow.url = "https://www.cbc.ca/shortdocs/";
newShow.image = "/tv/content/entry/ShortDocs.jpg";
newShow.description = "CBC Short Docs is the go-to destination for Canadians looking for engaging, character-driven, short (under 30 minutes) documentary content by emerging documentary filmmakers from across Canada.";
newShow.airtime = "Watch CBC Short Docs online!";
newShow.genre = "documentary";
newShow.genreName = "Documentary";
newShow.showURL = "https://www.cbc.ca/shortdocs/";
newShow.watchURL = "https://watch.cbc.ca/series/short-docs/all/8844b939-df74-491a-b2c0-89ca3b79478f";
newShow.phase = "Broadcast";
tempShowList.push(newShow);

var newShow = {};
newShow.title = "Short Film Face Off";
newShow.url = "";
newShow.image = "/tv/content/entry/ShortFilmFaceOff620.jpg";
newShow.description = "Short Film Face Off is a magazine program showcasing short films from across the country.";
newShow.airtime = "Now Streaming on CBC Gem";
newShow.genre = "drama";
newShow.genreName = "Drama";
newShow.showURL = "";
newShow.watchURL = "https://watch.cbc.ca/season/short-film-face-off/season-9/2c4b6e8f-006c-4c99-9301-854d51d0d3e4";
newShow.phase = "Gem";
tempShowList.push(newShow);

var newShow = {};
newShow.title = "Still Standing";
newShow.url = "https://www.cbc.ca/television/stillstanding";
newShow.image = "/tv/content/entry/CBCGem_Poster_StillStandingS6_1240x700.jpg";
newShow.description = "Comedian Jonny Harris explores small towns on the ropes, performs stand-up shows for the locals who&rsquo;ve stuck it out through hard times, and proves that Canadians know how to laugh at themselves.";
newShow.airtime = "Tuesdays at 8/8:30 NT";
newShow.genre = "unscripted";
newShow.genreName = "Unscripted";
newShow.showURL = "https://www.cbc.ca/television/stillstanding";
newShow.watchURL = "https://gem.cbc.ca/season/still-standing/season-5/8ce2c191-cd01-4520-af15-1b48e8c79b39";
newShow.phase = "Gem";
tempShowList.push(newShow);

var newShow = {};
newShow.title = "Strange Empire";
newShow.url = "";
newShow.image = "/tv/content/entry/StrangeEmpire-620.jpg";
newShow.description = "Strange Empire is a drama revolving around the daily struggle of three women to survive and to build a decent community in the lawless land of southern Alberta in 1869.";
newShow.airtime = "Now Streaming on CBC Gem";
newShow.genre = "drama";
newShow.genreName = "Drama";
newShow.showURL = "";
newShow.watchURL = "https://watch.cbc.ca/season/strange-empire/season-1/577265d4-123d-4de0-86b0-967bcd203bd3";
newShow.phase = "Gem";
tempShowList.push(newShow);

var newShow = {};
newShow.title = "Street Legal";
newShow.url = "https://www.cbc.ca/streetlegal/";
newShow.image = "/tv/content/entry/sl-thumbnail.jpg";
newShow.description = "The award-winning character-driven legal drama picks up 25 years after the original series with Olivia Novak now a partner at a major Bay Street law firm. When an upstart firm of young social-activist lawyers beat her to a filing, Olivia pursues them as an acquisition target but ends up joining the boutique firm.";
newShow.airtime = "Mondays at 9pm/9:30NT";
newShow.genre = "drama";
newShow.genreName = "Drama";
newShow.showURL = "https://www.cbc.ca/streetlegal/";
newShow.watchURL = "https://gem.cbc.ca/season/street-legal/season-1/b296a026-c684-4028-9a0e-f461b09464ca";
newShow.phase = "Gem";
tempShowList.push(newShow);

var newShow = {};
newShow.title = "TallBoyz";
newShow.url = "https://www.cbc.ca/tallboyz/";
newShow.image = "/tv/content/entry/tallboyz-s1.jpg";
newShow.description = "TALLBOYZ is a new sketch comedy of epic proportions. Measuring in at a whopping 25'2&quot; (collectively), this crew has quite the perspective to share. Nothing is off-limits or out of reach.";
newShow.airtime = "Tuesdays at 9pm/9:30NT";
newShow.genre = "comedy";
newShow.genreName = "Comedy";
newShow.showURL = "https://www.cbc.ca/tallboyz/";
newShow.watchURL = "https://gem.cbc.ca/season/tall-boyz/season-1/5704c235-100c-448e-af26-b3aa6ad02f28?cmp=scripted_gem";
newShow.phase = "Gem";
tempShowList.push(newShow);

var newShow = {};
newShow.title = "The Amazing Gayl Pile";
newShow.url = "";
newShow.image = "/tv/content/entry/AmazingGaylePile-showlogo.jpg";
newShow.description = "One man's misguided quest to conquer the world of home shopping. Gayl Pile (Morgan Waters) finds himself stuck in the daily grind as a host on the Shop-At-Home-Channel in Hamilton, ON.";
newShow.airtime = "Streaming now on CBC Gem";
newShow.genre = "comedy";
newShow.genreName = "Comedy";
newShow.showURL = "";
newShow.watchURL = "https://watch.cbc.ca/season/the-amazing-gayl-pile/season-1/41549690-f308-4f5d-951b-5f97d0af54a8";
newShow.phase = "Gem";
tempShowList.push(newShow);

var newShow = {};
newShow.title = "The Book of Negroes";
newShow.url = "";
newShow.image = "/tv/content/entry/TBON.jpg";
newShow.description = "A six-part miniseries that follows the harrowing journey of Aminata Diallo and her return home after being forced into slavery as a child.";
newShow.airtime = "Now Streaming on CBC Gem";
newShow.genre = "drama";
newShow.genreName = "Drama";
newShow.showURL = "";
newShow.watchURL = "https://watch.cbc.ca/season/the-book-of-negroes/season-1/60c7dae4-ef54-4a90-bd34-1c75e2727c37";
newShow.phase = "Gem";
tempShowList.push(newShow);

var newShow = {};
newShow.title = "The Detectives";
newShow.url = "http://www.cbc.ca/thedetectives/";
newShow.image = "/tv/content/entry/TheDetectivesS2_ShowPage_Desktop_1200x522.jpg";
newShow.description = "A gripping true crime series that brings to life the real investigations of Canadian detectives by blending first-person interviews with scripted drama.";
newShow.airtime = "Thursdays at 9pm (9:30 NT)";
newShow.genre = "unscripted";
newShow.genreName = "Unscripted";
newShow.showURL = "http://www.cbc.ca/thedetectives/";
newShow.watchURL = "https://gem.cbc.ca/season/the-detectives/season-1/2e8c34bb-f55c-4017-8630-02d3ae3cb2bb";
newShow.phase = "Gem";
tempShowList.push(newShow);

var newShow = {};
newShow.title = "The Fifth Estate";
newShow.url = "https://www.cbc.ca/fifth/";
newShow.image = "/tv/content/entry/fifth_estate-large.jpg";
newShow.description = "Each week, the fifth estate brings in-depth investigations that matter to Canadians &ndash; delivering a dazzling parade of political leaders, controversial characters and ordinary people whose lives were touched by triumph or tragedy.";
newShow.airtime = "Sundays at 9pm/9:30NT";
newShow.genre = "news";
newShow.genreName = "News";
newShow.showURL = "https://www.cbc.ca/fifth/";
newShow.watchURL = "https://watch.cbc.ca/season/the-fifth-estate/season-44/0b17a3da-b5a1-4e58-8b1a-a45b24352d4f";
newShow.phase = "Broadcast";
tempShowList.push(newShow);

var newShow = {};
newShow.title = "The Great Canadian Baking Show";
newShow.url = "http://www.cbc.ca/life/greatcanadianbakingshow";
newShow.image = "/tv/content/entry/GCBS4_Thumbnail_1280x720.jpg";
newShow.description = "THE GREAT CANADIAN BAKING SHOW brings together 10 amateur bakers from across Canada to compete in a series of themed culinary challenges. Each week, the competitor who shows the most skill, creativity and finesse will be named Star Baker, while the weakest will be sent home until only three finalists are left vying for the Great Canadian Baking Show title. ";
newShow.airtime = "";
newShow.genre = "unscripted";
newShow.genreName = "Unscripted";
newShow.showURL = "http://www.cbc.ca/life/greatcanadianbakingshow";
newShow.watchURL = "https://gem.cbc.ca/season/the-great-canadian-baking-show/season-3/4c51f1f7-71de-45bf-af58-fd628f4f15f5";
newShow.phase = "Gem";
tempShowList.push(newShow);

var newShow = {};
newShow.title = "The National";
newShow.url = "https://www.cbc.ca/thenational/";
newShow.image = "/tv/content/entry/TheNational_4hosts.jpg";
newShow.description = "Canada's destination for original journalism. Welcome to The National, the flagship nightly newscast of CBC News.";
newShow.airtime = "Weekdays at 10pm/10:30NT";
newShow.genre = "news";
newShow.genreName = "News";
newShow.showURL = "https://www.cbc.ca/thenational/";
newShow.watchURL = "https://watch.cbc.ca/series/the-national/all/7edf3b97-b615-483a-842c-6c168d68c0ba";
newShow.phase = "Broadcast";
tempShowList.push(newShow);

var newShow = {};
newShow.title = "The Nature of Things";
newShow.url = "https://www.cbc.ca/natureofthings/";
newShow.image = "/tv/content/entry/TNOT-2016-2-300.jpg";
newShow.description = "The Nature of Things is one of the most successful series in the history of Canadian television. Hosted by the world-renowned geneticist and environmentalist, David Suzuki, the program is in its 58th season, a landmark by any standard.";
newShow.airtime = "Sundays at 8pm/8:30NT";
newShow.genre = "documentary";
newShow.genreName = "Documentary";
newShow.showURL = "https://www.cbc.ca/natureofthings/";
newShow.watchURL = "https://watch.cbc.ca/season/the-nature-of-things/season-58/d77bb9b3-eb40-46ec-9f29-07af7219c6a1";
newShow.phase = "Broadcast";
tempShowList.push(newShow);

var newShow = {};
newShow.title = "The Neddeaus of Duqesne Island";
newShow.url = "";
newShow.image = "/tv/content/entry/NeddeausDuqesne-generic-300.jpg";
newShow.description = "The Neddeaus of Duqesne Island is a 1970s documentary about a family living isolated on an island in Northern Canada.";
newShow.airtime = "";
newShow.genre = "comedy";
newShow.genreName = "Comedy";
newShow.showURL = "";
newShow.watchURL = "https://gem.cbc.ca/season/the-neddeaus-of-duqesne-island/season-1/8c41561e-5154-4679-8e1a-ed481c49efe1?cmp=sch-neddeaus";
newShow.phase = "Gem";
tempShowList.push(newShow);

var newShow = {};
newShow.title = "The Passionate Eye";
newShow.url = "https://www.cbc.ca/passionateeye/";
newShow.image = "/tv/content/entry/passionate-eye.jpg";
newShow.description = "The Passionate Eye is a curated playlist of thought-provoking documentaries based on news and current affairs topics. As Canada's longest-running showcase for international documentaries, it offers viewers a selection of the world's best and most newsworthy political and social issue documentaries.";
newShow.airtime = "Saturdays at 10pm and Sundays at 10pm on CBC News Network";
newShow.genre = "documentary";
newShow.genreName = "Documentary";
newShow.showURL = "https://www.cbc.ca/passionateeye/";
newShow.watchURL = "https://watch.cbc.ca/series/the-passionate-eye/all/a987b56b-fbb1-4753-b5ed-32e07bb81c19";
newShow.phase = "Broadcast";
tempShowList.push(newShow);

var newShow = {};
newShow.title = "The Romeo Section";
newShow.url = "";
newShow.image = "/tv/content/entry/RomeoSection-s2-300.jpg";
newShow.description = "From acclaimed showrunner Chris Haddock (Da Vinci's Inquest, Intelligence), The Romeo Section is an espionage drama set in Vancouver. It follows spymaster Professor Wolfgang McGee, an academic who secretly manages a roster of espionage assets. ";
newShow.airtime = "Now Streaming on CBC Gem";
newShow.genre = "drama";
newShow.genreName = "Drama";
newShow.showURL = "";
newShow.watchURL = "https://watch.cbc.ca/season/the-romeo-section/season-1/828ea332-b1f2-4a0f-bb9b-12e7c4cd4797";
newShow.phase = "Gem";
tempShowList.push(newShow);

var newShow = {};
newShow.title = "The Stats of Life";
newShow.url = "https://www.cbc.ca/thestatsoflife/";
newShow.image = "/tv/content/entry/TheStatsOfLife-keyart-1600x900.jpg";
newShow.description = "Through census data, surveys and studies, we now know more about ourselves than ever before. But what&rsquo;s the story behind the stats? In our diverse modern world, is there still such a thing as 'average?'";
newShow.airtime = "Streaming now on CBC Gem";
newShow.genre = "unscripted";
newShow.genreName = "Unscripted";
newShow.showURL = "https://www.cbc.ca/thestatsoflife/";
newShow.watchURL = "https://watch.cbc.ca/season/the-stats-of-life/season-2/7cd0bb91-0bbc-47e0-8903-7c2373577e9b";
newShow.phase = "Gem";
tempShowList.push(newShow);

var newShow = {};
newShow.title = "This Life";
newShow.url = "https://www.cbc.ca/thislife/";
newShow.image = "/tv/content/entry/ThisLife_s2.jpg";
newShow.description = "We all live our lives knowing we're going to die. For one woman, this truth hits hard - and the effect transforms not only her own existence, but also the lives of everyone who loves her.";
newShow.airtime = "Now Streaming on CBC Gem";
newShow.genre = "drama";
newShow.genreName = "Drama";
newShow.showURL = "https://www.cbc.ca/thislife/";
newShow.watchURL = "https://watch.cbc.ca/season/this-life/season-1/c6ea52d9-9e96-4bac-b829-f520f5274057";
newShow.phase = "Gem";
tempShowList.push(newShow);

var newShow = {};
newShow.title = "Trickster";
newShow.url = "https://www.cbc.ca/trickster/";
newShow.image = "/tv/content/entry/website_16x9.png";
newShow.description = "Jared is only sixteen but feels like he is the one who must stabilize his family's life. He puzzles over why his maternal grandmother has never liked him, why she says he's the son of a trickster, that he isn't human.";
newShow.airtime = "Wednesdays at 9/9:930nt";
newShow.genre = "drama";
newShow.genreName = "Drama";
newShow.showURL = "https://www.cbc.ca/trickster/";
newShow.watchURL = "https://gem.cbc.ca/season/trickster/season-1/dcdc337f-fe75-4001-8c4d-93ededf90d6c?cmp=sch-trickster";
newShow.phase = "Premiering";
tempShowList.push(newShow);

var newShow = {};
newShow.title = "Under New Management";
newShow.url = "https://www.cbc.ca/undernewmanagement/";
newShow.image = "/tv/content/entry/unm-s1-unofficial-keyart.jpg";
newShow.description = "Renowned venture capitalist Arlene Dickinson coaches budding entrepreneurs on a life-changing journey of assessing three businesses for sale. Using her deep business experience and uncanny insight into personality and relationships, she helps the business buyers decide whether they are ready to successfully put a small business &quot;Under New Management.&quot;";
newShow.airtime = "Fridays at 8:30PM/9NT";
newShow.genre = "unscripted";
newShow.genreName = "Unscripted";
newShow.showURL = "https://www.cbc.ca/undernewmanagement/";
newShow.watchURL = "";
newShow.phase = "Broadcast";
tempShowList.push(newShow);

var newShow = {};
newShow.title = "Unspeakable";
newShow.url = "https://www.cbc.ca/unspeakable/";
newShow.image = "/tv/content/entry/Unspeakable_temp.jpg";
newShow.description = "Unspeakable is based on emotionally charged personal accounts as well as Andre Picard's Gift of Death: Confronting Canada's Tainted Blood Tragedy, Vic Parson's Bad Blood: The Tragedy of the Canadian Tainted Blood Scandal, and The Royal Commission of Inquiry into the Canadian Blood Tragedy, led by Justice Horace Krever.";
newShow.airtime = "Wednesdays at 9pm/9:30NT";
newShow.genre = "drama";
newShow.genreName = "Drama";
newShow.showURL = "https://www.cbc.ca/unspeakable/";
newShow.watchURL = "https://watch.cbc.ca/season/unspeakable/season-1/4f956fb9-2d89-450f-b999-8f8498ea54f2";
newShow.phase = "Gem";
tempShowList.push(newShow);

var newShow = {};
newShow.title = "What&#8217;re You At? With Tom Power";
newShow.url = " https://www.cbc.ca/television/whatreyouat";
newShow.image = "/tv/content/entry/WhatreYouAt_v4_SiteListing_616X346_rev1.png";
newShow.description = "What&rsquo;re You At? with Tom Power is a one-hour weekly TV program showcasing community and culture.";
newShow.airtime = "Sunday nights at 8 (8:30NT)";
newShow.genre = "unscripted";
newShow.genreName = "Unscripted";
newShow.showURL = " https://www.cbc.ca/television/whatreyouat";
newShow.watchURL = "https://gem.cbc.ca/season/whatre-you-at-with-tom-power/season-1/4c88aef3-c9c8-4e54-bc61-62683bb51a86";
newShow.phase = "Broadcast";
tempShowList.push(newShow);

var newShow = {};
newShow.title = "When Calls the Heart";
newShow.url = "";
newShow.image = "/tv/content/entry/WCTH2018.jpg";
newShow.description = "Based on the bestselling novel by Janette Oke, the series follows the story of young school teacher Elizabeth Thatcher (Erin Krakow), who has just arrived in Coal Valley, a 19th century coal mining town in the Western Frontier, that is worlds apart from the wealthy, high-society life where she grew up. ";
newShow.airtime = "Now Streaming on CBC Gem";
newShow.genre = "drama";
newShow.genreName = "Drama";
newShow.showURL = "";
newShow.watchURL = "https://watch.cbc.ca/season/when-calls-the-heart/season-4/123882c2-2dbb-46b2-a9d3-48c73ccfb9f9";
newShow.phase = "Gem";
tempShowList.push(newShow);

var newShow = {};
newShow.title = "Workin&#8217; Moms";
newShow.url = "https://www.cbc.ca/workinmoms/";
newShow.image = "/tv/content/entry/WorkinMoms-EventsPage-620x349.jpg";
newShow.description = "Workin&rsquo; Moms follows the lives of four women as they juggle love, careers, and parenthood. Whether it is an identity crisis, a huge job opportunity, postpartum depression, or an unplanned pregnancy &ndash; they face both the good and bad with grace and humour. ";
newShow.airtime = "Streaming now on CBC Gem";
newShow.genre = "comedy";
newShow.genreName = "Comedy";
newShow.showURL = "https://www.cbc.ca/workinmoms/";
newShow.watchURL = "https://watch.cbc.ca/season/workin-moms/season-3/8faf2629-6f9f-455b-8b62-791e70926e64?cmp=scripted_gem";
newShow.phase = "Gem";
tempShowList.push(newShow);

var newShow = {};
newShow.title = "X Company";
newShow.url = "http://www.cbc.ca/xcompany";
newShow.image = "/tv/content/entry/XCompany-season3-300.jpg";
newShow.description = "Inspired by the true stories of an ultra-secret training facility on the shores of Lake Ontario.";
newShow.airtime = "Now Streaming on CBC Gem";
newShow.genre = "drama";
newShow.genreName = "Drama";
newShow.showURL = "http://www.cbc.ca/xcompany";
newShow.watchURL = "https://watch.cbc.ca/season/x-company/season-1/c3a1cc5b-7f12-4994-b308-21424983dea4";
newShow.phase = "Gem";
tempShowList.push(newShow);

var newShow = {};
newShow.title = "You Can&#8217;t Ask That";
newShow.url = "";
newShow.image = "/tv/content/entry/CBCGem_CBC_Poster_YCAT_1240x700.jpg";
newShow.description = "Each episode asks a group of	people with the same disability the	awkward,	inappropriate or uncomfortable questions you are too afraid to ask. It&rsquo;s an audacious, touching and funny series that is guaranteed to challenge everyone&rsquo;s assumptions about life with a disability.";
newShow.airtime = "";
newShow.genre = "unscripted";
newShow.genreName = "Unscripted";
newShow.showURL = "";
newShow.watchURL = "https://gem.cbc.ca/season/you-cant-ask-that/season-2/032f99e7-d692-42b1-9abf-4f546216d5a0";
newShow.phase = "Gem";
tempShowList.push(newShow);


for (var snum = 0; snum < tempShowList.length; snum++) {
  var newShow = tempShowList[snum];

  var initialLetter = newShow.title[0].toLowerCase();
  if (initialLetter >= '0' && initialLetter <= '9') {CBCShows.alpha.a_to_e.content.push(newShow);} else if (initialLetter <= 'z' && initialLetter >= 'v') {CBCShows.alpha.v_to_z.content.push(newShow);} else if (initialLetter >= 'q') {CBCShows.alpha.q_to_u.content.push(newShow);} else if (initialLetter >= 'k') {CBCShows.alpha.k_to_p.content.push(newShow);} else if (initialLetter >= 'f') {CBCShows.alpha.f_to_j.content.push(newShow);} else if (initialLetter >= 'a') {CBCShows.alpha.a_to_e.content.push(newShow);} else {
    console.log("Couldn't sort ["+initialLetter+"] - "+newShow.title);
  }
  console.log(initialLetter + " " + newShow.title + " : " + newShow.genre);
  if (newShow.genre != "") {
    var genreArray = CBCShows.genre[newShow.genre];
    genreArray.content.push(newShow);
  } else {CBCShows.genre.other.content.push(newShow);}
  var currentPhase = newShow.phase.toLowerCase();
  switch(currentPhase) {
    case "premiering" :
      CBCShows.phase.preseason.content.push(newShow);
      break;
    case "pre-season" :
      CBCShows.phase.preseason.content.push(newShow);
      break;
    case "broadcast" :
      CBCShows.phase.broadcast.content.push(newShow);
      break;
    case "gem" : 
      CBCShows.phase.gem.content.push(newShow);
      break;
    default : 
      CBCShows.phase.gem.content.push(newShow);
      break;
  }
}

 function ScrollTo(name) {ScrollToResolver(document.getElementById(name));}

function ScrollToResolver(elem) {
  var jump = parseInt(elem.getBoundingClientRect().top * .2);
  document.body.scrollTop += jump;
  document.documentElement.scrollTop += jump;
  if (!elem.lastjump || elem.lastjump > Math.abs(jump)) {
    elem.lastjump = Math.abs(jump);
    setTimeout(function() {ScrollToResolver(elem);}, "26");
  } else {
    elem.lastjump = null;
  }
}

function createExpandedCard(category) {
  var newListItem = document.createElement('li');
  newListItem.className = 'showcard_expanded hidden';
  $(newListItem).attr('data-expanded',"false");
  $(newListItem).attr('data-category',category);

  // SET PROMO IMAGE SECTION
  var infoHolder = document.createElement('div');
  infoHolder.className = 'showcard_holder';

  var closeElement = document.createElement('div');
  closeElement.className = 'showcard_close';
  
  var closeButton = document.createElement('a');
  closeButton.className = 'showcard_close_button';
  closeButton.innerHTML = '<i class="far fa-times-circle"></i>';
  $(closeButton).click(function() {
    console.log("clicked on close button");
    $('li.showcard_expanded').addClass('hidden');
  });
  closeElement.appendChild(closeButton); 
  
  newListItem.appendChild(infoHolder);
  newListItem.appendChild(closeElement);

  return newListItem;
}
 
function setExpandedCard(showitem,category) {
  var expandedItem = $('li.showcard_expanded[data-category="'+category+'"]');
  
  var showHolder = $(expandedItem).find('.showcard_holder');
  $(showHolder).empty();
  $(expandedItem).removeClass('hidden');

  console.log('setting exapanded card data for '+$(showitem).find('h3').text());
  $(showitem).find('.promo_image').clone().appendTo($(showHolder));
  $(showitem).find('.meta').clone().appendTo($(showHolder));
}

function createShowCard(showitem,category) {
  var newListItem = document.createElement('li');
  newListItem.className = 'showcard';
  $(newListItem).attr('data-expanded',"false");
  $(newListItem).attr('data-category',category);

  // SET META SECTION
  var newListItem_meta = document.createElement('div');
  newListItem_meta.className = 'meta';
  var newListItem_meta_title = document.createElement('h3');
  newListItem_meta_title.className = "showcard_title";
  newListItem_meta_title.innerHTML = showitem.title;
  var newListItem_meta_airtime = document.createElement('span');
  newListItem_meta_airtime.className = 'showcard_airtime';
  newListItem_meta_airtime.innerHTML = showitem.airtime;
  var newListItem_meta_description = document.createElement('span');
  newListItem_meta_description.className = 'showcard_description';
  newListItem_meta_description.innerHTML = showitem.description;
  
  var newListItem_meta_links = document.createElement('ul');
  newListItem_meta_links.className = 'showcard_links';
  if (showitem.showURL!="") {
    var newLinkItem = document.createElement('li');
    var newLink = document.createElement('a');
    newLink.href = showitem.showURL;
    newLink.className = 'showcard_link website';
    newLink.innerHTML = "Visit the show website";
    newLinkItem.appendChild(newLink);
    newListItem_meta_links.appendChild(newLinkItem);
  }
  if (showitem.watchURL!="") {
    var newLinkItem = document.createElement('li');
    var newLink = document.createElement('a');
    newLink.href = showitem.watchURL;
    newLink.target = "_blank";
    newLink.className = 'showcard_link gem';
    newLink.innerHTML = "Start streaming on CBC Gem";
    newLinkItem.appendChild(newLink);
    newListItem_meta_links.appendChild(newLinkItem);
  }
  newListItem_meta.appendChild(newListItem_meta_title);
  newListItem_meta.appendChild(newListItem_meta_airtime);
  newListItem_meta.appendChild(newListItem_meta_description);
  newListItem_meta.appendChild(newListItem_meta_links);

  // SET PROMO IMAGE SECTION
  var newListItem_promoImage = document.createElement('figure');
  newListItem_promoImage.className = 'promo_image';

  var newListItem_promoImage_image = document.createElement('img');
  newListItem_promoImage_image.className = 'showcard_image';
  newListItem_promoImage_image.src = showitem.image;
  newListItem_promoImage_image.alt = showitem.title;
  
  var newListItem_promoImage_figcaption = document.createElement('figcaption');
  newListItem_promoImage_figcaption.className = 'showcard_qualifier';
  var showPhase = showitem.phase.toUpperCase();
  switch(showPhase) {
    case "PREMIERING" :
      newListItem_promoImage_figcaption.innerHTML = "NEW SERIES";
      newListItem_promoImage.appendChild(newListItem_promoImage_figcaption);
      break;
    case "PRE-SEASON" :
      newListItem_promoImage_figcaption.innerHTML = "RETURNING";
      newListItem_promoImage.appendChild(newListItem_promoImage_figcaption);
      break;
    case "BROADCAST" :
      break;
    default :
      $(newListItem_meta_airtime).addClass('hidden');
      break;
  }
  newListItem_promoImage.appendChild(newListItem_promoImage_image);
  
  newListItem.appendChild(newListItem_promoImage);
  newListItem.appendChild(newListItem_meta);

  return newListItem;
}

function clickableCards() {
  $('li.showcard').click(function() {expandElement(this);});
}

function expandElement(elem) {
  $('li.showcard_expanded').addClass('hidden');
  console.log('expandElement: expanding '+$(elem).find('h3').text());
  var currentCategory = $(elem).attr('data-category');
  setExpandedCard(elem,currentCategory);

  ScrollTo(currentCategory); 
}

function addHeader(title,category) {
  var newHeader = document.createElement('h2');
  newHeader.className = 'showgroup';
  newHeader.innerHTML = title;
  newHeader.id = category;
  $(newHeader).attr('data-category',category)
  showsHolder.appendChild(newHeader);
}

function sortBy(sortArray) {
  showsHolder.innerHTML = "";
  for (var key in sortArray) {
    console.log(key);
    var currentKey = sortArray[key];
    console.log(currentKey.name + " [" + currentKey.content.length + "]");

    var newList = document.createElement('ul');
    newList.className = 'shows_list';
    newList.appendChild(createExpandedCard(key));

    for (var i=0; i< currentKey.content.length; i++) {
      var currentItem = currentKey.content[i];
      var newListItem = createShowCard(currentItem,key);

      newList.appendChild(newListItem);
    }
    addHeader(currentKey.name,key);
    showsHolder.appendChild(newList);
  }
  clickableCards();
}
 
$('.showsortmethod').click(function() {
  $('.showsortmethod').removeClass('selected');
  $(this).addClass('selected');
  var sortmethod = $(this).attr('data-sort');
  switch(sortmethod) {
    case "a-z" :
      sortBy(CBCShows.alpha);
      break;
    case "genre" :
      sortBy(CBCShows.genre);
      break;
    case "phase" :
      sortBy(CBCShows.phase);
      break;
    deafult :
      sortBy(CBCShows.alpha);
      break;
  }
});

$('.showsortmethod[data-sort="a-z"]').addClass('selected');
sortBy(CBCShows.alpha);
*/
