Merge pull request #102 from iptv-org/update-tvtv-us

Update tvtv.us.channels.xml
This commit is contained in:
Dum4G 2021-09-23 16:23:32 +03:00 committed by GitHub
commit 5429406248
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
8 changed files with 5755 additions and 6206 deletions

View file

@ -39,7 +39,6 @@ jobs:
tvgid.ua,
tvguide.com,
tvprofil.com,
tvtv.ca,
tvtv.us,
vidio.com,
znbc.co.zm

View file

@ -29,7 +29,7 @@ To load a program guide, all you need to do is copy the link to one of the guide
<tr><td align="left" nowrap>🇧🇦 Bosnia</td><td align="left" nowrap><code>https://iptv-org.github.io/epg/guides/tvprofil.com.guide.xml</code></td></tr>
<tr><td align="left" nowrap>🇧🇷 Brasil</td><td align="left" nowrap><code>https://iptv-org.github.io/epg/guides/mi.tv.guide.xml</code></td></tr>
<tr><td align="left" nowrap>🇧🇬 Bulgaria</td><td align="left" nowrap><code>https://iptv-org.github.io/epg/guides/tvprofil.com.guide.xml</code></td></tr>
<tr><td align="left" nowrap>🇨🇦 Canada</td><td align="left" nowrap><code>https://iptv-org.github.io/epg/guides/tvtv.ca.guide.xml</code></td></tr>
<tr><td align="left" nowrap>🇨🇦 Canada</td><td align="left" nowrap><code>https://iptv-org.github.io/epg/guides/tvtv.us.guide.xml</code></td></tr>
<tr><td align="left" nowrap>🇨🇱 Chile</td><td align="left" nowrap><code>https://iptv-org.github.io/epg/guides/mi.tv.guide.xml</code></td></tr>
<tr><td align="left" nowrap>🇨🇳 China</td><td align="left" nowrap><code>https://iptv-org.github.io/epg/guides/tv.cctv.com.guide.xml</code></td></tr>
<tr><td align="left" nowrap>🇨🇴 Colombia</td><td align="left" nowrap><code>https://iptv-org.github.io/epg/guides/mi.tv.guide.xml</code></td></tr>

26
package-lock.json generated
View file

@ -10,7 +10,7 @@
"axios": "^0.21.1",
"cheerio": "^1.0.0-rc.10",
"dayjs": "^1.10.4",
"epg-grabber": "^0.9.0",
"epg-grabber": "^0.9.1",
"epg-parser": "^0.1.3",
"form-data": "^4.0.0",
"html-to-text": "^7.0.0",
@ -551,9 +551,9 @@
"integrity": "sha512-hCx1oky9PFrJ611mf0ifBLBRW8lUUVRlFolb5gWRfIELabBlbp9xZvrqZLZAs+NxFnbfQoeGd8wDkygjg7U85w=="
},
"node_modules/epg-grabber": {
"version": "0.9.0",
"resolved": "https://registry.npmjs.org/epg-grabber/-/epg-grabber-0.9.0.tgz",
"integrity": "sha512-dVJPJ3XlCJUneU0P68Zz7OtTG50YYeblRbyRRLGg+8trB/3ZLL8uZaphqDMDiZi2iR0icvXVbWJTll2SCnMidg==",
"version": "0.9.1",
"resolved": "https://registry.npmjs.org/epg-grabber/-/epg-grabber-0.9.1.tgz",
"integrity": "sha512-SogskTCvepDqe+NwfF5+88Rig5irs32pSxTnkovRrOwCY9ItoFynQNwV1UvxwMe94yGwF4l9+205d00ZwACojg==",
"dependencies": {
"axios": "^0.21.1",
"axios-cookiejar-support": "^1.0.1",
@ -637,9 +637,7 @@
"version": "1.3.0",
"resolved": "https://registry.npmjs.org/extsprintf/-/extsprintf-1.3.0.tgz",
"integrity": "sha1-lpGEQOMEGnpBT4xS48V06zw+HgU=",
"engines": [
"node >=0.6.0"
]
"engines": ["node >=0.6.0"]
},
"node_modules/fast-deep-equal": {
"version": "3.1.3",
@ -970,9 +968,7 @@
"version": "1.4.1",
"resolved": "https://registry.npmjs.org/jsprim/-/jsprim-1.4.1.tgz",
"integrity": "sha1-MT5mvB5cwG5Di8G3SZwuXFastqI=",
"engines": [
"node >=0.6.0"
],
"engines": ["node >=0.6.0"],
"dependencies": {
"assert-plus": "1.0.0",
"extsprintf": "1.3.0",
@ -1488,9 +1484,7 @@
"version": "1.10.0",
"resolved": "https://registry.npmjs.org/verror/-/verror-1.10.0.tgz",
"integrity": "sha1-OhBcoXBTr1XW4nDB+CiGguGNpAA=",
"engines": [
"node >=0.6.0"
],
"engines": ["node >=0.6.0"],
"dependencies": {
"assert-plus": "^1.0.0",
"core-util-is": "1.0.2",
@ -2015,9 +2009,9 @@
"integrity": "sha512-hCx1oky9PFrJ611mf0ifBLBRW8lUUVRlFolb5gWRfIELabBlbp9xZvrqZLZAs+NxFnbfQoeGd8wDkygjg7U85w=="
},
"epg-grabber": {
"version": "0.9.0",
"resolved": "https://registry.npmjs.org/epg-grabber/-/epg-grabber-0.9.0.tgz",
"integrity": "sha512-dVJPJ3XlCJUneU0P68Zz7OtTG50YYeblRbyRRLGg+8trB/3ZLL8uZaphqDMDiZi2iR0icvXVbWJTll2SCnMidg==",
"version": "0.9.1",
"resolved": "https://registry.npmjs.org/epg-grabber/-/epg-grabber-0.9.1.tgz",
"integrity": "sha512-SogskTCvepDqe+NwfF5+88Rig5irs32pSxTnkovRrOwCY9ItoFynQNwV1UvxwMe94yGwF4l9+205d00ZwACojg==",
"requires": {
"axios": "^0.21.1",
"axios-cookiejar-support": "^1.0.1",

View file

@ -10,7 +10,7 @@
"axios": "^0.21.1",
"cheerio": "^1.0.0-rc.10",
"dayjs": "^1.10.4",
"epg-grabber": "^0.9.0",
"epg-grabber": "^0.9.1",
"epg-parser": "^0.1.3",
"form-data": "^4.0.0",
"html-to-text": "^7.0.0",

File diff suppressed because it is too large Load diff

View file

@ -1,38 +0,0 @@
const dayjs = require('dayjs')
const utc = require('dayjs/plugin/utc')
dayjs.extend(utc)
module.exports = {
lang: 'en',
site: 'tvtv.ca',
channels: 'tvtv.ca.channels.xml',
output: '.gh-pages/guides/tvtv.ca.guide.xml',
url: function ({ date, channel }) {
return `https://www.tvtv.ca/tvm/t/tv/v4/stations/${
channel.site_id
}/listings?start=${date.format()}&end=${date.add(1, 'd').format()}`
},
parser: function ({ content }) {
let programs = []
const items = JSON.parse(content)
if (!items.length) return programs
items.forEach(item => {
const start = dayjs.utc(item.listDateTime)
const stop = start.add(item.duration, 'm')
const icon = item.showPicture
? `https://cdn.tvpassport.com/image/show/480x720/${item.showPicture}`
: null
programs.push({
title: item.showName,
description: item.description,
category: item.showType,
start: start.toString(),
stop: stop.toString(),
icon
})
})
return programs
}
}

File diff suppressed because it is too large Load diff

View file

@ -1,3 +1,4 @@
const axios = require('axios')
const dayjs = require('dayjs')
const utc = require('dayjs/plugin/utc')
@ -9,10 +10,20 @@ module.exports = {
channels: 'tvtv.us.channels.xml',
output: '.gh-pages/guides/tvtv.us.guide.xml',
url: function ({ date, channel }) {
return `https://www.tvtv.us/tvm/t/tv/v4/stations/${
return `https://tvtv.us/tvm/t/tv/v4/stations/${
channel.site_id
}/listings?start=${date.format()}&end=${date.add(1, 'd').format()}`
},
logo: async function ({ channel }) {
return await axios
.get(`https://tvtv.us/tvm/t/tv/v4/stations/${channel.site_id}`)
.then(r =>
r.data && r.data.logoFilename
? `https://cdn.tvpassport.com/image/station/100x100/${r.data.logoFilename}`
: null
)
.catch(e => console.log)
},
parser: function ({ content }) {
let programs = []
const items = JSON.parse(content)
@ -24,7 +35,7 @@ module.exports = {
? `https://cdn.tvpassport.com/image/show/480x720/${item.showPicture}`
: null
let title = item.showName
if (title === "Movie") {
if (title === 'Movie') {
title = item.episodeTitle
}
programs.push({