mirror of
https://github.com/iptv-org/epg.git
synced 2025-05-10 09:00:07 -04:00
Update tvtv.us.config.js
This commit is contained in:
parent
93d677a173
commit
d9a75265b0
1 changed files with 2 additions and 12 deletions
|
@ -1,4 +1,3 @@
|
||||||
const axios = require('axios')
|
|
||||||
const dayjs = require('dayjs')
|
const dayjs = require('dayjs')
|
||||||
const utc = require('dayjs/plugin/utc')
|
const utc = require('dayjs/plugin/utc')
|
||||||
|
|
||||||
|
@ -14,17 +13,8 @@ module.exports = {
|
||||||
channel.site_id
|
channel.site_id
|
||||||
}/listings?start=${date.format()}&end=${date.add(1, 'd').format()}`
|
}/listings?start=${date.format()}&end=${date.add(1, 'd').format()}`
|
||||||
},
|
},
|
||||||
logo: async function ({ channel }) {
|
logo({ channel }) {
|
||||||
if (channel.logo) return channel.logo
|
return channel.logo
|
||||||
|
|
||||||
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 }) {
|
parser: function ({ content }) {
|
||||||
let programs = []
|
let programs = []
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue