Update tests/__data__

This commit is contained in:
freearhey committed 2025-04-19 02:04:20 +03:00
1 parent 9f93a30988
commit e54dfb4042
10 files changed
+68 -1

No files matched your search

@@ -0,0 +1,8 @@
<?xml version="1.0" encoding="UTF-8" ?><tv date="20221020">
<channel id="Channel1.us"><display-name>Channel 1</display-name><url>https://example.com</url></channel>
<channel id="Channel3.us"><display-name>Channel 3</display-name><icon src="https://upload.wikimedia.org/wikipedia/commons/6/64/6%27eren_2015.png"/><url>https://example.com</url></channel>
<programme start="20221019043000 +0000" stop="20221019071000 +0000" channel="Channel1.us"><title lang="fr">Programme1 (example.com)</title></programme>
<programme start="20221020043000 +0000" stop="20221020071000 +0000" channel="Channel1.us"><title lang="fr">Programme1 (example.com)</title></programme>
<programme start="20221019043000 +0000" stop="20221019071000 +0000" channel="Channel3.us"><title lang="it">Program1 (example.com)</title></programme>
<programme start="20221020043000 +0000" stop="20221020071000 +0000" channel="Channel3.us"><title lang="it">Program1 (example.com)</title></programme>
</tv>
@@ -0,0 +1 @@
[]
@@ -0,0 +1 @@
[{"id":"auto","name":"Auto"},{"id":"animation","name":"Animation"},{"id":"business","name":"Business"},{"id":"classic","name":"Classic"},{"id":"comedy","name":"Comedy"},{"id":"cooking","name":"Cooking"},{"id":"culture","name":"Culture"},{"id":"documentary","name":"Documentary"},{"id":"education","name":"Education"},{"id":"entertainment","name":"Entertainment"},{"id":"family","name":"Family"},{"id":"general","name":"General"},{"id":"kids","name":"Kids"},{"id":"legislative","name":"Legislative"},{"id":"lifestyle","name":"Lifestyle"},{"id":"movies","name":"Movies"},{"id":"music","name":"Music"},{"id":"news","name":"News"},{"id":"outdoor","name":"Outdoor"},{"id":"relax","name":"Relax"},{"id":"religious","name":"Religious"},{"id":"series","name":"Series"},{"id":"science","name":"Science"},{"id":"shop","name":"Shop"},{"id":"sports","name":"Sports"},{"id":"travel","name":"Travel"},{"id":"weather","name":"Weather"},{"id":"xxx","name":"XXX"}]
+10
View File
@@ -0,0 +1,10 @@
[
{
"channel": "CNNInternational.us",
"feed": "SD",
"site": "9tv.co.il",
"site_id": "#",
"site_name": "CNN (guide)",
"lang": "en"
}
]
@@ -0,0 +1 @@
[{"code":"aaa","name":"Ghotuo"},{"code":"aab","name":"Alumu-Tesu"},{"code":"aac","name":"Ari"},{"code":"aad","name":"Amal"},{"code":"aae","name":"Arbëreshë Albanian"},{"code":"aaf","name":"Aranadan"},{"code":"aag","name":"Ambrak"},{"code":"aah","name":"Abu' Arapesh"},{"code":"aai","name":"Arifama-Miniafia"},{"code":"aak","name":"Ankave"},{"code":"aal","name":"Afade"},{"code":"aan","name":"Anambé"},{"code":"aao","name":"Algerian Saharan Arabic"},{"code":"aap","name":"Pará Arára"},{"code":"aaq","name":"Eastern Abnaki"},{"code":"aar","name":"Afar"},{"code":"aas","name":"Aasáx"},{"code":"aat","name":"Arvanitika Albanian"},{"code":"aau","name":"Abau"},{"code":"aaw","name":"Solong"},{"code":"aax","name":"Mandobo Atas"},{"code":"aaz","name":"Amarasi"},{"code":"aba","name":"Abé"},{"code":"abb","name":"Bankon"},{"code":"abc","name":"Ambala Ayta"},{"code":"abd","name":"Manide"},{"code":"abe","name":"Western Abnaki"},{"code":"abf","name":"Abai Sungai"},{"code":"abg","name":"Abaga"},{"code":"abh","name":"Tajiki Arabic"},{"code":"abi","name":"Abidji"},{"code":"abj","name":"Aka-Bea"},{"code":"abk","name":"Abkhazian"},{"code":"abl","name":"Lampung Nyo"},{"code":"abm","name":"Abanyom"},{"code":"abn","name":"Abua"},{"code":"abo","name":"Abon"},{"code":"abp","name":"Abellen Ayta"},{"code":"abq","name":"Abaza"},{"code":"abr","name":"Abron"},{"code":"abs","name":"Ambonese Malay"},{"code":"abt","name":"Ambulas"},{"code":"abu","name":"Abure"},{"code":"abv","name":"Baharna Arabic"},{"code":"abw","name":"Pal"},{"code":"abx","name":"Inabaknon"},{"code":"aby","name":"Aneme Wake"},{"code":"abz","name":"Abui"},{"code":"aca","name":"Achagua"},{"code":"acb","name":"Áncá"},{"code":"acd","name":"Gikyode"},{"code":"ace","name":"Achinese"},{"code":"acf","name":"Saint Lucian Creole French"},{"code":"ach","name":"Acoli"},{"code":"aci","name":"Aka-Cari"},{"code":"ack","name":"Aka-Kora"},{"code":"acl","name":"Akar-Bale"},{"code":"acm","name":"Mesopotamian Arabic"},{"code":"acn","name":"Achang"},{"code":"acp","name":"Eastern Acipa"},{"code":"acq","name":"Ta'izzi-Adeni Arabic"},{"code":"acr","name":"Achi"},{"code":"acs","name":"Acroá"},{"code":"act","name":"Achterhoeks"},{"code":"acu","name":"Achuar-Shiwiar"},{"code":"acv","name":"Achumawi"},{"code":"acw","name":"Hijazi Arabic"},{"code":"acx","name":"Omani Arabic"},{"code":"acy","name":"Cypriot Arabic"},{"code":"acz","name":"Acheron"},{"code":"ada","name":"Adangme"},{"code":"adb","name":"Atauran"},{"code":"add","name":"Dzodinka"},{"code":"ade","name":"Adele"},{"code":"adf","name":"Dhofari Arabic"},{"code":"adg","name":"Andegerebinha"},{"code":"adh","name":"Adhola"},{"code":"adi","name":"Adi"},{"code":"adj","name":"Adioukrou"},{"code":"adl","name":"Galo"},{"code":"adn","name":"Adang"},{"code":"ado","name":"Abu"},{"code":"adq","name":"Adangbe"},{"code":"adr","name":"Adonara"},{"code":"ads","name":"Adamorobe Sign Language"},{"code":"adt","name":"Adnyamathanha"},{"code":"adu","name":"Aduge"},{"code":"adw","name":"Amundava"},{"code":"adx","name":"Amdo Tibetan"},{"code":"ady","name":"Adygei"},{"code":"adz","name":"Adzera"},{"code":"aea","name":"Areba"},{"code":"aeb","name":"Tunisian Arabic"},{"code":"aec","name":"Saidi Arabic"},{"code":"aed","name":"Argentine Sign Language"},{"code":"aee","name":"Northeast Pashai"},{"code":"aek","name":"Haeke"},{"code":"ael","name":"Ambele"},{"code":"aem","name":"Arem"},{"code":"aen","name":"Armenian Sign Language"},{"code":"aeq","name":"Aer"},{"code":"aer","name":"Eastern Arrernte"},{"code":"aes","name":"Alsea"},{"code":"aeu","name":"Akeu"},{"code":"aew","name":"Ambakich"},{"code":"aey","name":"Amele"},{"code":"aez","name":"Aeka"},{"code":"afb","name":"Gulf Arabic"},{"code":"afd","name":"Andai"},{"code":"afe","name":"Putukwam"},{"code":"afg","name":"Afghan Sign Language"},{"code":"afh","name":"Afrihili"},{"code":"afi","name":"Akrukay"},{"code":"afk","name":"Nanubae"},{"code":"afn","name":"Defaka"},{"code":"afo","name":"Eloyi"},{"code":"afp","name":"Tapei"},{"code":"afr","name":"Afrikaans"},{"code":"afs","name":"Afro-Seminole Creole"},{"code":"aft","name":"Afitti"},{"code":"afu","name":"Awutu"},{"code":"afz","name":"Obokuitai"},{"code":"aga","name":"Aguano"},{"code":"agb","name":"Legbo"},{"code":"agc","name":"Agatu"},{"code":"agd","name":"Agarabi"},{"code":"age","name":"Angal"},{"code":"agf","name":"Arguni"},{"code":"agg","name":"Angor"},{"code":"agh","name":"Ngelima"},{"code":"agi","name":"Agariya"},{"code":"agj","name":"Argobba"},{"code":"agk","name":"Isarog Agta"},{"code":"agl","name":"Fembe"},{"code":"agm","name":"Angaataha"},{"code":"agn","name":"Agutaynen"},{"code":"ago","name":"Tainae"},{"code":"agq","name":"Aghem"},{"code":"agr","name":"Aguaruna"},{"code":"ags","name":"Esimbi"},{"code":"agt","name":"Central Cagayan Agta"},{"code":"agu","name":"Aguacateco"},{"code":"agv","name":"Remontado Dumagat"},{"code":"agw","name":"Kahua"},{"code":"agx","name":"Aghul"},{"code":"agy","name":"Southern Alta"},{"code":"agz","name":"Mt. Iriga Agta"},{"code":"aha","namLine truncated
@@ -0,0 +1,10 @@
[
{
"channel": "CNNInternational.us",
"feed": "SD",
"url": "https://live.relentlessinnovations.net:1936/imantv/imantv/playlist.m3u8",
"referrer": null,
"user_agent": null,
"quality": "480p"
}
]
@@ -0,0 +1 @@
[{"id":"Africa/Abidjan","utc_offset":"+00:00","countries":["CI","BF","GH","GM","GN","IS","ML","MR","SH","SL","SN","TG"]},{"id":"Africa/Accra","utc_offset":"+00:00","countries":["GH"]},{"id":"Africa/Addis_Ababa","utc_offset":"+03:00","countries":["ET"]},{"id":"Africa/Algiers","utc_offset":"+01:00","countries":["DZ"]},{"id":"Africa/Asmara","utc_offset":"+03:00","countries":["ER"]},{"id":"Africa/Bamako","utc_offset":"+00:00","countries":["ML"]},{"id":"Africa/Bangui","utc_offset":"+01:00","countries":["CF"]},{"id":"Africa/Banjul","utc_offset":"+00:00","countries":["GM"]},{"id":"Africa/Bissau","utc_offset":"+00:00","countries":["GW"]},{"id":"Africa/Blantyre","utc_offset":"+02:00","countries":["MW"]},{"id":"Africa/Brazzaville","utc_offset":"+01:00","countries":["CG"]},{"id":"Africa/Bujumbura","utc_offset":"+02:00","countries":["BI"]},{"id":"Africa/Cairo","utc_offset":"+02:00","countries":["EG"]},{"id":"Africa/Casablanca","utc_offset":"+00:00","countries":["MA"]},{"id":"Africa/Ceuta","utc_offset":"+01:00","countries":["ES"]},{"id":"Africa/Conakry","utc_offset":"+00:00","countries":["GN"]},{"id":"Africa/Dakar","utc_offset":"+00:00","countries":["SN"]},{"id":"Africa/Dar_es_Salaam","utc_offset":"+03:00","countries":["TZ"]},{"id":"Africa/Djibouti","utc_offset":"+03:00","countries":["DJ"]},{"id":"Africa/Douala","utc_offset":"+01:00","countries":["CM"]},{"id":"Africa/El_Aaiun","utc_offset":"+00:00","countries":["EH"]},{"id":"Africa/Freetown","utc_offset":"+00:00","countries":["SL"]},{"id":"Africa/Gaborone","utc_offset":"+02:00","countries":["BW"]},{"id":"Africa/Harare","utc_offset":"+02:00","countries":["ZW"]},{"id":"Africa/Johannesburg","utc_offset":"+02:00","countries":["ZA","LS","SZ"]},{"id":"Africa/Juba","utc_offset":"+02:00","countries":["SS"]},{"id":"Africa/Kampala","utc_offset":"+03:00","countries":["UG"]},{"id":"Africa/Khartoum","utc_offset":"+02:00","countries":["SD"]},{"id":"Africa/Kigali","utc_offset":"+02:00","countries":["RW"]},{"id":"Africa/Kinshasa","utc_offset":"+01:00","countries":["CD"]},{"id":"Africa/Lagos","utc_offset":"+01:00","countries":["NG","AO","BJ","CD","CF","CG","CM","GA","GQ","NE"]},{"id":"Africa/Libreville","utc_offset":"+01:00","countries":["GA"]},{"id":"Africa/Lome","utc_offset":"+00:00","countries":["TG"]},{"id":"Africa/Luanda","utc_offset":"+01:00","countries":["AO"]},{"id":"Africa/Lubumbashi","utc_offset":"+02:00","countries":["CD"]},{"id":"Africa/Lusaka","utc_offset":"+02:00","countries":["ZM"]},{"id":"Africa/Malabo","utc_offset":"+01:00","countries":["GQ"]},{"id":"Africa/Maputo","utc_offset":"+02:00","countries":["MZ","BI","BW","CD","MW","RW","ZM","ZW"]},{"id":"Africa/Maseru","utc_offset":"+02:00","countries":["LS"]},{"id":"Africa/Mbabane","utc_offset":"+02:00","countries":["SZ"]},{"id":"Africa/Mogadishu","utc_offset":"+03:00","countries":["SO"]},{"id":"Africa/Monrovia","utc_offset":"+00:00","countries":["LR"]},{"id":"Africa/Nairobi","utc_offset":"+03:00","countries":["KE","DJ","ER","ET","KM","MG","SO","TZ","UG","YT"]},{"id":"Africa/Ndjamena","utc_offset":"+01:00","countries":["TD"]},{"id":"Africa/Niamey","utc_offset":"+01:00","countries":["NE"]},{"id":"Africa/Nouakchott","utc_offset":"+00:00","countries":["MR"]},{"id":"Africa/Ouagadougou","utc_offset":"+00:00","countries":["BF"]},{"id":"Africa/Porto-Novo","utc_offset":"+01:00","countries":["BJ"]},{"id":"Africa/Sao_Tome","utc_offset":"+00:00","countries":["ST"]},{"id":"Africa/Tripoli","utc_offset":"+02:00","countries":["LY"]},{"id":"Africa/Tunis","utc_offset":"+01:00","countries":["TN"]},{"id":"Africa/Windhoek","utc_offset":"+01:00","countries":["NA"]},{"id":"America/Adak","utc_offset":"-10:00","countries":["US"]},{"id":"America/Anchorage","utc_offset":"-09:00","countries":["US"]},{"id":"America/Anguilla","utc_offset":"-04:00","countries":["AI"]},{"id":"America/Antigua","utc_offset":"-04:00","countries":["AG"]},{"id":"America/Araguaina","utc_offset":"-03:00","countries":["BR"]},{"id":"America/Argentina/Buenos_Aires","utc_offset":"-03:00","countries":["AR"]},{"id":"America/Argentina/Catamarca","utc_offset":"-03:00","countries":["AR"]},{"id":"America/Argentina/Cordoba","utc_offset":"-03:00","countries":["AR"]},{"id":"America/Argentina/Jujuy","utc_offset":"-03:00","countries":["AR"]},{"id":"America/Argentina/La_Rioja","utc_offset":"-03:00","countries":["AR"]},{"id":"America/Argentina/Mendoza","utc_offset":"-03:00","countries":["AR"]},{"id":"America/Argentina/Rio_Gallegos","utc_offset":"-03:00","countries":["AR"]},{"id":"America/Argentina/Salta","utc_offset":"-03:00","countries":["AR"]},{"id":"America/Argentina/San_Juan","utc_offset":"-03:00","countries":["AR"]},{"id":"America/Argentina/San_Luis","utc_offset":"-03:00","countries":["AR"]},{"id":"America/Argentina/Tucuman","utc_offset":"-03:00","countries":["AR"]},{"id":"America/Argentina/Ushuaia","utc_offset":"-03:00","countries":["AR"]},{"id":"America/Aruba","utc_offset":"-04:00","countries":["AW"]},{"id":"America/Asuncion","utc_offset":"-04:00","countries":["PY"]},{"id":"America/AtikokLine truncated
@@ -1,6 +1,6 @@
<?xml version="1.0" encoding="UTF-8"?>
<channels>
<channel site="example.com" lang="" xmltv_id="" site_id="140">CNN International</channel>
<channel site="example.com" lang="" xmltv_id="" site_id="140">CNN International Europe</channel>
<channel site="example.com" lang="" xmltv_id="" site_id="141">CNN International</channel>
<channel site="example.com" lang="" xmltv_id="" site_id="142">Bravo</channel>
</channels>
@@ -0,0 +1,7 @@
<?xml version="1.0" encoding="UTF-8"?>
<channels site="example.com">
<channel lang="en" xmltv_id="Channel1.us" site_id="140">Channel 1</channel>
<channel lang="en" xmltv_id="Channel2.us" site_id="142" logo="https://i.imgur.com/qmRnD0M.png">Channel 2</channel>
<channel lang="fr" xmltv_id="Channel1.us" site_id="140">Channel 1</channel>
<channel lang="it" xmltv_id="Channel3.us" site_id="143">Channel 3</channel>
</channels>
@@ -0,0 +1,28 @@
module.exports = {
site: 'example.com',
days: 2,
request: {
timeout: 1000
},
url: 'https://example.com',
parser({ channel, date }) {
if (channel.xmltv_id === 'Channel2.us') return []
else if (channel.xmltv_id === 'Channel1.us' && channel.lang === 'fr') {
return [
{
title: 'Programme1 (example.com)',
start: `${date.format('YYYY-MM-DD')}T04:30:00.000Z`,
stop: `${date.format('YYYY-MM-DD')}T07:10:00.000Z`
}
]
}
return [
{
title: 'Program1 (example.com)',
start: `${date.format('YYYY-MM-DD')}T04:30:00.000Z`,
stop: `${date.format('YYYY-MM-DD')}T07:10:00.000Z`
}
]
}
}