Update tv.yandex.ru

This commit is contained in:
Aleksandr Statciuk
2022-02-01 05:42:27 +03:00
parent 46fa2f0bb7
commit a2e2d0da60
2 changed files with 6 additions and 17 deletions

View File

@@ -2,21 +2,16 @@ const dayjs = require('dayjs')
module.exports = {
site: 'tv.yandex.ru',
request: {
headers: {
Cookie:
'yandexuid=8747786251615498142; Expires=Tue, 11 Mar 2031 21:29:02 GMT; Domain=yandex.ru; Path=/'
}
},
url: function ({ date, channel }) {
const [region, id] = channel.site_id.split('#')
return `https://tv.yandex.ru/${region}/channel/${id}?date=${date.format('YYYY-MM-DD')}`
},
logo: function ({ content }) {
const data = parseContent(content)
return data ? `https:${data.channel.logo.maxSize.src}` : null
request: {
headers: {
Cookie:
'yandexuid=8747786251615498142; Expires=Tue, 11 Mar 2031 21:29:02 GMT; Domain=yandex.ru; Path=/'
}
},
parser: function ({ content }) {
const programs = []