Update teliatv.ee

Added website language (English / Estonian / Russian) to site id and use that to get data URL, rather than use channel language. Too many cases where the language in the URL didn't match the actual language of the returned data.

Refreshed channel list
This commit is contained in:
RevGear
2023-01-27 17:35:29 +00:00
parent 70ec0ce8f1
commit 3742888b11
3 changed files with 344 additions and 345 deletions

View File

@@ -11,7 +11,7 @@ dayjs.extend(utc)
const date = dayjs.utc('2021-11-20', 'YYYY-MM-DD').startOf('d')
const channel = {
lang: 'et',
site_id: '1',
site_id: 'et#1',
xmltv_id: 'ETV.ee'
}
@@ -24,7 +24,7 @@ it('can generate valid url', () => {
it('can generate valid url with different language', () => {
const ruChannel = {
lang: 'ru',
site_id: '1',
site_id: 'ru#1',
xmltv_id: 'ETV.ee'
}
expect(url({ date, channel: ruChannel })).toBe(