From 7f39511ed069ebf4338f7b60f1a4e4816511b516 Mon Sep 17 00:00:00 2001
From: freearhey <7253922+freearhey@users.noreply.github.com>
Date: Wed, 22 Jan 2025 21:25:13 +0300
Subject: [PATCH] Update tests/__data__
---
tests/__data__/expected/custom_guide.xml | 17 +++++++++++++++++
tests/__data__/expected/guide.xml | 4 ++--
tests/__data__/expected/guide.xml.gz | Bin 311 -> 385 bytes
tests/__data__/expected/guide2.xml | 2 +-
.../expected/guides/en/example.com.xml | 2 +-
.../input/epg-grab/custom.channels.xml | 4 ++--
.../sites/example.com/example.com.channels.xml | 2 +-
tests/__data__/input/temp/data/channels.json | 4 +++-
8 files changed, 27 insertions(+), 8 deletions(-)
create mode 100644 tests/__data__/expected/custom_guide.xml
diff --git a/tests/__data__/expected/custom_guide.xml b/tests/__data__/expected/custom_guide.xml
new file mode 100644
index 00000000..41efdac8
--- /dev/null
+++ b/tests/__data__/expected/custom_guide.xml
@@ -0,0 +1,17 @@
+
+Custom Channel 1https://example.com
+Channel 1https://example2.com
+Custom Channel 2https://example.com
+Channel 3https://example2.com
+Channel 4https://example2.com
+Program1 (example.com)
+Programme1 (example.com)
+Programme1 (example2.com)
+Program1 (example.com)
+Programme1 (example.com)
+Programme1 (example2.com)
+Program1 (example2.com)
+Program1 (example2.com)
+Program1 (example2.com)
+Program1 (example2.com)
+
\ No newline at end of file
diff --git a/tests/__data__/expected/guide.xml b/tests/__data__/expected/guide.xml
index 242bc2ff..3de58428 100644
--- a/tests/__data__/expected/guide.xml
+++ b/tests/__data__/expected/guide.xml
@@ -1,8 +1,8 @@
Channel 1https://example.com
Channel 1https://example2.com
-Channel 2https://example.com
-Channel 3https://example2.com
+Channel 2https://example.com
+Channel 3https://example2.com
Channel 4https://example2.com
Program1 (example.com)
Programme1 (example.com)
diff --git a/tests/__data__/expected/guide.xml.gz b/tests/__data__/expected/guide.xml.gz
index 036c0841e8c552c9547db0f7f30aca24dd6fa9ad..e634dcdf7b1f693a63ccb139fc729a853a952c6f 100644
GIT binary patch
literal 385
zcmV-{0e=1;iwFP!000006U~!fOT#b}#oqg_&rO;IdA0KXd=MW5Y8pfbx
zfoG6lLSjrX%nuJ}F=ASC2}GH}tFLn$)gI=w6y8eq-qTF+eA)srMc?je?PNX*!TL*t
z_=G7dc~lrhQPZGkI(|n=WPK^pB1M*^L}4`WuE^j_P((siwQKaytGd_M_%^b-f~cbd
zNefo;GgfV-VP*6tUWDSMV3BbZYAV}Qs4z+y?NJ}~Q`A2q1MawfA~-&4f&Yc6X$yVY
zAwTO(<(N_&_`qD4t!#XO(*$D-PBF$90w0WB=ndk9-gMgXss#}w2a+{kgKL=IeJRD@
zcp4lW+fXml*V+s5%GxU=l>kG+!+lT>Ab3J4oQL`khZ8wW!E`;e|uRxK(OR2G@ukg
z=8$4a38onG>nm1lgtbxwRp#({zbDDoL(WR&Yb`z&Rv5{92@r;UoU^Udd=o`tGda=It>}mqjryr{#3_yYscgh5n_yMDYVCwE68Ioo_^u3j#94|l
z26ye!w#
Channel 1https://example.com
-Channel 2https://example.com
+Channel 2https://example.com
Program1 (example.com)
Programme1 (example.com)
Program1 (example.com)
diff --git a/tests/__data__/expected/guides/en/example.com.xml b/tests/__data__/expected/guides/en/example.com.xml
index 2d958ef6..f3550b8c 100644
--- a/tests/__data__/expected/guides/en/example.com.xml
+++ b/tests/__data__/expected/guides/en/example.com.xml
@@ -1,6 +1,6 @@
Channel 1https://example.com
-Channel 2https://example.com
+Channel 2https://example.com
Program1 (example.com)
Program1 (example.com)
\ No newline at end of file
diff --git a/tests/__data__/input/epg-grab/custom.channels.xml b/tests/__data__/input/epg-grab/custom.channels.xml
index f32419c6..9b78a7ae 100644
--- a/tests/__data__/input/epg-grab/custom.channels.xml
+++ b/tests/__data__/input/epg-grab/custom.channels.xml
@@ -1,7 +1,7 @@
- Channel 1
- Channel 2
+ Custom Channel 1
+ Custom Channel 2
Channel 1
Channel 3
Channel 4
diff --git a/tests/__data__/input/epg-grab/sites/example.com/example.com.channels.xml b/tests/__data__/input/epg-grab/sites/example.com/example.com.channels.xml
index 7f81064b..1b037f02 100644
--- a/tests/__data__/input/epg-grab/sites/example.com/example.com.channels.xml
+++ b/tests/__data__/input/epg-grab/sites/example.com/example.com.channels.xml
@@ -1,6 +1,6 @@
Channel 1
- Channel 2
+ Channel 2
Channel 1
\ No newline at end of file
diff --git a/tests/__data__/input/temp/data/channels.json b/tests/__data__/input/temp/data/channels.json
index 28255c4a..4ff2f615 100644
--- a/tests/__data__/input/temp/data/channels.json
+++ b/tests/__data__/input/temp/data/channels.json
@@ -70,5 +70,7 @@
"categories": [],
"is_nsfw": false,
"logo": "https://www.directv.com/images/logos/channels/dark/large/579.png"
- }
+ },
+ {"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":"","logo":"https://i.imgur.com/rPzH88J.png"},
+ {"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":"","logo":"https://upload.wikimedia.org/wikipedia/commons/6/64/6%27eren_2015.png"}
]
\ No newline at end of file