Update /sites

This commit is contained in:
freearhey
2023-10-02 06:35:33 +03:00
parent ca254a6df0
commit c0cfcf7a47
543 changed files with 30781 additions and 31187 deletions

File diff suppressed because it is too large Load Diff

View File

@@ -56,7 +56,7 @@ module.exports = {
},
async channels() {
const content = await axios
.get(`https://www.tvpassport.com/tv-listings`, {
.get('https://www.tvpassport.com/tv-listings', {
headers: {
Cookie: 'cisession=317b3a464bfe449650b7cc4b16ccf900a6646d88;'
}
@@ -152,5 +152,5 @@ function parseItems(content) {
if (!content) return []
const $ = cheerio.load(content)
return $(`.station-listings .list-group-item`).toArray()
return $('.station-listings .list-group-item').toArray()
}

View File

@@ -1,4 +1,4 @@
// npx epg-grabber --config=sites/tvpassport.com/tvpassport.com.config.js --channels=sites/tvpassport.com/tvpassport.com.channels.xml --output=guide.xml --days=2
// npm run grab -- --site=tvpassport.com
// npm run channels:parse -- --config=./sites/tvpassport.com/tvpassport.com.config.js --output=./sites/tvpassport.com/tvpassport.com.channels.xml
const { parser, url, request } = require('./tvpassport.com.config.js')