diff --git a/assets/channels.txt b/assets/channels.txt
new file mode 100644
index 0000000..c1a3107
--- /dev/null
+++ b/assets/channels.txt
@@ -0,0 +1,2 @@
+我的視頻,#genre#
+尼亚加拉瀑布,https://cdn.pixabay.com/video/2019/11/04/28707-371213524_large.mp4
diff --git a/statics/mytv/index.html b/statics/mytv/index.html
index f712a83..ad2d8d0 100644
--- a/statics/mytv/index.html
+++ b/statics/mytv/index.html
@@ -69,8 +69,8 @@
我的电视·服务
-
组,#genre#
-标题,index.m3u8
+
组名,#genre#
+标题,视频地址
diff --git a/statics/mytv/index.js b/statics/mytv/index.js
index 2959eb1..98d1d3f 100644
--- a/statics/mytv/index.js
+++ b/statics/mytv/index.js
@@ -108,11 +108,17 @@ const read = async (file, extension) => {
line = line.trim();
if (line.startsWith('#EXTINF')) {
const infos = line.split(',');
- const title = infos.pop()
+ const title = infos.pop();
+
+ const nameMatchResult = infos[0]?.match(nameRegex);
+ const name = nameMatchResult ? nameMatchResult[1] : '';
+
+ const logoMatchResult = infos[0]?.match(logRegex);
+ const logo = logoMatchResult ? logoMatchResult[1] : '';
list.push({
- name: infos[0]?.match(nameRegex)[1],
+ name: name,
group: infos[0]?.match(groupRegex)[1],
- logo: infos[0]?.match(logRegex)[1],
+ logo: logo,
title: title,
uris: [lines[lines.indexOf(line) + 1]]
})