mirror of
https://github.com/iptv-org/epg.git
synced 2025-05-10 00:50:09 -04:00
fix NosTV.pt channel
This commit is contained in:
parent
0b9276ca8a
commit
e80ca4502a
2 changed files with 4 additions and 4 deletions
|
@ -6,7 +6,7 @@ dayjs.extend(utc)
|
||||||
|
|
||||||
const headers = {
|
const headers = {
|
||||||
'X-Apikey': 'xe1dgrShwdR1DVOKGmsj8Ut4QLlGyOFI',
|
'X-Apikey': 'xe1dgrShwdR1DVOKGmsj8Ut4QLlGyOFI',
|
||||||
'X-Core-Appversion': '2.14.0.1',
|
'X-Core-Appversion': '2.20.0.3',
|
||||||
'X-Core-Contentratinglimit': '0',
|
'X-Core-Contentratinglimit': '0',
|
||||||
'X-Core-Deviceid': '',
|
'X-Core-Deviceid': '',
|
||||||
'X-Core-Devicetype': 'web',
|
'X-Core-Devicetype': 'web',
|
||||||
|
@ -19,7 +19,7 @@ module.exports = {
|
||||||
site: 'nostv.pt',
|
site: 'nostv.pt',
|
||||||
days: 2,
|
days: 2,
|
||||||
url({ channel, date }) {
|
url({ channel, date }) {
|
||||||
return `https://tyr-prod.apigee.net/nostv/ott/schedule/range/contents/guest?channels=${
|
return `https://api.clg.nos.pt/nostv/ott/schedule/range/contents/guest?channels=${
|
||||||
channel.site_id
|
channel.site_id
|
||||||
}&minDate=${date.format('YYYY-MM-DD')}T00:00:00Z&maxDate=${date.format(
|
}&minDate=${date.format('YYYY-MM-DD')}T00:00:00Z&maxDate=${date.format(
|
||||||
'YYYY-MM-DD'
|
'YYYY-MM-DD'
|
||||||
|
@ -51,7 +51,7 @@ module.exports = {
|
||||||
async channels() {
|
async channels() {
|
||||||
const result = await axios
|
const result = await axios
|
||||||
.get(
|
.get(
|
||||||
`https://tyr-prod.apigee.net/nostv/ott/channels/guest?client_id=${headers['X-Apikey']}`,
|
`https://api.clg.nos.pt/nostv/ott/channels/guest?client_id=${headers['X-Apikey']}`,
|
||||||
{ headers }
|
{ headers }
|
||||||
)
|
)
|
||||||
.then(r => r.data)
|
.then(r => r.data)
|
||||||
|
|
|
@ -16,7 +16,7 @@ const channel = {
|
||||||
|
|
||||||
it('can generate valid url', () => {
|
it('can generate valid url', () => {
|
||||||
expect(url({ channel, date })).toBe(
|
expect(url({ channel, date })).toBe(
|
||||||
'https://tyr-prod.apigee.net/nostv/ott/schedule/range/contents/guest?channels=510&minDate=2023-12-11T00:00:00Z&maxDate=2023-12-11T23:59:59Z&isDateInclusive=true&client_id=xe1dgrShwdR1DVOKGmsj8Ut4QLlGyOFI'
|
'https://api.clg.nos.pt/nostv/ott/schedule/range/contents/guest?channels=510&minDate=2023-12-11T00:00:00Z&maxDate=2023-12-11T23:59:59Z&isDateInclusive=true&client_id=xe1dgrShwdR1DVOKGmsj8Ut4QLlGyOFI'
|
||||||
)
|
)
|
||||||
})
|
})
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue