diff --git a/sites/foxtel.com.au/foxtel.com.au.channels.xml b/sites/foxtel.com.au/foxtel.com.au.channels.xml
index a4f919e2..00f8b8d6 100644
--- a/sites/foxtel.com.au/foxtel.com.au.channels.xml
+++ b/sites/foxtel.com.au/foxtel.com.au.channels.xml
@@ -1,195 +1,158 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
\ No newline at end of file
+
+
+
+ A&E
+ A&E HD
+ A&E +2
+ Al Jazeera
+ Animal Planet
+ Antenna Pacific
+ Aurora
+ BBC Earth
+ BBC First
+ BBC News
+ UKTV
+ Boomerang
+ BoxSets
+ Cartoon Network
+ Cbeebies
+ Club MTV
+ CMT
+ CNBC
+ CNN
+ Discovery Channel
+ Discovery +2
+ Discovery Turbo
+ Discovery Turbo +2
+ Docos
+ ESPN
+ ESPN2
+ EXPO
+ FOX8
+ FOX8+2
+ Classics
+ Classics +2
+ Comedy
+ Comedy +2
+ FOX CRICKET
+ Crime
+ Crime +2
+ Fox Footy
+ FOX LEAGUE
+ FOX News
+ Sci Fi
+ Sci Fi +2
+ Showcase
+ Showcase +2
+ Sleuth
+ Sleuth +2
+ FOX SPORTS 503
+ FOX SPORTS 505
+ FOX SPORTS 506
+ Fox Sports News
+ Foxtel Movies Action
+ Foxtel Movies Action +2
+ Foxtel Movies Comedy
+ Foxtel Movies Drama
+ Foxtel Movies Family
+ Foxtel Movies Family +2
+ Foxtel Movies Greats
+ Foxtel Movies Hits
+ Foxtel Movies Premiere
+ Foxtel Movies Premiere +2
+ Foxtel Movies Romance
+ Foxtel Movies Thriller
+ GOOD
+ HISTORY
+ Investigation Discovery
+ LifeStyle
+ LifeStyle Food
+ LifeStyle Food +2
+ LifeStyle Home
+ LifeStyle +2
+ Lifetime Movie Network
+ MTV Hits
+ NHK World-Japan
+ Nick Music
+ RACING.COM
+ RAI ITALIA
+ Real Life
+ Real Life +2
+ SBS Viceland
+ SBS World Movies SD
+ SBS Worldwatch
+ Sky News Extra
+ SKY Racing 2
+ TBN Inspire
+ TLC
+ TLC +2
+ TVSN
+ Universal TV
+
diff --git a/sites/foxtel.com.au/foxtel.com.au.config.js b/sites/foxtel.com.au/foxtel.com.au.config.js
index 97ee3590..280c1285 100644
--- a/sites/foxtel.com.au/foxtel.com.au.config.js
+++ b/sites/foxtel.com.au/foxtel.com.au.config.js
@@ -49,19 +49,22 @@ module.exports = {
const data = await axios
.get('https://www.foxtel.com.au/webepg/ws/foxtel/channels?regionId=8336', {
headers: {
- 'Accept-Language': 'en-US,en;',
- Cookie: 'AAMC_foxtel_0=REGION|6'
+ 'User-Agent': 'insomnia/2022.7.5'
}
})
.then(r => r.data)
.catch(console.log)
- return data.channels.forEach(item => {
- let name = item.name.replace(/\+/g, '-').replace(/&/g, '')
- const slug = name.replace(/[^a-z0-9\s]/gi, '').replace(/[^a-z0-9]/i, '-')
+ return data.channels.map(item => {
+ const slug = item.name
+ .replace(/\+/g, '-')
+ .replace(/&/g, '')
+ .replace(/[^a-z0-9\s]/gi, '')
+ .replace(/\s/g, '-')
return {
- name: item.name.replace(/&/g, '&'),
+ lang: 'en',
+ name: item.name,
site_id: `${slug}/${item.channelTag}`
}
})
diff --git a/sites/foxtel.com.au/foxtel.com.au.test.js b/sites/foxtel.com.au/foxtel.com.au.test.js
index 35394654..f5d6d50e 100644
--- a/sites/foxtel.com.au/foxtel.com.au.test.js
+++ b/sites/foxtel.com.au/foxtel.com.au.test.js
@@ -1,5 +1,5 @@
-// npm run channels:parse -- --config=./sites/foxtel.com.au/foxtel.com.au.config.js --output=./sites/foxtel.com.au/foxtel.com.au.channels.xml
-// npm run grab -- --site=foxtel.com.au
+// [Geo-blocked] npm run channels:parse -- --config=./sites/foxtel.com.au/foxtel.com.au.config.js --output=./sites/foxtel.com.au/foxtel.com.au.channels.xml
+// [Geo-blocked] npm run grab -- --site=foxtel.com.au
const { parser, url, request } = require('./foxtel.com.au.config.js')
const fs = require('fs')