Update tests/__data__

This commit is contained in:
freearhey committed 2025-10-22 02:23:15 +03:00
1 parent eeac00e091
commit 926b22ad34
39 files changed
+3347 -3159

No files matched your search

@@ -0,0 +1,5 @@
<?xml version="1.0" encoding="UTF-8"?>
<channels>
<channel site="example.com" site_id="140" lang="en" xmltv_id="CNNInternational.us@MENA">CNN International</channel>
<channel site="example.com" site_id="240" lang="en" logo="https://example.com/logo.png" xmltv_id="">BBC World News</channel>
</channels>
@@ -1,5 +1,5 @@
<?xml version="1.0" encoding="UTF-8"?> <?xml version="1.0" encoding="UTF-8"?>
<channels> <channels>
<channel site="example.com" lang="en" xmltv_id="" site_id="240">BBC World News</channel> <channel site="example.com" site_id="240" lang="en" xmltv_id="">BBC World News</channel>
<channel site="example.com" lang="en" xmltv_id="CNNInternational.us@Europe" site_id="140">CNN International</channel> <channel site="example.com" site_id="140" lang="en" xmltv_id="CNNInternational.us@Europe">CNN International</channel>
</channels> </channels>
@@ -1,9 +1,12 @@
<?xml version="1.0" encoding="UTF-8" ?><tv date="20221020"> <?xml version="1.0" encoding="UTF-8" ?><tv date="20221020">
<channel id="Channel2.us"><display-name>Channel 2</display-name><icon src="https://i.imgur.com/qmRnD0M.png"/><url>https://example.com</url><lcn>36</lcn></channel> <channel id="Channel1.us@HD"><display-name>Channel 1</display-name><icon src="https://i.imgur.com/GPzH88J.png"/><url>https://example.com</url></channel>
<channel id="Channel1.us"><display-name>Channel 1</display-name><url>https://example.com</url></channel> <channel id="Channel2.us"><display-name>Channel 2</display-name><icon src="https://i.imgur.com/qmRnD0M.png"/><url>https://example.com</url><lcn>36</lcn></channel>
<channel id="Channel1.us"><display-name>Channel 1</display-name><url>https://example.com</url></channel> <channel id="140"><display-name>Channel 1</display-name><url>https://example.com</url></channel>
<programme start="20221019043000 +0000" stop="20221019071000 +0000" channel="Channel1.us"><title lang="fr">Programme1 (example.com)</title></programme> <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="20221019043100 +0000" stop="20221019071000 +0000" channel="Channel1.us"><title lang="en">Program1 (example.com)</title></programme> <programme start="20221020043000 +0000" stop="20221020071000 +0000" channel="140"><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="20221021043000 +0000" stop="20221021071000 +0000" channel="140"><title lang="fr">Programme1 (example.com)</title></programme>
<programme start="20221020043100 +0000" stop="20221020071000 +0000" channel="Channel1.us"><title lang="en">Program1 (example.com)</title></programme> <programme start="20221020043100 +0000" stop="20221020071000 +0000" channel="Channel1.us@HD"><title lang="en">Program1 (example.com)</title></programme>
<programme start="20221021043100 +0000" stop="20221021071000 +0000" channel="Channel1.us@HD"><title lang="en">Program1 (example.com)</title></programme>
<programme start="20221020043100 +0000" stop="20221020071000 +0000" channel="Channel3.us"><title lang="it">Program1 (example.com)</title></programme>
<programme start="20221021043100 +0000" stop="20221021071000 +0000" channel="Channel3.us"><title lang="it">Program1 (example.com)</title></programme>
</tv> </tv>
@@ -1,15 +1,15 @@
<?xml version="1.0" encoding="UTF-8" ?><tv date="20221020"> <?xml version="1.0" encoding="UTF-8" ?><tv date="20221020">
<channel id="Channel1.us"><display-name>Custom Channel 1</display-name><url>https://example.com</url></channel> <channel id="Channel1.us"><display-name>Custom Channel 1</display-name><icon src="https://i.imgur.com/GPzH88J.png"/><url>https://example.com</url></channel>
<channel id="Channel2.us"><display-name>Custom Channel 2</display-name><icon src="https://i.imgur.com/qmRnD0M.png"/><url>https://example.com</url></channel> <channel id="Channel2.us"><display-name>Custom Channel 2</display-name><icon src="https://i.imgur.com/qmRnD0M.png"/><url>https://example.com</url></channel>
<channel id="Channel1.us"><display-name>Channel 1</display-name><url>https://example.com</url></channel> <channel id="Channel1.us"><display-name>Channel 1</display-name><icon src="https://i.imgur.com/GPzH88J.png"/><url>https://example.com</url></channel>
<channel id="Channel3.us@Wrong"><display-name>Channel 3</display-name><icon src="https://upload.wikimedia.org/wikipedia/commons/6/64/6%27eren_2015.png"/><url>https://example2.com</url></channel> <channel id="Channel3.us@Wrong"><display-name>Channel 3</display-name><icon src="https://upload.wikimedia.org/wikipedia/commons/6/64/6%27eren_2015.png"/><url>https://example2.com</url></channel>
<channel id="Channel4.us@HD"><display-name>Channel 4</display-name><icon src="https://i.imgur.com/BPzH88J.png"/><url>https://example2.com</url></channel> <channel id="Channel4.us@HD"><display-name>Channel 4</display-name><icon src="https://i.imgur.com/BPzH88J.png"/><url>https://example2.com</url></channel>
<channel id="Channel1.us"><display-name>Channel 1</display-name><url>https://example2.com</url></channel> <channel id="Channel1.us"><display-name>Channel 1</display-name><icon src="https://i.imgur.com/GPzH88J.png"/><url>https://example2.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="20221019043100 +0000" stop="20221019071000 +0000" channel="Channel1.us"><title lang="en">Program1 (example.com)</title></programme> <programme start="20221020043100 +0000" stop="20221020071000 +0000" channel="Channel1.us"><title lang="en">Program1 (example.com)</title></programme>
<programme start="20221019044000 +0000" stop="20221019071000 +0000" channel="Channel1.us"><title lang="fr">Programme1 (example2.com)</title></programme> <programme start="20221020044000 +0000" stop="20221020071000 +0000" channel="Channel1.us"><title lang="fr">Programme1 (example2.com)</title></programme>
<programme start="20221020043000 +0000" stop="20221020071000 +0000" channel="Channel1.us"><title lang="fr">Programme1 (example.com)</title></programme> <programme start="20221021043000 +0000" stop="20221021071000 +0000" channel="Channel1.us"><title lang="fr">Programme1 (example.com)</title></programme>
<programme start="20221020043100 +0000" stop="20221020071000 +0000" channel="Channel1.us"><title lang="en">Program1 (example.com)</title></programme> <programme start="20221021043100 +0000" stop="20221021071000 +0000" channel="Channel1.us"><title lang="en">Program1 (example.com)</title></programme>
<programme start="20221019043100 +0000" stop="20221019071000 +0000" channel="Channel3.us@Wrong"><title lang="en">Program1 (example2.com)</title></programme> <programme start="20221020043100 +0000" stop="20221020071000 +0000" channel="Channel3.us@Wrong"><title lang="en">Program1 (example2.com)</title></programme>
<programme start="20221019043100 +0000" stop="20221019071000 +0000" channel="Channel4.us@HD"><title lang="en">Program1 (example2.com)</title></programme> <programme start="20221020043100 +0000" stop="20221020071000 +0000" channel="Channel4.us@HD"><title lang="en">Program1 (example2.com)</title></programme>
</tv> </tv>
@@ -1,6 +0,0 @@
<?xml version="1.0" encoding="UTF-8" ?><tv date="20221020">
<channel id="Channel2.us"><display-name>Channel 2</display-name><icon src="https://i.imgur.com/qmRnD0M.png"/><url>https://example.com</url><lcn>36</lcn></channel>
<channel id="Channel1.us"><display-name>Channel 1</display-name><url>https://example.com</url></channel>
<programme start="20221019043100 +0000" stop="20221019071000 +0000" channel="Channel1.us"><title lang="en">Program1 (example.com)</title></programme>
<programme start="20221020043100 +0000" stop="20221020071000 +0000" channel="Channel1.us"><title lang="en">Program1 (example.com)</title></programme>
</tv>
@@ -1,5 +0,0 @@
<?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>
<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>
</tv>
@@ -0,0 +1,8 @@
<?xml version="1.0" encoding="UTF-8" ?><tv date="20221020">
<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://example2.com</url></channel>
<channel id="Channel4.us@HD"><display-name>Channel 4</display-name><icon src="https://i.imgur.com/BPzH88J.png"/><url>https://example2.com</url></channel>
<channel id="Channel1.us"><display-name>Channel 1</display-name><icon src="https://i.imgur.com/GPzH88J.png"/><url>https://example2.com</url></channel>
<programme start="20221020044000 +0000" stop="20221020071000 +0000" channel="Channel1.us"><title lang="fr">Programme1 (example2.com)</title></programme>
<programme start="20221020043100 +0000" stop="20221020071000 +0000" channel="Channel3.us"><title lang="en">Program1 (example2.com)</title></programme>
<programme start="20221020043100 +0000" stop="20221020071000 +0000" channel="Channel4.us@HD"><title lang="en">Program1 (example2.com)</title></programme>
</tv>
Binary file not shown.
@@ -0,0 +1,5 @@
<?xml version="1.0" encoding="UTF-8" ?><tv date="20221020">
<channel id="140"><display-name>Channel 1</display-name><url>https://example.com</url></channel>
<programme start="20221020043000 +0000" stop="20221020071000 +0000" channel="140"><title lang="fr">Programme1 (example.com)</title></programme>
<programme start="20221021043000 +0000" stop="20221021071000 +0000" channel="140"><title lang="fr">Programme1 (example.com)</title></programme>
</tv>
@@ -1,8 +1,8 @@
<?xml version="1.0" encoding="UTF-8" ?><tv date="20221020"> <?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="140"><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> <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="140"><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="20221021043000 +0000" stop="20221021071000 +0000" channel="140"><title lang="fr">Programme1 (example.com)</title></programme>
<programme start="20221019043100 +0000" stop="20221019071000 +0000" channel="Channel3.us"><title lang="it">Program1 (example.com)</title></programme> <programme start="20221020043100 +0000" stop="20221020071000 +0000" channel="Channel3.us"><title lang="it">Program1 (example.com)</title></programme>
<programme start="20221020043100 +0000" stop="20221020071000 +0000" channel="Channel3.us"><title lang="it">Program1 (example.com)</title></programme> <programme start="20221021043100 +0000" stop="20221021071000 +0000" channel="Channel3.us"><title lang="it">Program1 (example.com)</title></programme>
</tv> </tv>
@@ -0,0 +1,18 @@
<?xml version="1.0" encoding="UTF-8" ?><tv date="20221020">
<channel id="Channel1.us@HD"><display-name>Channel 1</display-name><icon src="https://i.imgur.com/GPzH88J.png"/><url>https://example.com</url></channel>
<channel id="Channel2.us"><display-name>Channel 2</display-name><icon src="https://i.imgur.com/qmRnD0M.png"/><url>https://example.com</url><lcn>36</lcn></channel>
<channel id="140"><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>
<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://example2.com</url></channel>
<channel id="Channel4.us@HD"><display-name>Channel 4</display-name><icon src="https://i.imgur.com/BPzH88J.png"/><url>https://example2.com</url></channel>
<channel id="Channel1.us"><display-name>Channel 1</display-name><icon src="https://i.imgur.com/GPzH88J.png"/><url>https://example2.com</url></channel>
<programme start="20221020043000 +0000" stop="20221020071000 +0000" channel="140"><title lang="fr">Programme1 (example.com)</title></programme>
<programme start="20221021043000 +0000" stop="20221021071000 +0000" channel="140"><title lang="fr">Programme1 (example.com)</title></programme>
<programme start="20221020044000 +0000" stop="20221020071000 +0000" channel="Channel1.us"><title lang="fr">Programme1 (example2.com)</title></programme>
<programme start="20221020043100 +0000" stop="20221020071000 +0000" channel="Channel1.us@HD"><title lang="en">Program1 (example.com)</title></programme>
<programme start="20221021043100 +0000" stop="20221021071000 +0000" channel="Channel1.us@HD"><title lang="en">Program1 (example.com)</title></programme>
<programme start="20221020043100 +0000" stop="20221020071000 +0000" channel="Channel3.us"><title lang="en">Program1 (example2.com)</title></programme>
<programme start="20221020043100 +0000" stop="20221020071000 +0000" channel="Channel3.us"><title lang="it">Program1 (example.com)</title></programme>
<programme start="20221021043100 +0000" stop="20221021071000 +0000" channel="Channel3.us"><title lang="it">Program1 (example.com)</title></programme>
<programme start="20221020043100 +0000" stop="20221020071000 +0000" channel="Channel4.us@HD"><title lang="en">Program1 (example2.com)</title></programme>
</tv>
@@ -1,9 +0,0 @@
<?xml version="1.0" encoding="UTF-8" ?><tv date="20221020">
<channel id="Channel2.us"><display-name>Channel 2</display-name><icon src="https://i.imgur.com/qmRnD0M.png"/><url>https://example.com</url><lcn>36</lcn></channel>
<channel id="Channel1.us"><display-name>Channel 1</display-name><url>https://example.com</url></channel>
<channel id="Channel1.us"><display-name>Channel 1</display-name><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="20221019043100 +0000" stop="20221019071000 +0000" channel="Channel1.us"><title lang="en">Program1 (example.com)</title></programme>
<programme start="20221020043000 +0000" stop="20221020071000 +0000" channel="Channel1.us"><title lang="fr">Programme1 (example.com)</title></programme>
<programme start="20221020043100 +0000" stop="20221020071000 +0000" channel="Channel1.us"><title lang="en">Program1 (example.com)</title></programme>
</tv>
@@ -1,15 +0,0 @@
<?xml version="1.0" encoding="UTF-8" ?><tv date="20221020">
<channel id="Channel2.us"><display-name>Channel 2</display-name><icon src="https://i.imgur.com/qmRnD0M.png"/><url>https://example.com</url><lcn>36</lcn></channel>
<channel id="Channel1.us"><display-name>Channel 1</display-name><url>https://example.com</url></channel>
<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://example2.com</url></channel>
<channel id="Channel4.us@HD"><display-name>Channel 4</display-name><icon src="https://i.imgur.com/BPzH88J.png"/><url>https://example2.com</url></channel>
<channel id="Channel1.us"><display-name>Channel 1</display-name><url>https://example2.com</url></channel>
<programme start="20221019043000 +0000" stop="20221019071000 +0000" channel="Channel1.us"><title lang="fr">Programme1 (example.com)</title></programme>
<programme start="20221019043100 +0000" stop="20221019071000 +0000" channel="Channel1.us"><title lang="en">Program1 (example.com)</title></programme>
<programme start="20221019044000 +0000" stop="20221019071000 +0000" channel="Channel1.us"><title lang="fr">Programme1 (example2.com)</title></programme>
<programme start="20221020043000 +0000" stop="20221020071000 +0000" channel="Channel1.us"><title lang="fr">Programme1 (example.com)</title></programme>
<programme start="20221020043100 +0000" stop="20221020071000 +0000" channel="Channel1.us"><title lang="en">Program1 (example.com)</title></programme>
<programme start="20221019043100 +0000" stop="20221019071000 +0000" channel="Channel3.us"><title lang="en">Program1 (example2.com)</title></programme>
<programme start="20221019043100 +0000" stop="20221019071000 +0000" channel="Channel4.us@HD"><title lang="en">Program1 (example2.com)</title></programme>
</tv>
@@ -0,0 +1,6 @@
<?xml version="1.0" encoding="UTF-8" ?><tv date="20221020">
<channel id="Channel1.us@HD"><display-name>Channel 1</display-name><icon src="https://i.imgur.com/GPzH88J.png"/><url>https://example.com</url></channel>
<channel id="Channel2.us"><display-name>Channel 2</display-name><icon src="https://i.imgur.com/qmRnD0M.png"/><url>https://example.com</url><lcn>36</lcn></channel>
<programme start="20221020043100 +0000" stop="20221020071000 +0000" channel="Channel1.us@HD"><title lang="en">Program1 (example.com)</title></programme>
<programme start="20221021043100 +0000" stop="20221021071000 +0000" channel="Channel1.us@HD"><title lang="en">Program1 (example.com)</title></programme>
</tv>
@@ -0,0 +1,5 @@
<?xml version="1.0" encoding="UTF-8" ?><tv date="20221020">
<channel id="140"><display-name>Channel 1</display-name><url>https://example.com</url></channel>
<programme start="20221020043000 +0000" stop="20221020071000 +0000" channel="140"><title lang="fr">Programme1 (example.com)</title></programme>
<programme start="20221021043000 +0000" stop="20221021071000 +0000" channel="140"><title lang="fr">Programme1 (example.com)</title></programme>
</tv>
@@ -0,0 +1,5 @@
<?xml version="1.0" encoding="UTF-8" ?><tv date="20221020">
<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="20221020043100 +0000" stop="20221020071000 +0000" channel="Channel3.us"><title lang="it">Program1 (example.com)</title></programme>
<programme start="20221021043100 +0000" stop="20221021071000 +0000" channel="Channel3.us"><title lang="it">Program1 (example.com)</title></programme>
</tv>
@@ -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":""}
]
-4
View File
@@ -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
View 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
View File
@@ -0,0 +1 @@
[]
@@ -1,58 +1,72 @@
[ [
{ {
"channel": "CNNInternational.us", "channel": "CNNInternational.us",
"id": "SD", "id": "SD",
"name": "SD", "name": "SD",
"is_main": true, "is_main": true,
"broadcast_area": [ "broadcast_area": [
"r/INT" "r/INT"
], ],
"timezones": [ "timezones": [
"America/New_York" "America/New_York"
], ],
"languages": [], "languages": [],
"video_format": "480i" "video_format": "480i"
}, },
{ {
"channel": "CNNInternational.us", "channel": "CNNInternational.us",
"id": "Europe", "id": "Europe",
"name": "Europe", "name": "Europe",
"is_main": false, "is_main": false,
"broadcast_area": [ "broadcast_area": [
"r/EUR" "r/EUR"
], ],
"timezones": [ "timezones": [
"America/New_York" "America/New_York"
], ],
"languages": [], "languages": [],
"video_format": "480i" "video_format": "480i"
}, },
{ {
"channel": "Bravo.us", "channel": "Bravo.us",
"id": "East", "id": "East",
"name": "East", "name": "East",
"is_main": true, "is_main": true,
"broadcast_area": [ "broadcast_area": [
"r/EUR" "r/EUR"
], ],
"timezones": [ "timezones": [
"America/New_York" "America/New_York"
], ],
"languages": [], "languages": [],
"video_format": "480i" "video_format": "480i"
}, },
{ {
"channel": "Channel4.us", "channel": "Channel1.us",
"id": "HD", "id": "HD",
"name": "HD", "name": "HD",
"is_main": true, "is_main": false,
"broadcast_area": [ "broadcast_area": [
"r/EUR" "r/EUR"
], ],
"timezones": [ "timezones": [
"America/New_York" "America/New_York"
], ],
"languages": [], "languages": [],
"video_format": "480i" "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", "channel": "CNNInternational.us",
"feed": "SD", "feed": "SD",
"site": "9tv.co.il", "site": "9tv.co.il",
"site_id": "#", "site_id": "#",
"site_name": "CNN (guide)", "site_name": "CNN (guide)",
"lang": "en" "lang": "en"
} }
] ]
+29
View 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", "channel": "CNNInternational.us",
"feed": "SD", "feed": "SD",
"url": "https://live.relentlessinnovations.net:1936/imantv/imantv/playlist.m3u8", "url": "https://live.relentlessinnovations.net:1936/imantv/imantv/playlist.m3u8",
"referrer": null, "referrer": null,
"user_agent": null, "user_agent": null,
"quality": "480p" "quality": "480p"
} }
] ]
@@ -1,352 +1,352 @@
[ [
{ {
"country": "CA", "country": "CA",
"name": "Alberta", "name": "Alberta",
"code": "CA-AB" "code": "CA-AB"
}, },
{ {
"country": "CA", "country": "CA",
"name": "British Columbia", "name": "British Columbia",
"code": "CA-BC" "code": "CA-BC"
}, },
{ {
"country": "CA", "country": "CA",
"name": "Manitoba", "name": "Manitoba",
"code": "CA-MB" "code": "CA-MB"
}, },
{ {
"country": "CA", "country": "CA",
"name": "New Brunswick", "name": "New Brunswick",
"code": "CA-NB" "code": "CA-NB"
}, },
{ {
"country": "CA", "country": "CA",
"name": "Newfoundland and Labrador", "name": "Newfoundland and Labrador",
"code": "CA-NL" "code": "CA-NL"
}, },
{ {
"country": "CA", "country": "CA",
"name": "Northwest Territories", "name": "Northwest Territories",
"code": "CA-NT" "code": "CA-NT"
}, },
{ {
"country": "CA", "country": "CA",
"name": "Nova Scotia", "name": "Nova Scotia",
"code": "CA-NS" "code": "CA-NS"
}, },
{ {
"country": "CA", "country": "CA",
"name": "Nunavut", "name": "Nunavut",
"code": "CA-NU" "code": "CA-NU"
}, },
{ {
"country": "CA", "country": "CA",
"name": "Ontario", "name": "Ontario",
"code": "CA-ON" "code": "CA-ON"
}, },
{ {
"country": "CA", "country": "CA",
"name": "Prince Edward Island", "name": "Prince Edward Island",
"code": "CA-PE" "code": "CA-PE"
}, },
{ {
"country": "CA", "country": "CA",
"name": "Quebec", "name": "Quebec",
"code": "CA-QC" "code": "CA-QC"
}, },
{ {
"country": "CA", "country": "CA",
"name": "Saskatchewan", "name": "Saskatchewan",
"code": "CA-SK" "code": "CA-SK"
}, },
{ {
"country": "CA", "country": "CA",
"name": "Yukon", "name": "Yukon",
"code": "CA-YT" "code": "CA-YT"
}, },
{ {
"country": "US", "country": "US",
"name": "Alabama", "name": "Alabama",
"code": "US-AL" "code": "US-AL"
}, },
{ {
"country": "US", "country": "US",
"name": "Alaska", "name": "Alaska",
"code": "US-AK" "code": "US-AK"
}, },
{ {
"country": "US", "country": "US",
"name": "American Samoa", "name": "American Samoa",
"code": "US-AS" "code": "US-AS"
}, },
{ {
"country": "US", "country": "US",
"name": "Arizona", "name": "Arizona",
"code": "US-AZ" "code": "US-AZ"
}, },
{ {
"country": "US", "country": "US",
"name": "Arkansas", "name": "Arkansas",
"code": "US-AR" "code": "US-AR"
}, },
{ {
"country": "US", "country": "US",
"name": "California", "name": "California",
"code": "US-CA" "code": "US-CA"
}, },
{ {
"country": "US", "country": "US",
"name": "Colorado", "name": "Colorado",
"code": "US-CO" "code": "US-CO"
}, },
{ {
"country": "US", "country": "US",
"name": "Connecticut", "name": "Connecticut",
"code": "US-CT" "code": "US-CT"
}, },
{ {
"country": "US", "country": "US",
"name": "Delaware", "name": "Delaware",
"code": "US-DE" "code": "US-DE"
}, },
{ {
"country": "US", "country": "US",
"name": "District of Columbia", "name": "District of Columbia",
"code": "US-DC" "code": "US-DC"
}, },
{ {
"country": "US", "country": "US",
"name": "Florida", "name": "Florida",
"code": "US-FL" "code": "US-FL"
}, },
{ {
"country": "US", "country": "US",
"name": "Georgia", "name": "Georgia",
"code": "US-GA" "code": "US-GA"
}, },
{ {
"country": "US", "country": "US",
"name": "Guam", "name": "Guam",
"code": "US-GU" "code": "US-GU"
}, },
{ {
"country": "US", "country": "US",
"name": "Hawaii", "name": "Hawaii",
"code": "US-HI" "code": "US-HI"
}, },
{ {
"country": "US", "country": "US",
"name": "Idaho", "name": "Idaho",
"code": "US-ID" "code": "US-ID"
}, },
{ {
"country": "US", "country": "US",
"name": "Illinois", "name": "Illinois",
"code": "US-IL" "code": "US-IL"
}, },
{ {
"country": "US", "country": "US",
"name": "Indiana", "name": "Indiana",
"code": "US-IN" "code": "US-IN"
}, },
{ {
"country": "US", "country": "US",
"name": "Iowa", "name": "Iowa",
"code": "US-IA" "code": "US-IA"
}, },
{ {
"country": "US", "country": "US",
"name": "Kansas", "name": "Kansas",
"code": "US-KS" "code": "US-KS"
}, },
{ {
"country": "US", "country": "US",
"name": "Kentucky", "name": "Kentucky",
"code": "US-KY" "code": "US-KY"
}, },
{ {
"country": "US", "country": "US",
"name": "Louisiana", "name": "Louisiana",
"code": "US-LA" "code": "US-LA"
}, },
{ {
"country": "US", "country": "US",
"name": "Maine", "name": "Maine",
"code": "US-ME" "code": "US-ME"
}, },
{ {
"country": "US", "country": "US",
"name": "Maryland", "name": "Maryland",
"code": "US-MD" "code": "US-MD"
}, },
{ {
"country": "US", "country": "US",
"name": "Massachusetts", "name": "Massachusetts",
"code": "US-MA" "code": "US-MA"
}, },
{ {
"country": "US", "country": "US",
"name": "Michigan", "name": "Michigan",
"code": "US-MI" "code": "US-MI"
}, },
{ {
"country": "US", "country": "US",
"name": "Minnesota", "name": "Minnesota",
"code": "US-MN" "code": "US-MN"
}, },
{ {
"country": "US", "country": "US",
"name": "Mississippi", "name": "Mississippi",
"code": "US-MS" "code": "US-MS"
}, },
{ {
"country": "US", "country": "US",
"name": "Missouri", "name": "Missouri",
"code": "US-MO" "code": "US-MO"
}, },
{ {
"country": "US", "country": "US",
"name": "Montana", "name": "Montana",
"code": "US-MT" "code": "US-MT"
}, },
{ {
"country": "US", "country": "US",
"name": "Nebraska", "name": "Nebraska",
"code": "US-NE" "code": "US-NE"
}, },
{ {
"country": "US", "country": "US",
"name": "Nevada", "name": "Nevada",
"code": "US-NV" "code": "US-NV"
}, },
{ {
"country": "US", "country": "US",
"name": "New Hampshire", "name": "New Hampshire",
"code": "US-NH" "code": "US-NH"
}, },
{ {
"country": "US", "country": "US",
"name": "New Jersey", "name": "New Jersey",
"code": "US-NJ" "code": "US-NJ"
}, },
{ {
"country": "US", "country": "US",
"name": "New Mexico", "name": "New Mexico",
"code": "US-NM" "code": "US-NM"
}, },
{ {
"country": "US", "country": "US",
"name": "New York", "name": "New York",
"code": "US-NY" "code": "US-NY"
}, },
{ {
"country": "US", "country": "US",
"name": "North Carolina", "name": "North Carolina",
"code": "US-NC" "code": "US-NC"
}, },
{ {
"country": "US", "country": "US",
"name": "North Dakota", "name": "North Dakota",
"code": "US-ND" "code": "US-ND"
}, },
{ {
"country": "US", "country": "US",
"name": "Northern Mariana Islands", "name": "Northern Mariana Islands",
"code": "US-MP" "code": "US-MP"
}, },
{ {
"country": "US", "country": "US",
"name": "Ohio", "name": "Ohio",
"code": "US-OH" "code": "US-OH"
}, },
{ {
"country": "US", "country": "US",
"name": "Oklahoma", "name": "Oklahoma",
"code": "US-OK" "code": "US-OK"
}, },
{ {
"country": "US", "country": "US",
"name": "Oregon", "name": "Oregon",
"code": "US-OR" "code": "US-OR"
}, },
{ {
"country": "US", "country": "US",
"name": "Pennsylvania", "name": "Pennsylvania",
"code": "US-PA" "code": "US-PA"
}, },
{ {
"country": "US", "country": "US",
"name": "Puerto Rico", "name": "Puerto Rico",
"code": "US-PR" "code": "US-PR"
}, },
{ {
"country": "US", "country": "US",
"name": "Rhode Island", "name": "Rhode Island",
"code": "US-RI" "code": "US-RI"
}, },
{ {
"country": "US", "country": "US",
"name": "South Carolina", "name": "South Carolina",
"code": "US-SC" "code": "US-SC"
}, },
{ {
"country": "US", "country": "US",
"name": "South Dakota", "name": "South Dakota",
"code": "US-SD" "code": "US-SD"
}, },
{ {
"country": "US", "country": "US",
"name": "Tennessee", "name": "Tennessee",
"code": "US-TN" "code": "US-TN"
}, },
{ {
"country": "US", "country": "US",
"name": "Texas", "name": "Texas",
"code": "US-TX" "code": "US-TX"
}, },
{ {
"country": "US", "country": "US",
"name": "U.S. Virgin Islands", "name": "U.S. Virgin Islands",
"code": "US-VI" "code": "US-VI"
}, },
{ {
"country": "US", "country": "US",
"name": "United States Minor Outlying Islands", "name": "United States Minor Outlying Islands",
"code": "US-UM" "code": "US-UM"
}, },
{ {
"country": "US", "country": "US",
"name": "Utah", "name": "Utah",
"code": "US-UT" "code": "US-UT"
}, },
{ {
"country": "US", "country": "US",
"name": "Vermont", "name": "Vermont",
"code": "US-VT" "code": "US-VT"
}, },
{ {
"country": "US", "country": "US",
"name": "Virginia", "name": "Virginia",
"code": "US-VA" "code": "US-VA"
}, },
{ {
"country": "US", "country": "US",
"name": "Washington", "name": "Washington",
"code": "US-WA" "code": "US-WA"
}, },
{ {
"country": "US", "country": "US",
"name": "West Virginia", "name": "West Virginia",
"code": "US-WV" "code": "US-WV"
}, },
{ {
"country": "US", "country": "US",
"name": "Wisconsin", "name": "Wisconsin",
"code": "US-WI" "code": "US-WI"
}, },
{ {
"country": "US", "country": "US",
"name": "Wyoming", "name": "Wyoming",
"code": "US-WY" "code": "US-WY"
} }
] ]
@@ -1,9 +1,9 @@
<?xml version="1.0" encoding="UTF-8"?> <?xml version="1.0" encoding="UTF-8"?>
<channels> <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="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="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="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="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="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> <channel site="example2.com" lang="fr" xmltv_id="Channel1.us" site_id="140">Channel 1</channel>
</channels> </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"?> <?xml version="1.0" encoding="UTF-8"?>
<channels site="example.com"> <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@HD" site_id="140">Channel 1</channel>
<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" lcn="36">Channel 2</channel>
<channel lang="fr" xmltv_id="Channel1.us" site_id="140">Channel 1</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> </channels>
@@ -1,28 +1,28 @@
module.exports = { module.exports = {
site: 'example.com', site: 'example.com',
days: 2, days: 2,
request: { request: {
timeout: 1000 timeout: 1000
}, },
url: 'https://example.com', url: 'https://example.com',
parser({ channel, date }) { parser({ channel, date }) {
if (channel.xmltv_id === 'Channel2.us') return [] if (channel.xmltv_id === 'Channel2.us') return []
else if (channel.xmltv_id === 'Channel1.us' && channel.lang === 'fr') { else if (channel.lang === 'fr') {
return [ return [
{ {
title: 'Programme1 (example.com)', title: 'Programme1 (example.com)',
start: `${date.format('YYYY-MM-DD')}T04:30:00.000Z`, start: `${date.format('YYYY-MM-DD')}T04:30:00.000Z`,
stop: `${date.format('YYYY-MM-DD')}T07:10:00.000Z` stop: `${date.format('YYYY-MM-DD')}T07:10:00.000Z`
} }
] ]
} }
return [ return [
{ {
title: 'Program1 (example.com)', title: 'Program1 (example.com)',
start: `${date.format('YYYY-MM-DD')}T04:31:00.000Z`, start: `${date.format('YYYY-MM-DD')}T04:31:00.000Z`,
stop: `${date.format('YYYY-MM-DD')}T07:10:00.000Z` stop: `${date.format('YYYY-MM-DD')}T07:10:00.000Z`
} }
] ]
} }
} }
File diff suppressed because it is too large. Load diff