mirror of
https://github.com/iptv-org/epg
synced 2026-04-25 12:07:00 -04:00
Update tests/__data__
This commit is contained in:
@@ -1,61 +0,0 @@
|
||||
[
|
||||
{
|
||||
"id": "Bravo.us",
|
||||
"name": "Bravo",
|
||||
"network": null,
|
||||
"country": "US",
|
||||
"subdivision": null,
|
||||
"city": null,
|
||||
"categories": [],
|
||||
"is_nsfw": false,
|
||||
"closed": "2020-01-01",
|
||||
"replaced_by": "R6.co"
|
||||
},
|
||||
{
|
||||
"id": "Bravos.us",
|
||||
"name": "Bravos",
|
||||
"network": null,
|
||||
"country": "US",
|
||||
"subdivision": null,
|
||||
"city": null,
|
||||
"categories": [],
|
||||
"is_nsfw": false
|
||||
},
|
||||
{
|
||||
"id": "CNNInternational.us",
|
||||
"name": "CNN International",
|
||||
"alt_names": ["CNN", "CNN Int"],
|
||||
"network": null,
|
||||
"country": "US",
|
||||
"subdivision": null,
|
||||
"city": null,
|
||||
"categories": [
|
||||
"news"
|
||||
],
|
||||
"is_nsfw": false
|
||||
},
|
||||
{
|
||||
"id": "MNetMovies2.za",
|
||||
"name": "M-Net Movies 2",
|
||||
"network": null,
|
||||
"country": "ZA",
|
||||
"subdivision": null,
|
||||
"city": null,
|
||||
"categories": [],
|
||||
"is_nsfw": false
|
||||
},
|
||||
{"id":"6eren.dk","name":"6'eren","alt_names":[],"network":null,"owners":["Warner Bros. Discovery EMEA"],"country":"DK","subdivision":null,"city":null,"broadcast_area":["c/DK"],"languages":["dan"],"categories":[],"is_nsfw":false,"launched":"2009-01-01","closed":null,"replaced_by":null,"website":"http://www.6-eren.dk/"},
|
||||
{"id":"BBCNews.uk","name":"BBC News","alt_names":[],"network":null,"owners":[],"country":"UK","subdivision":null,"city":null,"broadcast_area":["c/UK"],"languages":["eng"],"categories":["news"],"is_nsfw":false,"launched":null,"closed":null,"replaced_by":null,"website":"http://news.bbc.co.uk/"},
|
||||
{
|
||||
"id": "CNN.us",
|
||||
"name": "CNN",
|
||||
"network": null,
|
||||
"country": "US",
|
||||
"subdivision": null,
|
||||
"city": null,
|
||||
"categories": [],
|
||||
"is_nsfw": false
|
||||
},
|
||||
{"id":"Channel2.us","name":"Channel 2 [API]","alt_names":[],"network":null,"owners":[],"country":"UK","subdivision":null,"city":null,"broadcast_area":["c/US"],"languages":["eng"],"categories":[],"is_nsfw":false,"launched":null,"closed":null,"replaced_by":null,"website":""},
|
||||
{"id":"Channel3.us","name":"Channel 3 [API]","alt_names":[],"network":null,"owners":[],"country":"UK","subdivision":null,"city":null,"broadcast_area":["c/US"],"languages":["eng"],"categories":[],"is_nsfw":false,"launched":null,"closed":null,"replaced_by":null,"website":""}
|
||||
]
|
||||
@@ -1,4 +0,0 @@
|
||||
[
|
||||
{"channel":"Channel3.us","feed":null,"tags":[],"width":334,"height":210,"format":"PNG","url":"https://upload.wikimedia.org/wikipedia/commons/6/64/6%27eren_2015.png"},
|
||||
{"channel":"Channel4.us","feed":"HD","tags":[],"width":334,"height":210,"format":"PNG","url":"https://i.imgur.com/BPzH88J.png"}
|
||||
]
|
||||
@@ -0,0 +1,5 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<channels>
|
||||
<channel site="example.com" xmltv_id="wrong_id" site_id="240" lang="en" logo="https://example.com/logo.png">BBC World News</channel>
|
||||
<channel site="example.com" lang="en" xmltv_id="CNNInternational.us" site_id="140" >CNN International</channel>
|
||||
</channels>
|
||||
138
tests/__data__/input/data/channels.json
Normal file
138
tests/__data__/input/data/channels.json
Normal file
@@ -0,0 +1,138 @@
|
||||
[
|
||||
{
|
||||
"id": "Bravo.us",
|
||||
"name": "Bravo",
|
||||
"network": null,
|
||||
"country": "US",
|
||||
"categories": [],
|
||||
"is_nsfw": false,
|
||||
"closed": "2020-01-01",
|
||||
"replaced_by": "R6.co"
|
||||
},
|
||||
{
|
||||
"id": "Bravos.us",
|
||||
"name": "Bravos",
|
||||
"network": null,
|
||||
"country": "US",
|
||||
"categories": [],
|
||||
"is_nsfw": false
|
||||
},
|
||||
{
|
||||
"id": "CNNInternational.us",
|
||||
"name": "CNN International",
|
||||
"alt_names": [
|
||||
"CNN",
|
||||
"CNN Int"
|
||||
],
|
||||
"network": null,
|
||||
"country": "US",
|
||||
"categories": [
|
||||
"news"
|
||||
],
|
||||
"is_nsfw": false
|
||||
},
|
||||
{
|
||||
"id": "MNetMovies2.za",
|
||||
"name": "M-Net Movies 2",
|
||||
"network": null,
|
||||
"country": "ZA",
|
||||
"categories": [],
|
||||
"is_nsfw": false
|
||||
},
|
||||
{
|
||||
"id": "6eren.dk",
|
||||
"name": "6'eren",
|
||||
"alt_names": [],
|
||||
"network": null,
|
||||
"owners": [
|
||||
"Warner Bros. Discovery EMEA"
|
||||
],
|
||||
"country": "DK",
|
||||
"categories": [],
|
||||
"is_nsfw": false,
|
||||
"launched": "2009-01-01",
|
||||
"closed": null,
|
||||
"replaced_by": null,
|
||||
"website": "http://www.6-eren.dk/"
|
||||
},
|
||||
{
|
||||
"id": "BBCNews.uk",
|
||||
"name": "BBC News",
|
||||
"alt_names": [],
|
||||
"network": null,
|
||||
"owners": [],
|
||||
"country": "UK",
|
||||
"categories": [
|
||||
"news"
|
||||
],
|
||||
"is_nsfw": false,
|
||||
"launched": null,
|
||||
"closed": null,
|
||||
"replaced_by": null,
|
||||
"website": "http://news.bbc.co.uk/"
|
||||
},
|
||||
{
|
||||
"id": "CNN.us",
|
||||
"name": "CNN",
|
||||
"network": null,
|
||||
"country": "US",
|
||||
"categories": [],
|
||||
"is_nsfw": false
|
||||
},
|
||||
{
|
||||
"id": "Channel1.us",
|
||||
"name": "Channel 1",
|
||||
"alt_names": [],
|
||||
"network": null,
|
||||
"owners": [],
|
||||
"country": "US",
|
||||
"categories": [],
|
||||
"is_nsfw": false,
|
||||
"launched": null,
|
||||
"closed": null,
|
||||
"replaced_by": null,
|
||||
"website": ""
|
||||
},
|
||||
{
|
||||
"id": "Channel2.us",
|
||||
"name": "Channel 2",
|
||||
"alt_names": [],
|
||||
"network": null,
|
||||
"owners": [],
|
||||
"country": "UK",
|
||||
"categories": [],
|
||||
"is_nsfw": false,
|
||||
"launched": null,
|
||||
"closed": null,
|
||||
"replaced_by": null,
|
||||
"website": ""
|
||||
},
|
||||
{
|
||||
"id": "Channel3.us",
|
||||
"name": "Channel 3",
|
||||
"alt_names": [],
|
||||
"network": null,
|
||||
"owners": [],
|
||||
"country": "UK",
|
||||
"categories": [],
|
||||
"is_nsfw": false,
|
||||
"launched": null,
|
||||
"closed": null,
|
||||
"replaced_by": null,
|
||||
"website": ""
|
||||
},
|
||||
{
|
||||
"id": "Channel4.us",
|
||||
"name": "Channel 4",
|
||||
"alt_names": [],
|
||||
"network": null,
|
||||
"owners": [],
|
||||
"country": "UK",
|
||||
"categories": [],
|
||||
"is_nsfw": false,
|
||||
"launched": null,
|
||||
"closed": null,
|
||||
"replaced_by": null,
|
||||
"website": ""
|
||||
}
|
||||
]
|
||||
1
tests/__data__/input/data/cities.json
Normal file
1
tests/__data__/input/data/cities.json
Normal file
@@ -0,0 +1 @@
|
||||
[]
|
||||
@@ -1,58 +1,72 @@
|
||||
[
|
||||
{
|
||||
"channel": "CNNInternational.us",
|
||||
"id": "SD",
|
||||
"name": "SD",
|
||||
"is_main": true,
|
||||
"broadcast_area": [
|
||||
"r/INT"
|
||||
],
|
||||
"timezones": [
|
||||
"America/New_York"
|
||||
],
|
||||
"languages": [],
|
||||
"video_format": "480i"
|
||||
},
|
||||
{
|
||||
"channel": "CNNInternational.us",
|
||||
"id": "Europe",
|
||||
"name": "Europe",
|
||||
"is_main": false,
|
||||
"broadcast_area": [
|
||||
"r/EUR"
|
||||
],
|
||||
"timezones": [
|
||||
"America/New_York"
|
||||
],
|
||||
"languages": [],
|
||||
"video_format": "480i"
|
||||
},
|
||||
{
|
||||
"channel": "Bravo.us",
|
||||
"id": "East",
|
||||
"name": "East",
|
||||
"is_main": true,
|
||||
"broadcast_area": [
|
||||
"r/EUR"
|
||||
],
|
||||
"timezones": [
|
||||
"America/New_York"
|
||||
],
|
||||
"languages": [],
|
||||
"video_format": "480i"
|
||||
},
|
||||
{
|
||||
"channel": "Channel4.us",
|
||||
"id": "HD",
|
||||
"name": "HD",
|
||||
"is_main": true,
|
||||
"broadcast_area": [
|
||||
"r/EUR"
|
||||
],
|
||||
"timezones": [
|
||||
"America/New_York"
|
||||
],
|
||||
"languages": [],
|
||||
"video_format": "480i"
|
||||
}
|
||||
[
|
||||
{
|
||||
"channel": "CNNInternational.us",
|
||||
"id": "SD",
|
||||
"name": "SD",
|
||||
"is_main": true,
|
||||
"broadcast_area": [
|
||||
"r/INT"
|
||||
],
|
||||
"timezones": [
|
||||
"America/New_York"
|
||||
],
|
||||
"languages": [],
|
||||
"video_format": "480i"
|
||||
},
|
||||
{
|
||||
"channel": "CNNInternational.us",
|
||||
"id": "Europe",
|
||||
"name": "Europe",
|
||||
"is_main": false,
|
||||
"broadcast_area": [
|
||||
"r/EUR"
|
||||
],
|
||||
"timezones": [
|
||||
"America/New_York"
|
||||
],
|
||||
"languages": [],
|
||||
"video_format": "480i"
|
||||
},
|
||||
{
|
||||
"channel": "Bravo.us",
|
||||
"id": "East",
|
||||
"name": "East",
|
||||
"is_main": true,
|
||||
"broadcast_area": [
|
||||
"r/EUR"
|
||||
],
|
||||
"timezones": [
|
||||
"America/New_York"
|
||||
],
|
||||
"languages": [],
|
||||
"video_format": "480i"
|
||||
},
|
||||
{
|
||||
"channel": "Channel1.us",
|
||||
"id": "HD",
|
||||
"name": "HD",
|
||||
"is_main": false,
|
||||
"broadcast_area": [
|
||||
"r/EUR"
|
||||
],
|
||||
"timezones": [
|
||||
"America/New_York"
|
||||
],
|
||||
"languages": [],
|
||||
"video_format": "480i"
|
||||
},
|
||||
{
|
||||
"channel": "Channel4.us",
|
||||
"id": "HD",
|
||||
"name": "HD",
|
||||
"is_main": true,
|
||||
"broadcast_area": [
|
||||
"r/EUR"
|
||||
],
|
||||
"timezones": [
|
||||
"America/New_York"
|
||||
],
|
||||
"languages": [],
|
||||
"video_format": "480i"
|
||||
}
|
||||
]
|
||||
@@ -1,10 +1,10 @@
|
||||
[
|
||||
{
|
||||
"channel": "CNNInternational.us",
|
||||
"feed": "SD",
|
||||
"site": "9tv.co.il",
|
||||
"site_id": "#",
|
||||
"site_name": "CNN (guide)",
|
||||
"lang": "en"
|
||||
}
|
||||
[
|
||||
{
|
||||
"channel": "CNNInternational.us",
|
||||
"feed": "SD",
|
||||
"site": "9tv.co.il",
|
||||
"site_id": "#",
|
||||
"site_name": "CNN (guide)",
|
||||
"lang": "en"
|
||||
}
|
||||
]
|
||||
29
tests/__data__/input/data/logos.json
Normal file
29
tests/__data__/input/data/logos.json
Normal file
@@ -0,0 +1,29 @@
|
||||
[
|
||||
{
|
||||
"channel": "Channel3.us",
|
||||
"feed": null,
|
||||
"tags": [],
|
||||
"width": 334,
|
||||
"height": 210,
|
||||
"format": "PNG",
|
||||
"url": "https://upload.wikimedia.org/wikipedia/commons/6/64/6%27eren_2015.png"
|
||||
},
|
||||
{
|
||||
"channel": "Channel4.us",
|
||||
"feed": "HD",
|
||||
"tags": [],
|
||||
"width": 334,
|
||||
"height": 210,
|
||||
"format": "PNG",
|
||||
"url": "https://i.imgur.com/BPzH88J.png"
|
||||
},
|
||||
{
|
||||
"channel": "Channel1.us",
|
||||
"feed": null,
|
||||
"tags": [],
|
||||
"width": 334,
|
||||
"height": 210,
|
||||
"format": "PNG",
|
||||
"url": "https://i.imgur.com/GPzH88J.png"
|
||||
}
|
||||
]
|
||||
@@ -1,10 +1,10 @@
|
||||
[
|
||||
{
|
||||
"channel": "CNNInternational.us",
|
||||
"feed": "SD",
|
||||
"url": "https://live.relentlessinnovations.net:1936/imantv/imantv/playlist.m3u8",
|
||||
"referrer": null,
|
||||
"user_agent": null,
|
||||
"quality": "480p"
|
||||
}
|
||||
[
|
||||
{
|
||||
"channel": "CNNInternational.us",
|
||||
"feed": "SD",
|
||||
"url": "https://live.relentlessinnovations.net:1936/imantv/imantv/playlist.m3u8",
|
||||
"referrer": null,
|
||||
"user_agent": null,
|
||||
"quality": "480p"
|
||||
}
|
||||
]
|
||||
@@ -1,352 +1,352 @@
|
||||
[
|
||||
{
|
||||
"country": "CA",
|
||||
"name": "Alberta",
|
||||
"code": "CA-AB"
|
||||
},
|
||||
{
|
||||
"country": "CA",
|
||||
"name": "British Columbia",
|
||||
"code": "CA-BC"
|
||||
},
|
||||
{
|
||||
"country": "CA",
|
||||
"name": "Manitoba",
|
||||
"code": "CA-MB"
|
||||
},
|
||||
{
|
||||
"country": "CA",
|
||||
"name": "New Brunswick",
|
||||
"code": "CA-NB"
|
||||
},
|
||||
{
|
||||
"country": "CA",
|
||||
"name": "Newfoundland and Labrador",
|
||||
"code": "CA-NL"
|
||||
},
|
||||
{
|
||||
"country": "CA",
|
||||
"name": "Northwest Territories",
|
||||
"code": "CA-NT"
|
||||
},
|
||||
{
|
||||
"country": "CA",
|
||||
"name": "Nova Scotia",
|
||||
"code": "CA-NS"
|
||||
},
|
||||
{
|
||||
"country": "CA",
|
||||
"name": "Nunavut",
|
||||
"code": "CA-NU"
|
||||
},
|
||||
{
|
||||
"country": "CA",
|
||||
"name": "Ontario",
|
||||
"code": "CA-ON"
|
||||
},
|
||||
{
|
||||
"country": "CA",
|
||||
"name": "Prince Edward Island",
|
||||
"code": "CA-PE"
|
||||
},
|
||||
{
|
||||
"country": "CA",
|
||||
"name": "Quebec",
|
||||
"code": "CA-QC"
|
||||
},
|
||||
{
|
||||
"country": "CA",
|
||||
"name": "Saskatchewan",
|
||||
"code": "CA-SK"
|
||||
},
|
||||
{
|
||||
"country": "CA",
|
||||
"name": "Yukon",
|
||||
"code": "CA-YT"
|
||||
},
|
||||
{
|
||||
"country": "US",
|
||||
"name": "Alabama",
|
||||
"code": "US-AL"
|
||||
},
|
||||
{
|
||||
"country": "US",
|
||||
"name": "Alaska",
|
||||
"code": "US-AK"
|
||||
},
|
||||
{
|
||||
"country": "US",
|
||||
"name": "American Samoa",
|
||||
"code": "US-AS"
|
||||
},
|
||||
{
|
||||
"country": "US",
|
||||
"name": "Arizona",
|
||||
"code": "US-AZ"
|
||||
},
|
||||
{
|
||||
"country": "US",
|
||||
"name": "Arkansas",
|
||||
"code": "US-AR"
|
||||
},
|
||||
{
|
||||
"country": "US",
|
||||
"name": "California",
|
||||
"code": "US-CA"
|
||||
},
|
||||
{
|
||||
"country": "US",
|
||||
"name": "Colorado",
|
||||
"code": "US-CO"
|
||||
},
|
||||
{
|
||||
"country": "US",
|
||||
"name": "Connecticut",
|
||||
"code": "US-CT"
|
||||
},
|
||||
{
|
||||
"country": "US",
|
||||
"name": "Delaware",
|
||||
"code": "US-DE"
|
||||
},
|
||||
{
|
||||
"country": "US",
|
||||
"name": "District of Columbia",
|
||||
"code": "US-DC"
|
||||
},
|
||||
{
|
||||
"country": "US",
|
||||
"name": "Florida",
|
||||
"code": "US-FL"
|
||||
},
|
||||
{
|
||||
"country": "US",
|
||||
"name": "Georgia",
|
||||
"code": "US-GA"
|
||||
},
|
||||
{
|
||||
"country": "US",
|
||||
"name": "Guam",
|
||||
"code": "US-GU"
|
||||
},
|
||||
{
|
||||
"country": "US",
|
||||
"name": "Hawaii",
|
||||
"code": "US-HI"
|
||||
},
|
||||
{
|
||||
"country": "US",
|
||||
"name": "Idaho",
|
||||
"code": "US-ID"
|
||||
},
|
||||
{
|
||||
"country": "US",
|
||||
"name": "Illinois",
|
||||
"code": "US-IL"
|
||||
},
|
||||
{
|
||||
"country": "US",
|
||||
"name": "Indiana",
|
||||
"code": "US-IN"
|
||||
},
|
||||
{
|
||||
"country": "US",
|
||||
"name": "Iowa",
|
||||
"code": "US-IA"
|
||||
},
|
||||
{
|
||||
"country": "US",
|
||||
"name": "Kansas",
|
||||
"code": "US-KS"
|
||||
},
|
||||
{
|
||||
"country": "US",
|
||||
"name": "Kentucky",
|
||||
"code": "US-KY"
|
||||
},
|
||||
{
|
||||
"country": "US",
|
||||
"name": "Louisiana",
|
||||
"code": "US-LA"
|
||||
},
|
||||
{
|
||||
"country": "US",
|
||||
"name": "Maine",
|
||||
"code": "US-ME"
|
||||
},
|
||||
{
|
||||
"country": "US",
|
||||
"name": "Maryland",
|
||||
"code": "US-MD"
|
||||
},
|
||||
{
|
||||
"country": "US",
|
||||
"name": "Massachusetts",
|
||||
"code": "US-MA"
|
||||
},
|
||||
{
|
||||
"country": "US",
|
||||
"name": "Michigan",
|
||||
"code": "US-MI"
|
||||
},
|
||||
{
|
||||
"country": "US",
|
||||
"name": "Minnesota",
|
||||
"code": "US-MN"
|
||||
},
|
||||
{
|
||||
"country": "US",
|
||||
"name": "Mississippi",
|
||||
"code": "US-MS"
|
||||
},
|
||||
{
|
||||
"country": "US",
|
||||
"name": "Missouri",
|
||||
"code": "US-MO"
|
||||
},
|
||||
{
|
||||
"country": "US",
|
||||
"name": "Montana",
|
||||
"code": "US-MT"
|
||||
},
|
||||
{
|
||||
"country": "US",
|
||||
"name": "Nebraska",
|
||||
"code": "US-NE"
|
||||
},
|
||||
{
|
||||
"country": "US",
|
||||
"name": "Nevada",
|
||||
"code": "US-NV"
|
||||
},
|
||||
{
|
||||
"country": "US",
|
||||
"name": "New Hampshire",
|
||||
"code": "US-NH"
|
||||
},
|
||||
{
|
||||
"country": "US",
|
||||
"name": "New Jersey",
|
||||
"code": "US-NJ"
|
||||
},
|
||||
{
|
||||
"country": "US",
|
||||
"name": "New Mexico",
|
||||
"code": "US-NM"
|
||||
},
|
||||
{
|
||||
"country": "US",
|
||||
"name": "New York",
|
||||
"code": "US-NY"
|
||||
},
|
||||
{
|
||||
"country": "US",
|
||||
"name": "North Carolina",
|
||||
"code": "US-NC"
|
||||
},
|
||||
{
|
||||
"country": "US",
|
||||
"name": "North Dakota",
|
||||
"code": "US-ND"
|
||||
},
|
||||
{
|
||||
"country": "US",
|
||||
"name": "Northern Mariana Islands",
|
||||
"code": "US-MP"
|
||||
},
|
||||
{
|
||||
"country": "US",
|
||||
"name": "Ohio",
|
||||
"code": "US-OH"
|
||||
},
|
||||
{
|
||||
"country": "US",
|
||||
"name": "Oklahoma",
|
||||
"code": "US-OK"
|
||||
},
|
||||
{
|
||||
"country": "US",
|
||||
"name": "Oregon",
|
||||
"code": "US-OR"
|
||||
},
|
||||
{
|
||||
"country": "US",
|
||||
"name": "Pennsylvania",
|
||||
"code": "US-PA"
|
||||
},
|
||||
{
|
||||
"country": "US",
|
||||
"name": "Puerto Rico",
|
||||
"code": "US-PR"
|
||||
},
|
||||
{
|
||||
"country": "US",
|
||||
"name": "Rhode Island",
|
||||
"code": "US-RI"
|
||||
},
|
||||
{
|
||||
"country": "US",
|
||||
"name": "South Carolina",
|
||||
"code": "US-SC"
|
||||
},
|
||||
{
|
||||
"country": "US",
|
||||
"name": "South Dakota",
|
||||
"code": "US-SD"
|
||||
},
|
||||
{
|
||||
"country": "US",
|
||||
"name": "Tennessee",
|
||||
"code": "US-TN"
|
||||
},
|
||||
{
|
||||
"country": "US",
|
||||
"name": "Texas",
|
||||
"code": "US-TX"
|
||||
},
|
||||
{
|
||||
"country": "US",
|
||||
"name": "U.S. Virgin Islands",
|
||||
"code": "US-VI"
|
||||
},
|
||||
{
|
||||
"country": "US",
|
||||
"name": "United States Minor Outlying Islands",
|
||||
"code": "US-UM"
|
||||
},
|
||||
{
|
||||
"country": "US",
|
||||
"name": "Utah",
|
||||
"code": "US-UT"
|
||||
},
|
||||
{
|
||||
"country": "US",
|
||||
"name": "Vermont",
|
||||
"code": "US-VT"
|
||||
},
|
||||
{
|
||||
"country": "US",
|
||||
"name": "Virginia",
|
||||
"code": "US-VA"
|
||||
},
|
||||
{
|
||||
"country": "US",
|
||||
"name": "Washington",
|
||||
"code": "US-WA"
|
||||
},
|
||||
{
|
||||
"country": "US",
|
||||
"name": "West Virginia",
|
||||
"code": "US-WV"
|
||||
},
|
||||
{
|
||||
"country": "US",
|
||||
"name": "Wisconsin",
|
||||
"code": "US-WI"
|
||||
},
|
||||
{
|
||||
"country": "US",
|
||||
"name": "Wyoming",
|
||||
"code": "US-WY"
|
||||
}
|
||||
[
|
||||
{
|
||||
"country": "CA",
|
||||
"name": "Alberta",
|
||||
"code": "CA-AB"
|
||||
},
|
||||
{
|
||||
"country": "CA",
|
||||
"name": "British Columbia",
|
||||
"code": "CA-BC"
|
||||
},
|
||||
{
|
||||
"country": "CA",
|
||||
"name": "Manitoba",
|
||||
"code": "CA-MB"
|
||||
},
|
||||
{
|
||||
"country": "CA",
|
||||
"name": "New Brunswick",
|
||||
"code": "CA-NB"
|
||||
},
|
||||
{
|
||||
"country": "CA",
|
||||
"name": "Newfoundland and Labrador",
|
||||
"code": "CA-NL"
|
||||
},
|
||||
{
|
||||
"country": "CA",
|
||||
"name": "Northwest Territories",
|
||||
"code": "CA-NT"
|
||||
},
|
||||
{
|
||||
"country": "CA",
|
||||
"name": "Nova Scotia",
|
||||
"code": "CA-NS"
|
||||
},
|
||||
{
|
||||
"country": "CA",
|
||||
"name": "Nunavut",
|
||||
"code": "CA-NU"
|
||||
},
|
||||
{
|
||||
"country": "CA",
|
||||
"name": "Ontario",
|
||||
"code": "CA-ON"
|
||||
},
|
||||
{
|
||||
"country": "CA",
|
||||
"name": "Prince Edward Island",
|
||||
"code": "CA-PE"
|
||||
},
|
||||
{
|
||||
"country": "CA",
|
||||
"name": "Quebec",
|
||||
"code": "CA-QC"
|
||||
},
|
||||
{
|
||||
"country": "CA",
|
||||
"name": "Saskatchewan",
|
||||
"code": "CA-SK"
|
||||
},
|
||||
{
|
||||
"country": "CA",
|
||||
"name": "Yukon",
|
||||
"code": "CA-YT"
|
||||
},
|
||||
{
|
||||
"country": "US",
|
||||
"name": "Alabama",
|
||||
"code": "US-AL"
|
||||
},
|
||||
{
|
||||
"country": "US",
|
||||
"name": "Alaska",
|
||||
"code": "US-AK"
|
||||
},
|
||||
{
|
||||
"country": "US",
|
||||
"name": "American Samoa",
|
||||
"code": "US-AS"
|
||||
},
|
||||
{
|
||||
"country": "US",
|
||||
"name": "Arizona",
|
||||
"code": "US-AZ"
|
||||
},
|
||||
{
|
||||
"country": "US",
|
||||
"name": "Arkansas",
|
||||
"code": "US-AR"
|
||||
},
|
||||
{
|
||||
"country": "US",
|
||||
"name": "California",
|
||||
"code": "US-CA"
|
||||
},
|
||||
{
|
||||
"country": "US",
|
||||
"name": "Colorado",
|
||||
"code": "US-CO"
|
||||
},
|
||||
{
|
||||
"country": "US",
|
||||
"name": "Connecticut",
|
||||
"code": "US-CT"
|
||||
},
|
||||
{
|
||||
"country": "US",
|
||||
"name": "Delaware",
|
||||
"code": "US-DE"
|
||||
},
|
||||
{
|
||||
"country": "US",
|
||||
"name": "District of Columbia",
|
||||
"code": "US-DC"
|
||||
},
|
||||
{
|
||||
"country": "US",
|
||||
"name": "Florida",
|
||||
"code": "US-FL"
|
||||
},
|
||||
{
|
||||
"country": "US",
|
||||
"name": "Georgia",
|
||||
"code": "US-GA"
|
||||
},
|
||||
{
|
||||
"country": "US",
|
||||
"name": "Guam",
|
||||
"code": "US-GU"
|
||||
},
|
||||
{
|
||||
"country": "US",
|
||||
"name": "Hawaii",
|
||||
"code": "US-HI"
|
||||
},
|
||||
{
|
||||
"country": "US",
|
||||
"name": "Idaho",
|
||||
"code": "US-ID"
|
||||
},
|
||||
{
|
||||
"country": "US",
|
||||
"name": "Illinois",
|
||||
"code": "US-IL"
|
||||
},
|
||||
{
|
||||
"country": "US",
|
||||
"name": "Indiana",
|
||||
"code": "US-IN"
|
||||
},
|
||||
{
|
||||
"country": "US",
|
||||
"name": "Iowa",
|
||||
"code": "US-IA"
|
||||
},
|
||||
{
|
||||
"country": "US",
|
||||
"name": "Kansas",
|
||||
"code": "US-KS"
|
||||
},
|
||||
{
|
||||
"country": "US",
|
||||
"name": "Kentucky",
|
||||
"code": "US-KY"
|
||||
},
|
||||
{
|
||||
"country": "US",
|
||||
"name": "Louisiana",
|
||||
"code": "US-LA"
|
||||
},
|
||||
{
|
||||
"country": "US",
|
||||
"name": "Maine",
|
||||
"code": "US-ME"
|
||||
},
|
||||
{
|
||||
"country": "US",
|
||||
"name": "Maryland",
|
||||
"code": "US-MD"
|
||||
},
|
||||
{
|
||||
"country": "US",
|
||||
"name": "Massachusetts",
|
||||
"code": "US-MA"
|
||||
},
|
||||
{
|
||||
"country": "US",
|
||||
"name": "Michigan",
|
||||
"code": "US-MI"
|
||||
},
|
||||
{
|
||||
"country": "US",
|
||||
"name": "Minnesota",
|
||||
"code": "US-MN"
|
||||
},
|
||||
{
|
||||
"country": "US",
|
||||
"name": "Mississippi",
|
||||
"code": "US-MS"
|
||||
},
|
||||
{
|
||||
"country": "US",
|
||||
"name": "Missouri",
|
||||
"code": "US-MO"
|
||||
},
|
||||
{
|
||||
"country": "US",
|
||||
"name": "Montana",
|
||||
"code": "US-MT"
|
||||
},
|
||||
{
|
||||
"country": "US",
|
||||
"name": "Nebraska",
|
||||
"code": "US-NE"
|
||||
},
|
||||
{
|
||||
"country": "US",
|
||||
"name": "Nevada",
|
||||
"code": "US-NV"
|
||||
},
|
||||
{
|
||||
"country": "US",
|
||||
"name": "New Hampshire",
|
||||
"code": "US-NH"
|
||||
},
|
||||
{
|
||||
"country": "US",
|
||||
"name": "New Jersey",
|
||||
"code": "US-NJ"
|
||||
},
|
||||
{
|
||||
"country": "US",
|
||||
"name": "New Mexico",
|
||||
"code": "US-NM"
|
||||
},
|
||||
{
|
||||
"country": "US",
|
||||
"name": "New York",
|
||||
"code": "US-NY"
|
||||
},
|
||||
{
|
||||
"country": "US",
|
||||
"name": "North Carolina",
|
||||
"code": "US-NC"
|
||||
},
|
||||
{
|
||||
"country": "US",
|
||||
"name": "North Dakota",
|
||||
"code": "US-ND"
|
||||
},
|
||||
{
|
||||
"country": "US",
|
||||
"name": "Northern Mariana Islands",
|
||||
"code": "US-MP"
|
||||
},
|
||||
{
|
||||
"country": "US",
|
||||
"name": "Ohio",
|
||||
"code": "US-OH"
|
||||
},
|
||||
{
|
||||
"country": "US",
|
||||
"name": "Oklahoma",
|
||||
"code": "US-OK"
|
||||
},
|
||||
{
|
||||
"country": "US",
|
||||
"name": "Oregon",
|
||||
"code": "US-OR"
|
||||
},
|
||||
{
|
||||
"country": "US",
|
||||
"name": "Pennsylvania",
|
||||
"code": "US-PA"
|
||||
},
|
||||
{
|
||||
"country": "US",
|
||||
"name": "Puerto Rico",
|
||||
"code": "US-PR"
|
||||
},
|
||||
{
|
||||
"country": "US",
|
||||
"name": "Rhode Island",
|
||||
"code": "US-RI"
|
||||
},
|
||||
{
|
||||
"country": "US",
|
||||
"name": "South Carolina",
|
||||
"code": "US-SC"
|
||||
},
|
||||
{
|
||||
"country": "US",
|
||||
"name": "South Dakota",
|
||||
"code": "US-SD"
|
||||
},
|
||||
{
|
||||
"country": "US",
|
||||
"name": "Tennessee",
|
||||
"code": "US-TN"
|
||||
},
|
||||
{
|
||||
"country": "US",
|
||||
"name": "Texas",
|
||||
"code": "US-TX"
|
||||
},
|
||||
{
|
||||
"country": "US",
|
||||
"name": "U.S. Virgin Islands",
|
||||
"code": "US-VI"
|
||||
},
|
||||
{
|
||||
"country": "US",
|
||||
"name": "United States Minor Outlying Islands",
|
||||
"code": "US-UM"
|
||||
},
|
||||
{
|
||||
"country": "US",
|
||||
"name": "Utah",
|
||||
"code": "US-UT"
|
||||
},
|
||||
{
|
||||
"country": "US",
|
||||
"name": "Vermont",
|
||||
"code": "US-VT"
|
||||
},
|
||||
{
|
||||
"country": "US",
|
||||
"name": "Virginia",
|
||||
"code": "US-VA"
|
||||
},
|
||||
{
|
||||
"country": "US",
|
||||
"name": "Washington",
|
||||
"code": "US-WA"
|
||||
},
|
||||
{
|
||||
"country": "US",
|
||||
"name": "West Virginia",
|
||||
"code": "US-WV"
|
||||
},
|
||||
{
|
||||
"country": "US",
|
||||
"name": "Wisconsin",
|
||||
"code": "US-WI"
|
||||
},
|
||||
{
|
||||
"country": "US",
|
||||
"name": "Wyoming",
|
||||
"code": "US-WY"
|
||||
}
|
||||
]
|
||||
@@ -1,9 +1,9 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<channels>
|
||||
<channel site="example.com" lang="en" xmltv_id="Channel1.us" site_id="140">Custom Channel 1</channel>
|
||||
<channel site="example.com" lang="en" xmltv_id="Channel2.us" site_id="142" logo="https://i.imgur.com/qmRnD0M.png">Custom Channel 2</channel>
|
||||
<channel site="example.com" lang="fr" xmltv_id="Channel1.us" site_id="140">Channel 1</channel>
|
||||
<channel site="example2.com" lang="en" xmltv_id="Channel3.us@Wrong" site_id="150">Channel 3</channel>
|
||||
<channel site="example2.com" lang="en" xmltv_id="Channel4.us@HD" site_id="152">Channel 4</channel>
|
||||
<channel site="example2.com" lang="fr" xmltv_id="Channel1.us" site_id="140">Channel 1</channel>
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<channels>
|
||||
<channel site="example.com" lang="en" xmltv_id="Channel1.us" site_id="140">Custom Channel 1</channel>
|
||||
<channel site="example.com" lang="en" xmltv_id="Channel2.us" site_id="142" logo="https://i.imgur.com/qmRnD0M.png">Custom Channel 2</channel>
|
||||
<channel site="example.com" lang="fr" xmltv_id="Channel1.us" site_id="140">Channel 1</channel>
|
||||
<channel site="example2.com" lang="en" xmltv_id="Channel3.us@Wrong" site_id="150">Channel 3</channel>
|
||||
<channel site="example2.com" lang="en" xmltv_id="Channel4.us@HD" site_id="152">Channel 4</channel>
|
||||
<channel site="example2.com" lang="fr" xmltv_id="Channel1.us" site_id="140">Channel 1</channel>
|
||||
</channels>
|
||||
@@ -1,7 +0,0 @@
|
||||
<?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>
|
||||
@@ -1,28 +0,0 @@
|
||||
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:31:00.000Z`,
|
||||
stop: `${date.format('YYYY-MM-DD')}T07:10:00.000Z`
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
||||
@@ -1,6 +1,7 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<channels site="example.com">
|
||||
<channel lang="en" xmltv_id="Channel2.us" site_id="142" logo="https://i.imgur.com/qmRnD0M.png" lcn="36">Channel 2</channel>
|
||||
<channel lang="en" xmltv_id="Channel1.us" site_id="140">Channel 1</channel>
|
||||
<channel lang="fr" xmltv_id="Channel1.us" site_id="140">Channel 1</channel>
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<channels site="example.com">
|
||||
<channel lang="en" xmltv_id="Channel1.us@HD" site_id="140">Channel 1</channel>
|
||||
<channel lang="en" xmltv_id="Channel2.us" site_id="142" logo="https://i.imgur.com/qmRnD0M.png" lcn="36">Channel 2</channel>
|
||||
<channel lang="fr" xmltv_id="" site_id="140">Channel 1</channel>
|
||||
<channel lang="it" xmltv_id="Channel3.us" site_id="143">Channel 3</channel>
|
||||
</channels>
|
||||
@@ -1,28 +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:31:00.000Z`,
|
||||
stop: `${date.format('YYYY-MM-DD')}T07:10:00.000Z`
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
||||
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.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:31:00.000Z`,
|
||||
stop: `${date.format('YYYY-MM-DD')}T07:10:00.000Z`
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
||||
|
||||
File diff suppressed because it is too large
Load Diff
Reference in New Issue
Block a user