diff --git a/sites/foxtel.com.au/__data__/content.html b/sites/foxtel.com.au/__data__/content.html index 88e604efd..a093c292c 100644 --- a/sites/foxtel.com.au/__data__/content.html +++ b/sites/foxtel.com.au/__data__/content.html @@ -1,4874 +1,4874 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - TV Guide - - - - - - - - - - - - - - - - - - - - -
-
- - - - - - - - -
-
-
- - - - - -
- -
-
-
-
-
-
-
-
-
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
-
- -
-
- -
- - -
- - - - - - - - - - - - - -
-
-
-
-
-
-
-
-
-
-
-
- - - - - - - - - - - - - - - - -
- -
-
-
-
-
- -

TV GUIDE

-
-
- - - - -
- - -
-
- - - -
-
-
-
- -
-
-
- - - - - - - - -
- -
- -
-
-
- - FULL GUIDE - -
- -
- -
-
-
- - - - -
- - 11:40pm Monday - -
-
- -
-
- The Equalizer - -
- - - S1 - , - - - - Ep2 - , - - - Glory - - (M) - -
-
-
-
-
-
- - The Equalizer Image - -
-
-
-
-
- - - -
- - 12:30am - -
-
- -
-
- Emergence - -
- - - S1 - , - - - - Ep13 - , - - - Killshot (2) - - (M) - -
-
-
-
-
-
- - Emergence Image - -
-
-
-
-
- - - -
- - 1:30am - -
-
- -
-
- TV Shop - Home Shopping - -
- - Perfect Fit Bed - - (G) - -
-
-
-
-
-
- - TV Shop - Home Shopping Image - -
-
-
-
-
- - - -
- - 2:00am - -
-
- -
-
- TV Shop - Home Shopping - -
- - Total Gym FIT - - (G) - -
-
-
-
-
-
- - TV Shop - Home Shopping Image - -
-
-
-
-
- - - -
- - 2:30am - -
-
- -
-
- Global Shop - -
- - Copper Chef Titan Pan - - (G) - -
-
-
-
-
-
- - Global Shop Image - -
-
-
-
-
- - - -
- - 3:00am - -
-
- -
-
- TV Shop - Home Shopping - -
- - TEBO Massage Chair - - (G) - -
-
-
-
-
-
- - TV Shop - Home Shopping Image - -
-
-
-
-
- - - -
- - 3:30am - -
-
- -
-
- TV Shop - Home Shopping - -
- - Transforma Ladders - - (G) - -
-
-
-
-
-
- - TV Shop - Home Shopping Image - -
-
-
-
-
- - - -
- - 4:00am - -
-
- -
-
- Believer's Voice of Victory - -
- - God's WORD Is Filled With Power - - (PG) - -
-
-
-
-
-
- - Believer's Voice of Victory Image - -
-
-
-
-
- - - -
- - 4:30am - -
-
- -
-
- A Current Affair - -
- - - -
-
-
-
-
-
- - A Current Affair Image - -
-
-
-
-
- - - -
- - 5:00am - -
-
- -
-
- Nine News Early Edition - -
- - - -
-
-
-
-
-
- - Nine News Early Edition Image - -
-
-
-
-
- - - -
- - 5:30am - -
-
- -
-
- Today - -
- - - S2022 - , - - - - Ep222 - - - - - -
-
-
-
-
-
- - Today Image - -
-
-
-
-
- - - -
- - 9:00am - -
-
- -
-
- Today Extra - -
- - - - (PG) - -
-
-
-
-
-
- - Today Extra Image - -
-
-
-
-
- - - -
- - 11:30am - -
-
- -
-
- Nine Morning News - -
- - - -
-
-
-
-
-
- - Nine Morning News Image - -
-
-
-
-
- - - -
- - 12:00pm - -
-
- -
-
- My Mum, Your Dad - -
- - - S1 - , - - - - Ep1 - , - - - We're Like The FBI Right Now - - (M) - -
-
-
-
-
-
- - My Mum, Your Dad Image - -
-
-
-
-
- - - -
- - 1:50pm - -
-
- -
-
- Talking Honey - -
- - - S2022 - , - - - - Ep3 - , - - - Cultural Tokenism or Awareness - - (PG) - -
-
-
-
-
-
- - Talking Honey Image - -
-
-
-
-
- - - -
- - 2:00pm - -
-
- -
-
- Pointless - -
- - - S27 - , - - - - Ep35 - - - - - - (PG) - -
-
-
-
-
-
- - Pointless Image - -
-
-
-
-
- - - -
- - 3:00pm - -
-
- -
-
- Tipping Point - -
- - - S11 - , - - - - Ep154 - - - - - - (PG) - -
-
-
-
-
-
- - Tipping Point Image - -
-
-
-
-
- - - -
- - 4:00pm - -
-
- -
-
- Nine Afternoon News - -
- - - -
-
-
-
-
-
- - Nine Afternoon News Image - -
-
-
-
-
- - - -
- - 5:00pm - -
-
- -
-
- Millionaire Hot Seat - -
- - - S2022 - , - - - - Ep2466 - - - - - - (G) - -
-
-
-
-
-
- - Millionaire Hot Seat Image - -
-
-
-
-
- - - -
- - 6:00pm - -
-
- -
-
- Nine News - -
- - - -
-
-
-
-
-
- - Nine News Image - -
-
-
-
-
- - - -
- - 7:00pm - -
-
- -
-
- A Current Affair - -
- - - -
-
-
-
-
-
- - A Current Affair Image - -
-
-
-
-
- - - -
- - 7:30pm - -
-
- -
-
- My Mum, Your Dad - -
- - - S1 - , - - - - Ep2 - , - - - This Might Get a Little Weird - - (M) - -
-
-
-
-
-
- - My Mum, Your Dad Image - -
-
-
-
-
- - - -
- - 9:10pm - -
-
- -
-
- Travel Guides - -
- - - S4 - , - - - - Ep2 - , - - - Red Centre - - (PG) - -
-
-
-
-
-
- - Travel Guides Image - -
-
-
-
-
- - - -
- - 10:10pm - -
-
- -
-
- Botched - -
- - - S6 - , - - - - Ep16 - , - - - Cross-Eyed Nips and Cartel Hips - - (M) - -
-
-
-
-
-
- - Botched Image - -
-
-
-
-
- - - -
- - 11:10pm - -
-
- -
-
- Nine News Late - -
- - - -
-
-
-
-
-
- -
-
-
-
-
- - - -
- - 11:40pm - -
-
- -
-
- Skin - -
- - - S1 - , - - - - Ep5 - - - - - - (M) - -
-
-
-
-
-
- - Skin Image - -
-
-
-
-
- - -
-
-
-
- - - - - - - - - - - - -
- -
-
-
-
-
-
-
- - - -
- - - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + TV Guide + + + + + + + + + + + + + + + + + + + + +
+
+ + + + + + + + +
+
+
+ + + + + +
+ +
+
+
+
+
+
+
+
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+
+ +
+
+ +
+ + +
+ + + + + + + + + + + + + +
+
+
+
+
+
+
+
+
+
+
+
+ + + + + + + + + + + + + + + + +
+ +
+
+
+
+
+ +

TV GUIDE

+
+
+ + + + +
+ + +
+
+ + + +
+
+
+
+ +
+
+
+ + + + + + + + +
+ +
+ +
+
+
+ + FULL GUIDE + +
+ +
+ +
+
+
+ + + + +
+ + 11:40pm Monday + +
+
+ +
+
+ The Equalizer + +
+ + + S1 + , + + + + Ep2 + , + + + Glory + + (M) + +
+
+
+
+
+
+ + The Equalizer Image + +
+
+
+
+
+ + + +
+ + 12:30am + +
+
+ +
+
+ Emergence + +
+ + + S1 + , + + + + Ep13 + , + + + Killshot (2) + + (M) + +
+
+
+
+
+
+ + Emergence Image + +
+
+
+
+
+ + + +
+ + 1:30am + +
+
+ +
+
+ TV Shop - Home Shopping + +
+ + Perfect Fit Bed + + (G) + +
+
+
+
+
+
+ + TV Shop - Home Shopping Image + +
+
+
+
+
+ + + +
+ + 2:00am + +
+
+ +
+
+ TV Shop - Home Shopping + +
+ + Total Gym FIT + + (G) + +
+
+
+
+
+
+ + TV Shop - Home Shopping Image + +
+
+
+
+
+ + + +
+ + 2:30am + +
+
+ +
+
+ Global Shop + +
+ + Copper Chef Titan Pan + + (G) + +
+
+
+
+
+
+ + Global Shop Image + +
+
+
+
+
+ + + +
+ + 3:00am + +
+
+ +
+
+ TV Shop - Home Shopping + +
+ + TEBO Massage Chair + + (G) + +
+
+
+
+
+
+ + TV Shop - Home Shopping Image + +
+
+
+
+
+ + + +
+ + 3:30am + +
+
+ +
+
+ TV Shop - Home Shopping + +
+ + Transforma Ladders + + (G) + +
+
+
+
+
+
+ + TV Shop - Home Shopping Image + +
+
+
+
+
+ + + +
+ + 4:00am + +
+
+ +
+
+ Believer's Voice of Victory + +
+ + God's WORD Is Filled With Power + + (PG) + +
+
+
+
+
+
+ + Believer's Voice of Victory Image + +
+
+
+
+
+ + + +
+ + 4:30am + +
+
+ +
+
+ A Current Affair + +
+ + + +
+
+
+
+
+
+ + A Current Affair Image + +
+
+
+
+
+ + + +
+ + 5:00am + +
+
+ +
+
+ Nine News Early Edition + +
+ + + +
+
+
+
+
+
+ + Nine News Early Edition Image + +
+
+
+
+
+ + + +
+ + 5:30am + +
+
+ +
+
+ Today + +
+ + + S2022 + , + + + + Ep222 + + + + + +
+
+
+
+
+
+ + Today Image + +
+
+
+
+
+ + + +
+ + 9:00am + +
+
+ +
+
+ Today Extra + +
+ + + + (PG) + +
+
+
+
+
+
+ + Today Extra Image + +
+
+
+
+
+ + + +
+ + 11:30am + +
+
+ +
+
+ Nine Morning News + +
+ + + +
+
+
+
+
+
+ + Nine Morning News Image + +
+
+
+
+
+ + + +
+ + 12:00pm + +
+
+ +
+
+ My Mum, Your Dad + +
+ + + S1 + , + + + + Ep1 + , + + + We're Like The FBI Right Now + + (M) + +
+
+
+
+
+
+ + My Mum, Your Dad Image + +
+
+
+
+
+ + + +
+ + 1:50pm + +
+
+ +
+
+ Talking Honey + +
+ + + S2022 + , + + + + Ep3 + , + + + Cultural Tokenism or Awareness + + (PG) + +
+
+
+
+
+
+ + Talking Honey Image + +
+
+
+
+
+ + + +
+ + 2:00pm + +
+
+ +
+
+ Pointless + +
+ + + S27 + , + + + + Ep35 + + + + + + (PG) + +
+
+
+
+
+
+ + Pointless Image + +
+
+
+
+
+ + + +
+ + 3:00pm + +
+
+ +
+
+ Tipping Point + +
+ + + S11 + , + + + + Ep154 + + + + + + (PG) + +
+
+
+
+
+
+ + Tipping Point Image + +
+
+
+
+
+ + + +
+ + 4:00pm + +
+
+ +
+
+ Nine Afternoon News + +
+ + + +
+
+
+
+
+
+ + Nine Afternoon News Image + +
+
+
+
+
+ + + +
+ + 5:00pm + +
+
+ +
+
+ Millionaire Hot Seat + +
+ + + S2022 + , + + + + Ep2466 + + + + + + (G) + +
+
+
+
+
+
+ + Millionaire Hot Seat Image + +
+
+
+
+
+ + + +
+ + 6:00pm + +
+
+ +
+
+ Nine News + +
+ + + +
+
+
+
+
+
+ + Nine News Image + +
+
+
+
+
+ + + +
+ + 7:00pm + +
+
+ +
+
+ A Current Affair + +
+ + + +
+
+
+
+
+
+ + A Current Affair Image + +
+
+
+
+
+ + + +
+ + 7:30pm + +
+
+ +
+
+ My Mum, Your Dad + +
+ + + S1 + , + + + + Ep2 + , + + + This Might Get a Little Weird + + (M) + +
+
+
+
+
+
+ + My Mum, Your Dad Image + +
+
+
+
+
+ + + +
+ + 9:10pm + +
+
+ +
+
+ Travel Guides + +
+ + + S4 + , + + + + Ep2 + , + + + Red Centre + + (PG) + +
+
+
+
+
+
+ + Travel Guides Image + +
+
+
+
+
+ + + +
+ + 10:10pm + +
+
+ +
+
+ Botched + +
+ + + S6 + , + + + + Ep16 + , + + + Cross-Eyed Nips and Cartel Hips + + (M) + +
+
+
+
+
+
+ + Botched Image + +
+
+
+
+
+ + + +
+ + 11:10pm + +
+
+ +
+
+ Nine News Late + +
+ + + +
+
+
+
+
+
+ +
+
+
+
+
+ + + +
+ + 11:40pm + +
+
+ +
+
+ Skin + +
+ + + S1 + , + + + + Ep5 + + + + + + (M) + +
+
+
+
+
+
+ + Skin Image + +
+
+
+
+
+ + +
+
+
+
+ + + + + + + + + + + + +
+ +
+
+
+
+
+
+
+ + + +
+ + + diff --git a/sites/foxtel.com.au/__data__/program_1.json b/sites/foxtel.com.au/__data__/program_1.json new file mode 100644 index 000000000..d6a87495c --- /dev/null +++ b/sites/foxtel.com.au/__data__/program_1.json @@ -0,0 +1 @@ +{"event":{"eventId":174868153,"programTitle":"Hawaii Five-0","channelId":548,"scheduledDate":1776488400000,"duration":60,"episodeTitle":"Hana Komo Pae","audio":"DIGITAL","parentalRating":"M","seriesLink":"27163","widescreenInd":false,"closedCaptionInd":true,"subtitledInd":false,"premiereInd":false,"hdInd":true,"actors":["Alex O'Loughlin","Scott Caan","Grace Park","Masi Oka","Chi McBride"],"mergedSynopsis":"(v) S7, Ep8. Hana Komo Pae: While Danny chaperones Grace's winter formal, terrorists seize the venue and hold everyone hostage in order to kidnap a diplomat's son.","seriesNumber":"7","episodeNumber":"8","genreCode":"02","subGenreCode":"5","webLinks":[{"title":"IMDB","url":"http://www.imdb.com/title/tt1600194/"}],"yearOfProduction":"2016","consumerAdvice":"v","countryOfOrigin":"United States","language":"English","displaySepNum":true,"versionNum":2588617,"shortSynopsis":"While Danny chaperones Grace's winter formal, terrorists seize the venue and hold everyone hostage in order to kidnap a diplomat's son.","imageUrl":"https://images1.resources.foxtel.com.au/store2/mount1/16/3/61x61.jpg?maxheight=213&limit=536db4ca3ea686d56daed0b545cc1b4faaeec82f","genre":"Entertainment","subGenre":"Drama","placeholder":false,"isMovie":false,"adultsOnly":false},"alternateEpisodes":[{"eventId":174868152,"programTitle":"Hawaii Five-0","channelId":548,"scheduledDate":1776484800000,"duration":60,"episodeTitle":"Ka Makuahine A Me Ke Keikikane","audio":"DIGITAL","parentalRating":"M","seriesLink":"27163","widescreenInd":false,"closedCaptionInd":true,"subtitledInd":false,"premiereInd":false,"hdInd":true,"actors":["Alex O'Loughlin","Scott Caan","Grace Park","Masi Oka","Chi McBride"],"mergedSynopsis":"(v) S7, Ep7. Ka Makuahine A Me Ke Keikikane: McGarrett's long-lost love, Catherine, returns to Hawaii unexpectedly to tell Steve that Doris is in trouble and needs his help to be rescued.","seriesNumber":"7","episodeNumber":"7","genreCode":"02","subGenreCode":"5","webLinks":[{"title":"IMDB","url":"http://www.imdb.com/title/tt1600194/"}],"yearOfProduction":"2016","consumerAdvice":"v","countryOfOrigin":"United States","language":"English","displaySepNum":true,"versionNum":2588617,"shortSynopsis":"McGarrett's long-lost love, Catherine, returns to Hawaii unexpectedly to tell Steve that Doris is in trouble and needs his help to be rescued.","imageUrl":"https://images1.resources.foxtel.com.au/store2/mount1/16/3/8w048.jpg?maxheight=213&limit=b456324f41f17d5a7726f94ef2b1ae1e8102a7dd","genre":"Entertainment","subGenre":"Drama","placeholder":false,"isMovie":false,"adultsOnly":false},{"eventId":174869805,"programTitle":"Hawaii Five-0","channelId":714,"scheduledDate":1776492000000,"duration":60,"episodeTitle":"Ka Makuahine A Me Ke Keikikane","audio":"DIGITAL","parentalRating":"M","seriesLink":"26816","widescreenInd":true,"closedCaptionInd":true,"subtitledInd":false,"premiereInd":false,"hdInd":false,"actors":["Alex O'Loughlin","Scott Caan","Grace Park","Masi Oka","Chi McBride"],"mergedSynopsis":"(v) S7, Ep7. Ka Makuahine A Me Ke Keikikane: McGarrett's long-lost love, Catherine, returns to Hawaii unexpectedly to tell Steve that Doris is in trouble and needs his help to be rescued.","seriesNumber":"7","episodeNumber":"7","genreCode":"02","subGenreCode":"5","webLinks":[{"title":"IMDB","url":"http://www.imdb.com/title/tt1600194/"}],"yearOfProduction":"2016","consumerAdvice":"v","countryOfOrigin":"United States","language":"English","displaySepNum":true,"versionNum":2588617,"shortSynopsis":"McGarrett's long-lost love, Catherine, returns to Hawaii unexpectedly to tell Steve that Doris is in trouble and needs his help to be rescued.","imageUrl":"https://images1.resources.foxtel.com.au/store2/mount1/16/3/8w048.jpg?maxheight=213&limit=b456324f41f17d5a7726f94ef2b1ae1e8102a7dd","genre":"Entertainment","subGenre":"Drama","placeholder":false,"isMovie":false,"adultsOnly":false},{"eventId":174868167,"programTitle":"Hawaii Five-0","channelId":548,"scheduledDate":1776542700000,"duration":55,"episodeTitle":"Elua La MA Nowemapa","audio":"DIGITAL","parentalRating":"MA","seriesLink":"61248","widescreenInd":false,"closedCaptionInd":true,"subtitledInd":false,"premiereInd":false,"hdInd":true,"actors":["Alex O'Loughlin","Scott Caan","Grace Park","Masi Oka","Chi McBride"],"mergedSynopsis":"(v) S7, Ep9. Elua La MA Nowemapa: A conspiracy theorist with compelling information that JFK's own cabinet planned his assassination is murdered. Jerry tells the story of the Honolulu Conference on November 20, 1963.","seriesNumber":"7","episodeNumber":"9","genreCode":"02","subGenreCode":"5","webLinks":[{"title":"IMDB","url":"http://www.imdb.com/title/tt1600194/"}],"yearOfProduction":"2016","consumerAdvice":"v","countryOfOrigin":"United States","language":"English","displaySepNum":true,"versionNum":2588617,"shortSynopsis":"A conspiracy theorist with compelling information that JFK's own cabinet planned his assassination is murdered. Jerry tells the story of the Honolulu Conference on November 20, 1963.","imageUrl":"https://images1.resources.foxtel.com.au/store2/mount1/16/3/6ww1q.jpg?maxheight=213&limit=dad1d2722cbb5b3ca8fb073fd3ed81387072fa7c","genre":"Entertainment","subGenre":"Drama","placeholder":false,"isMovie":false,"adultsOnly":false},{"eventId":174868168,"programTitle":"Hawaii Five-0","channelId":548,"scheduledDate":1776546000000,"duration":55,"episodeTitle":"Ka Luhi","audio":"DIGITAL","parentalRating":"M","seriesLink":"61248","widescreenInd":false,"closedCaptionInd":true,"subtitledInd":false,"premiereInd":false,"hdInd":true,"actors":["Alex O'Loughlin","Scott Caan","Grace Park","Masi Oka","Chi McBride"],"mergedSynopsis":"(a) S7, Ep10. Ka Luhi: Five-0 investigates the 10-year-old cold case of a missing teen when a boy suffering from PTSD undergoes hypnosis and realises he may have witnessed her murder.","extendedSynopsis":"Five-0 investigates the 10-year-old cold case of a missing teen when a boy suffering from PTSD undergoes hypnosis and realizes he may have witnessed her murder. Also, Danny's sister, Bridget (guest star Missy Peregrym), visits Oahu for a business conference, and he suspects that she may be getting too close to a co-worker.","seriesNumber":"7","episodeNumber":"10","genreCode":"02","subGenreCode":"5","webLinks":[{"title":"IMDB","url":"http://www.imdb.com/title/tt1600194/"}],"yearOfProduction":"2016","consumerAdvice":"a","countryOfOrigin":"United States","language":"English","displaySepNum":true,"versionNum":2588617,"shortSynopsis":"Five-0 investigates the 10-year-old cold case of a missing teen when a boy suffering from PTSD undergoes hypnosis and realises he may have witnessed her murder.","imageUrl":"https://images1.resources.foxtel.com.au/store2/mount1/16/3/a15do.jpg?maxheight=213&limit=de8d920233e635e513b4c4d62d2651041a5aad41","genre":"Entertainment","subGenre":"Drama","placeholder":false,"isMovie":false,"adultsOnly":false},{"eventId":174869820,"programTitle":"Hawaii Five-0","channelId":714,"scheduledDate":1776549900000,"duration":55,"episodeTitle":"Elua La MA Nowemapa","audio":"DIGITAL","parentalRating":"MA","seriesLink":"60751","widescreenInd":true,"closedCaptionInd":true,"subtitledInd":false,"premiereInd":false,"hdInd":false,"actors":["Alex O'Loughlin","Scott Caan","Grace Park","Masi Oka","Chi McBride"],"mergedSynopsis":"(v) S7, Ep9. Elua La MA Nowemapa: A conspiracy theorist with compelling information that JFK's own cabinet planned his assassination is murdered. Jerry tells the story of the Honolulu Conference on November 20, 1963.","seriesNumber":"7","episodeNumber":"9","genreCode":"02","subGenreCode":"5","webLinks":[{"title":"IMDB","url":"http://www.imdb.com/title/tt1600194/"}],"yearOfProduction":"2016","consumerAdvice":"v","countryOfOrigin":"United States","language":"English","displaySepNum":true,"versionNum":2588617,"shortSynopsis":"A conspiracy theorist with compelling information that JFK's own cabinet planned his assassination is murdered. Jerry tells the story of the Honolulu Conference on November 20, 1963.","imageUrl":"https://images1.resources.foxtel.com.au/store2/mount1/16/3/6ww1q.jpg?maxheight=213&limit=dad1d2722cbb5b3ca8fb073fd3ed81387072fa7c","genre":"Entertainment","subGenre":"Drama","placeholder":false,"isMovie":false,"adultsOnly":false}],"alternateTimes":[{"eventId":174869806,"programTitle":"Hawaii Five-0","channelId":714,"scheduledDate":1776495600000,"duration":60,"episodeTitle":"Hana Komo Pae","audio":"DIGITAL","parentalRating":"M","seriesLink":"26816","widescreenInd":true,"closedCaptionInd":true,"subtitledInd":false,"premiereInd":false,"hdInd":false,"actors":["Alex O'Loughlin","Scott Caan","Grace Park","Masi Oka","Chi McBride"],"mergedSynopsis":"(v) S7, Ep8. Hana Komo Pae: While Danny chaperones Grace's winter formal, terrorists seize the venue and hold everyone hostage in order to kidnap a diplomat's son.","seriesNumber":"7","episodeNumber":"8","genreCode":"02","subGenreCode":"5","webLinks":[{"title":"IMDB","url":"http://www.imdb.com/title/tt1600194/"}],"yearOfProduction":"2016","consumerAdvice":"v","countryOfOrigin":"United States","language":"English","displaySepNum":true,"versionNum":2588617,"shortSynopsis":"While Danny chaperones Grace's winter formal, terrorists seize the venue and hold everyone hostage in order to kidnap a diplomat's son.","genre":"Entertainment","subGenre":"Drama","placeholder":false,"isMovie":false,"adultsOnly":false}],"moreLikeThis":[{"eventId":174868177,"programTitle":"S.W.A.T.","channelId":548,"scheduledDate":1776581400000,"duration":55,"episodeTitle":"Allegiance","audio":"digital","parentalRating":"M","seriesLink":"661813","widescreenInd":true,"closedCaptionInd":true,"subtitledInd":false,"premiereInd":false,"hdInd":false,"seriesNumber":"7","episodeNumber":"12","genreCode":"2","yearOfProduction":"2024","displaySepNum":false,"imageUrl":"https://images1.resources.foxtel.com.au/store2/mount1/16/4/c16y1k.jpg?maxheight=213&limit=b4951eec0ab9c5f7b60f76796cd1a0f85f74a3ae","placeholder":false,"isMovie":false,"adultsOnly":false},{"eventId":174868297,"programTitle":"Blue Bloods","channelId":548,"scheduledDate":1776992700000,"duration":55,"episodeTitle":"My Brother's Keeper","audio":"digital","parentalRating":"M","seriesLink":"655050","widescreenInd":true,"closedCaptionInd":true,"subtitledInd":false,"premiereInd":false,"hdInd":false,"seriesNumber":"9","episodeNumber":"14","genreCode":"2","yearOfProduction":"2018","displaySepNum":false,"imageUrl":"https://images1.resources.foxtel.com.au/store2/mount1/16/3/94d0l.jpg?maxheight=213&limit=a0057b16e5035cde9b5596bc38f8da86d3a03b25","placeholder":false,"isMovie":false,"adultsOnly":false},{"eventId":175562561,"programTitle":"Blue Bloods","channelId":548,"scheduledDate":1776896400000,"duration":55,"episodeTitle":"My Funny Valentine","audio":"digital","parentalRating":"M","seriesLink":"661918","widescreenInd":true,"closedCaptionInd":true,"subtitledInd":false,"premiereInd":false,"hdInd":false,"seriesNumber":"1","episodeNumber":"14","genreCode":"2","yearOfProduction":"2010","displaySepNum":false,"imageUrl":"https://images1.resources.foxtel.com.au/store2/mount1/16/3/a8rgy.jpg?maxheight=213&limit=ce300c06bc798e07bb73469cad41d2973a1df57d","placeholder":false,"isMovie":false,"adultsOnly":false},{"eventId":174645222,"programTitle":"NCIS: New Orleans","channelId":555,"scheduledDate":1777067400000,"duration":45,"episodeTitle":"Sins Of The Father","audio":"digital","parentalRating":"M","seriesLink":"656048","widescreenInd":true,"closedCaptionInd":true,"subtitledInd":false,"premiereInd":false,"hdInd":false,"seriesNumber":"4","episodeNumber":"8","genreCode":"2","yearOfProduction":"2018","displaySepNum":false,"imageUrl":"https://images1.resources.foxtel.com.au/store2/mount1/16/3/8w3zb.jpg?maxheight=213&limit=1f5ab1440dfe8b43a201fe1179b0cb413f687499","placeholder":false,"isMovie":false,"adultsOnly":false},{"eventId":174583439,"programTitle":"New York Undercover","channelId":21,"scheduledDate":1776522600000,"duration":60,"episodeTitle":"Missing","audio":"stereo","parentalRating":"M","seriesLink":"656671","widescreenInd":true,"closedCaptionInd":true,"subtitledInd":false,"premiereInd":false,"hdInd":false,"seriesNumber":"1","episodeNumber":"8","genreCode":"2","yearOfProduction":"1995","displaySepNum":false,"imageUrl":"https://images1.resources.foxtel.com.au/store1/mount1/HAL/2024/dsww1k.jpg?maxheight=213&limit=a7094fd3e1958dd63f792fa806c088343516620c","placeholder":false,"isMovie":false,"adultsOnly":false},{"eventId":176072598,"programTitle":"Blue Lights","scheduledDate":1777471200000,"duration":65,"episodeTitle":"The Code","audio":"stereo","parentalRating":"M","seriesLink":"H662705","widescreenInd":true,"closedCaptionInd":true,"subtitledInd":false,"premiereInd":false,"hdInd":false,"seriesNumber":"1","episodeNumber":"1","genreCode":"2","yearOfProduction":"2023","displaySepNum":false,"imageUrl":"https://images1.resources.foxtel.com.au/store2/mount1/28/81f989a1-55b8-51d1-af69-9ae8b062888b.jpeg?maxheight=213&limit=db8a3607b491dda2a00f29f016c4ef4cc2672d94","placeholder":false,"isMovie":false,"adultsOnly":false},{"eventId":175562587,"programTitle":"Blue Bloods","channelId":548,"scheduledDate":1776723600000,"duration":55,"episodeTitle":"Family Ties","audio":"digital","parentalRating":"M","seriesLink":"661918","widescreenInd":true,"closedCaptionInd":true,"subtitledInd":false,"premiereInd":false,"hdInd":false,"seriesNumber":"1","episodeNumber":"12","genreCode":"2","yearOfProduction":"2010","displaySepNum":false,"imageUrl":"https://images1.resources.foxtel.com.au/store2/mount1/16/3/b1azh.jpg?maxheight=213&limit=5eaa1d8f60af8373ccc4af84c91f0f2414e9eaed","placeholder":false,"isMovie":false,"adultsOnly":false},{"eventId":174645192,"programTitle":"CSI: NY","channelId":555,"scheduledDate":1776975600000,"duration":45,"episodeTitle":"Pay Up","audio":"stereo","parentalRating":"M","seriesLink":"651367","widescreenInd":true,"closedCaptionInd":true,"subtitledInd":false,"premiereInd":false,"hdInd":false,"seriesNumber":"5","episodeNumber":"25","genreCode":"2","yearOfProduction":"2008","displaySepNum":false,"imageUrl":"https://images1.resources.foxtel.com.au/store1/mount1/PAR/2021/I@092798_L.jpg?maxheight=213&limit=5537e09f68de97335b852b9ceb7bf89ceca60ecc","placeholder":false,"isMovie":false,"adultsOnly":false}],"userDevices":[]} \ No newline at end of file diff --git a/sites/foxtel.com.au/foxtel.com.au.config.js b/sites/foxtel.com.au/foxtel.com.au.config.js index da6f04b1b..050261719 100644 --- a/sites/foxtel.com.au/foxtel.com.au.config.js +++ b/sites/foxtel.com.au/foxtel.com.au.config.js @@ -14,10 +14,11 @@ module.exports = { headers: { 'Accept-Language': 'en-US,en;', Cookie: 'AAMC_foxtel_0=REGION|7', - 'User-Agent': 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/91.0.4472.124 Safari/537.36' + 'User-Agent': + 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/91.0.4472.124 Safari/537.36' } }, - parser: function ({ content, date }) { + async parser({ content, date }) { let programs = [] const items = parseItems(content) for (let item of items) { @@ -32,9 +33,18 @@ module.exports = { prev.stop = start } const stop = start.add(30, 'm') + + const programId = parseProgramId($item) + const details = await loadProgramDetails(programId) + let description + if (details) { + description = parseDescription(details) + } + programs.push({ title: parseTitle($item), sub_title: parseSubTitle($item), + description, image: parseImage($item), rating: parseRating($item), season: parseSeason($item), @@ -72,6 +82,34 @@ module.exports = { } } +function parseProgramId($item) { + const href = $item('*').attr('href') + + return href.split('/')[1] +} + +async function loadProgramDetails(programId) { + if (!programId) return {} + + return await axios + .get( + `https://www.foxtel.com.au/webepg/ws/foxtel/event/${programId}?movieHeight=213&tvShowHeight=213®ionId=8336`, + { + headers: { + 'sec-fetch-dest': 'empty', + 'sec-fetch-site': 'same-origin', + 'User-Agent': 'insomnia/2022.7.5' + } + } + ) + .then(r => r.data) + .catch(console.log) +} + +function parseDescription(details) { + return details?.event?.shortSynopsis +} + function parseSeason($item) { let seasonString = $item('.epg-event-description > div > abbr:nth-child(1)').attr('title') if (!seasonString) return null @@ -118,9 +156,9 @@ function parseRating($item) { return rating ? { - system: 'ACB', - value: rating - } + system: 'ACB', + value: rating + } : null } diff --git a/sites/foxtel.com.au/foxtel.com.au.test.js b/sites/foxtel.com.au/foxtel.com.au.test.js index 3485c6f2a..7046fac9b 100644 --- a/sites/foxtel.com.au/foxtel.com.au.test.js +++ b/sites/foxtel.com.au/foxtel.com.au.test.js @@ -1,3 +1,4 @@ +const axios = require('axios') const { parser, url, request } = require('./foxtel.com.au.config.js') const fs = require('fs') const path = require('path') @@ -7,6 +8,23 @@ const customParseFormat = require('dayjs/plugin/customParseFormat') dayjs.extend(customParseFormat) dayjs.extend(utc) +jest.mock('axios') + +axios.get.mockImplementation(url => { + if ( + url === + 'https://www.foxtel.com.au/webepg/ws/foxtel/event/174868153?movieHeight=213&tvShowHeight=213®ionId=8336' + ) { + return Promise.resolve({ + data: JSON.parse(fs.readFileSync(path.resolve(__dirname, '__data__/program_1.json'))) + }) + } else { + return Promise.resolve({ + data: '{}' + }) + } +}) + const date = dayjs.utc('2022-11-08', 'YYYY-MM-DD').startOf('d') const channel = { site_id: 'Channel-9-Sydney/NIN', @@ -26,10 +44,10 @@ it('can generate valid request headers', () => { }) }) -it('can parse response', () => { +it('can parse response', async () => { const content = fs.readFileSync(path.resolve(__dirname, '__data__/content.html')) - let results = parser({ content }) + let results = await parser({ content }) results = results.map(p => { p.start = p.start.toJSON() p.stop = p.stop.toJSON() @@ -41,6 +59,8 @@ it('can parse response', () => { stop: '2022-11-07T13:30:00.000Z', title: 'The Equalizer', sub_title: 'Glory', + description: + "While Danny chaperones Grace's winter formal, terrorists seize the venue and hold everyone hostage in order to kidnap a diplomat's son.", image: 'https://images1.resources.foxtel.com.au/store2/mount1/16/3/69e0v.jpg?maxheight=90&limit=91aa1c7a2c485aeeba0706941f79f111adb35830', rating: { @@ -52,8 +72,8 @@ it('can parse response', () => { }) }) -it('can handle empty guide', () => { - const result = parser({ +it('can handle empty guide', async () => { + const result = await parser({ content: fs.readFileSync(path.resolve(__dirname, '__data__/no-content.html')) }) expect(result).toMatchObject([])