Last active 1 month ago

imyip's Avatar imyip revised this gist 4 months ago. Go to revision

1 file changed, 6 insertions, 12 deletions

live.json

@@ -10,8 +10,10 @@
10 10 {
11 11 "name": "内地电视频道(备用1)",
12 12 "type": 3,
13 - "api": "https://raw.githubusercontent.com/n3rddd/N3RD/6b0282f56d6cf963958a8ca5210adcd07de4bfbf/JN/PY/live/live_kzb.py",
14 - "ext": "68747470733a2f2f6a7a62356b716c6e2e6875616a69616564752e636f6d2f70726f642d6170692f697074762f676574497074764c697374"
13 + "api": "https://gist.imyip.net/imyip/fedc4aa0b3bd4d5eb9d39637a2929f25/raw/HEAD/live_kzb.py",
14 + "ext": {
15 + "host": "https://jzb5kqln.huajiaedu.com"
16 + }
15 17 },
16 18 {
17 19 "name": "内地电视频道(备用2)",
@@ -58,18 +60,10 @@
58 60 "ua": "okhttp/3.15",
59 61 "epg": "https://iptv.crestekk.cn/epgphp/?ch={name}&date={date}"
60 62 },
61 - {
62 - "name": "快直播(python)",
63 - "type": 3,
64 - "api": "https://d.kstore.dev/download/14756/python/live_kzb.py",
65 - "ext": {
66 - "host": "https://jzb5kqln.huajiaedu.com"
67 - }
68 - },
69 63 {
70 64 "name": "(翻墙)BeeSport直播(python)",
71 65 "type": 3,
72 - "api": "https://d.kstore.dev/download/14756/python/live_beesport.py",
66 + "api": "https://gist.imyip.net/imyip/fedc4aa0b3bd4d5eb9d39637a2929f25/raw/HEAD/live_beesport.py",
73 67 "ext": {},
74 68 "header": {
75 69 "Referer": "https://p.m82xg4z0cdbz7.com"
@@ -78,7 +72,7 @@
78 72 {
79 73 "name": "(翻墙)SMT直播(python)",
80 74 "type": 3,
81 - "api": "https://d.kstore.dev/download/14756/python/live_smt.py",
75 + "api": "https://gist.imyip.net/imyip/fedc4aa0b3bd4d5eb9d39637a2929f25/raw/HEAD/live_smt.py",
82 76 "ext": {},
83 77 "header": {
84 78 "CLIENT-IP": "127.0.0.1",

imyip's Avatar imyip revised this gist 4 months ago. Go to revision

5 files changed, 124 insertions, 292 deletions

live_beesport.py

Diff is too large to be shown

live_kzb.py(file created)

@@ -0,0 +1,76 @@
1 + # -*- coding: utf-8 -*-
2 + # @Author : Doubebly
3 + # @Time : 2025/5/22 20:23
4 +
5 + import sys
6 + import requests
7 + import json
8 + sys.path.append('..')
9 + from base.spider import Spider
10 +
11 +
12 + class Spider(Spider):
13 + def getName(self):
14 + return "Kzb"
15 +
16 + def init(self, extend):
17 + self.extend = json.loads(extend)
18 + pass
19 +
20 + def getDependence(self):
21 + return []
22 +
23 + def isVideoFormat(self, url):
24 + pass
25 +
26 + def manualVideoCheck(self):
27 + pass
28 +
29 +
30 + def liveContent(self, url):
31 + keys = ['578', '579', '580', '581', '582', '583', '584', '585', '586', '587', '588', '589', '590', '591', '592', '593', '594', '595', '596', '597', '598', '599', '600', '601', '602', '603', '604', '605', '606', '607', '608', '609', '610', '611', '612', '613', '614', '615', '616', '617', '618', '619', '620', '621', '622', '623', '624']
32 + values = {}
33 + headers = {
34 + 'User-Agent': "Mozilla/5.0 (Linux; Android 10; K) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/136.0.0.0 Mobile Safari/537.36 EdgA/136.0.0.0"
35 + }
36 + response = requests.get(self.extend['host'] + "/prod-api/iptv/getIptvList?liveType=0&deviceType=1", headers=headers)
37 + for i in response.json()['list']:
38 + values[str(i['id'])] = i
39 + tv_list = ['#EXTM3U']
40 + for ii in keys:
41 + c = values[ii]
42 + name = c['play_source_name']
43 + group_name = '卫视频道' if '卫视' in name else '央视频道'
44 + tv_list.append(f'#EXTINF:-1 tvg-id="" tvg-name="" tvg-logo="https://live.fanmingming.cn/tv/{name}.png" group-title="{group_name}",{name}')
45 + tv_list.append(c['play_source_url'])
46 + return '\n'.join(tv_list)
47 +
48 + def homeContent(self, filter):
49 + return {}
50 +
51 + def homeVideoContent(self):
52 + return {}
53 +
54 + def categoryContent(self, cid, page, filter, ext):
55 + return {}
56 +
57 + def detailContent(self, did):
58 + return {}
59 +
60 + def searchContent(self, key, quick, page='1'):
61 + return {}
62 +
63 + def searchContentPage(self, keywords, quick, page):
64 + return {}
65 +
66 + def playerContent(self, flag, pid, vipFlags):
67 + return {}
68 +
69 + def localProxy(self, params):
70 + return {}
71 +
72 + def destroy(self):
73 + return '正在Destroy'
74 +
75 + if __name__ == '__main__':
76 + pass

live_litv.py (file deleted)

Diff is too large to be shown

live_smt.py

Diff is too large to be shown

live_tvfix.py (file deleted)

@@ -1,71 +0,0 @@
1 - # -*- coding: utf-8 -*-
2 - # @Author : Doubebly
3 - # @Time : 2025/3/23 21:55
4 - # import base64
5 - import sys
6 - import time
7 - import json
8 - import requests
9 - sys.path.append('..')
10 - from base.spider import Spider
11 -
12 -
13 - class Spider(Spider):
14 - def getName(self):
15 - return "Tvfix"
16 -
17 - def init(self, extend):
18 - pass
19 -
20 - def getDependence(self):
21 - return []
22 -
23 - def isVideoFormat(self, url):
24 - pass
25 -
26 - def manualVideoCheck(self):
27 - pass
28 -
29 -
30 - def liveContent(self, url):
31 - url = 'https://iptv.tvfix.org/channels.json'
32 - headers = {'User-Agent': 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/135.0.0.0 Safari/537.36'}
33 - response = requests.get(url, headers=headers)
34 - tv_list = json.loads(response.content)
35 - d = ['#EXTM3U']
36 - for i in tv_list['Categories']:
37 - for ii in i['Channels']:
38 - d.append(f"#EXTINF:-1 tvg-id=\"{ii['Vid']}\" tvg-name=\"{ii['Name']}\" group-title=\"{i['Name']}\",{ii['Name']}")
39 - d.append(f'https://live.tvfix.org/live/{i["Vid"]}/index.m3u8')
40 - return '\n'.join(d)
41 -
42 - def homeContent(self, filter):
43 - return {}
44 -
45 - def homeVideoContent(self):
46 - return {}
47 -
48 - def categoryContent(self, cid, page, filter, ext):
49 - return {}
50 -
51 - def detailContent(self, did):
52 - return {}
53 -
54 - def searchContent(self, key, quick, page='1'):
55 - return {}
56 -
57 - def searchContentPage(self, keywords, quick, page):
58 - return {}
59 -
60 - def playerContent(self, flag, pid, vipFlags):
61 - return {}
62 -
63 - def localProxy(self, params):
64 - return [302, "text/plain", None, {'Location': 'https://sf1-cdn-tos.huoshanstatic.com/obj/media-fe/xgplayer_doc_video/mp4/xgplayer-demo-720p.mp4'}]
65 -
66 -
67 - def destroy(self):
68 - return '正在Destroy'
69 -
70 - if __name__ == '__main__':
71 - pass

imyip's Avatar imyip revised this gist 4 months ago. Go to revision

1 file changed, 12 deletions

live.json

@@ -37,18 +37,6 @@
37 37 "type": 0,
38 38 "playerType": 1
39 39 },
40 - {
41 - "name": "台湾频道",
42 - "api": "csp_MQiTV",
43 - "ext": [
44 - {
45 - "name": "59",
46 - "url": "https://59.125.210.231:4433"
47 - }
48 - ],
49 - "epg": "http://iptv.52sw.top:668/?ch={name}&date={date}",
50 - "logo": "https://epg.112114.xyz/logo/{name}.png"
51 - },
52 40 {
53 41 "name": "备用1",
54 42 "type": 0,

imyip's Avatar imyip revised this gist 4 months ago. Go to revision

1 file changed, 31 insertions, 30 deletions

live.json

@@ -1,19 +1,19 @@
1 1 {
2 2 "spider": "https://github.com/FongMi/CatVodSpider/raw/refs/heads/main/jar/custom_spider.jar",
3 3 "lives": [
4 - {
4 + {
5 5 "name": "内地电视频道",
6 6 "url": "https://mursor.ottiptv.cc/iptv.m3u",
7 7 "type": 0,
8 8 "playerType": 1
9 - },
9 + },
10 10 {
11 11 "name": "内地电视频道(备用1)",
12 12 "type": 3,
13 13 "api": "https://raw.githubusercontent.com/n3rddd/N3RD/6b0282f56d6cf963958a8ca5210adcd07de4bfbf/JN/PY/live/live_kzb.py",
14 14 "ext": "68747470733a2f2f6a7a62356b716c6e2e6875616a69616564752e636f6d2f70726f642d6170692f697074762f676574497074764c697374"
15 - },
16 - {
15 + },
16 + {
17 17 "name": "内地电视频道(备用2)",
18 18 "url": "https://raw.githubusercontent.com/develop202/migu_video/refs/heads/main/interface.txt",
19 19 "type": 0,
@@ -70,31 +70,32 @@
70 70 "ua": "okhttp/3.15",
71 71 "epg": "https://iptv.crestekk.cn/epgphp/?ch={name}&date={date}"
72 72 },
73 - {
74 - "name": "快直播(python)",
75 - "type": 3,
76 - "api": "https://d.kstore.dev/download/14756/python/live_kzb.py",
77 - "ext": {
78 - "host": "https://jzb5kqln.huajiaedu.com"
79 - }
80 - },
81 - {
82 - "name": "(翻墙)BeeSport直播(python)",
83 - "type": 3,
84 - "api": "https://d.kstore.dev/download/14756/python/live_beesport.py",
85 - "ext": {},
86 - "header": {
87 - "Referer": "https://p.m82xg4z0cdbz7.com"
88 - }
89 - },
90 - {
91 - "name": "(翻墙)SMT直播(python)",
92 - "type": 3,
93 - "api": "https://d.kstore.dev/download/14756/python/live_smt.py",
94 - "ext": {},
95 - "header": {
96 - "CLIENT-IP": "127.0.0.1",
97 - "X-FORWARDED-FOR": "127.0.0.1"
98 - }
73 + {
74 + "name": "快直播(python)",
75 + "type": 3,
76 + "api": "https://d.kstore.dev/download/14756/python/live_kzb.py",
77 + "ext": {
78 + "host": "https://jzb5kqln.huajiaedu.com"
79 + }
80 + },
81 + {
82 + "name": "(翻墙)BeeSport直播(python)",
83 + "type": 3,
84 + "api": "https://d.kstore.dev/download/14756/python/live_beesport.py",
85 + "ext": {},
86 + "header": {
87 + "Referer": "https://p.m82xg4z0cdbz7.com"
88 + }
89 + },
90 + {
91 + "name": "(翻墙)SMT直播(python)",
92 + "type": 3,
93 + "api": "https://d.kstore.dev/download/14756/python/live_smt.py",
94 + "ext": {},
95 + "header": {
96 + "CLIENT-IP": "127.0.0.1",
97 + "X-FORWARDED-FOR": "127.0.0.1"
98 + }
99 + }
99 100 ]
100 101 }

imyip's Avatar imyip revised this gist 4 months ago. Go to revision

1 file changed, 36 insertions, 4 deletions

live.json

@@ -1,14 +1,20 @@
1 1 {
2 2 "spider": "https://github.com/FongMi/CatVodSpider/raw/refs/heads/main/jar/custom_spider.jar",
3 3 "lives": [
4 - {
4 + {
5 5 "name": "内地电视频道",
6 + "url": "https://mursor.ottiptv.cc/iptv.m3u",
7 + "type": 0,
8 + "playerType": 1
9 + },
10 + {
11 + "name": "内地电视频道(备用1)",
6 12 "type": 3,
7 13 "api": "https://raw.githubusercontent.com/n3rddd/N3RD/6b0282f56d6cf963958a8ca5210adcd07de4bfbf/JN/PY/live/live_kzb.py",
8 14 "ext": "68747470733a2f2f6a7a62356b716c6e2e6875616a69616564752e636f6d2f70726f642d6170692f697074762f676574497074764c697374"
9 - },
15 + },
10 16 {
11 - "name": "内地电视频道(备用1)",
17 + "name": "内地电视频道(备用2)",
12 18 "url": "https://raw.githubusercontent.com/develop202/migu_video/refs/heads/main/interface.txt",
13 19 "type": 0,
14 20 "playerType": 1
@@ -63,6 +69,32 @@
63 69 "url": "https://pastebin.com/raw/rmGTuRZL",
64 70 "ua": "okhttp/3.15",
65 71 "epg": "https://iptv.crestekk.cn/epgphp/?ch={name}&date={date}"
66 - }
72 + },
73 + {
74 + "name": "快直播(python)",
75 + "type": 3,
76 + "api": "https://d.kstore.dev/download/14756/python/live_kzb.py",
77 + "ext": {
78 + "host": "https://jzb5kqln.huajiaedu.com"
79 + }
80 + },
81 + {
82 + "name": "(翻墙)BeeSport直播(python)",
83 + "type": 3,
84 + "api": "https://d.kstore.dev/download/14756/python/live_beesport.py",
85 + "ext": {},
86 + "header": {
87 + "Referer": "https://p.m82xg4z0cdbz7.com"
88 + }
89 + },
90 + {
91 + "name": "(翻墙)SMT直播(python)",
92 + "type": 3,
93 + "api": "https://d.kstore.dev/download/14756/python/live_smt.py",
94 + "ext": {},
95 + "header": {
96 + "CLIENT-IP": "127.0.0.1",
97 + "X-FORWARDED-FOR": "127.0.0.1"
98 + }
67 99 ]
68 100 }

imyip's Avatar imyip revised this gist 4 months ago. Go to revision

1 file changed, 15 deletions

live.json

@@ -31,12 +31,6 @@
31 31 "type": 0,
32 32 "playerType": 1
33 33 },
34 - {
35 - "name": "TVFIX",
36 - "type": 3,
37 - "api": "https://gist.imyip.net/imyip/fedc4aa0b3bd4d5eb9d39637a2929f25/raw/HEAD/live_tvfix.py",
38 - "ext": {}
39 - },
40 34 {
41 35 "name": "台湾频道",
42 36 "api": "csp_MQiTV",
@@ -69,15 +63,6 @@
69 63 "url": "https://pastebin.com/raw/rmGTuRZL",
70 64 "ua": "okhttp/3.15",
71 65 "epg": "https://iptv.crestekk.cn/epgphp/?ch={name}&date={date}"
72 - },
73 - {
74 - "name": "BeeSport直播",
75 - "type": 3,
76 - "api": "https://gist.imyip.net/imyip/fedc4aa0b3bd4d5eb9d39637a2929f25/raw/HEAD/live_beesport.py",
77 - "ext": {},
78 - "header": {
79 - "Referer": "https://p.m82xg4z0cdbz7.com/"
80 - }
81 66 }
82 67 ]
83 68 }

imyip's Avatar imyip revised this gist 4 months ago. Go to revision

1 file changed, 1 insertion, 1 deletion

live.json

@@ -44,7 +44,7 @@
44 44 {
45 45 "name": "59",
46 46 "url": "https://59.125.210.231:4433"
47 - },
47 + }
48 48 ],
49 49 "epg": "http://iptv.52sw.top:668/?ch={name}&date={date}",
50 50 "logo": "https://epg.112114.xyz/logo/{name}.png"

imyip's Avatar imyip revised this gist 4 months ago. Go to revision

1 file changed, 4 deletions

live.json

@@ -45,10 +45,6 @@
45 45 "name": "59",
46 46 "url": "https://59.125.210.231:4433"
47 47 },
48 - "proxy": {
49 - "http": "http://192.168.10.239:1072",
50 - "https": "http://192.168.10.239:1072"
51 - }
52 48 ],
53 49 "epg": "http://iptv.52sw.top:668/?ch={name}&date={date}",
54 50 "logo": "https://epg.112114.xyz/logo/{name}.png"

imyip's Avatar imyip revised this gist 4 months ago. Go to revision

1 file changed, 4 insertions

live.json

@@ -44,6 +44,10 @@
44 44 {
45 45 "name": "59",
46 46 "url": "https://59.125.210.231:4433"
47 + },
48 + "proxy": {
49 + "http": "http://192.168.10.239:1072",
50 + "https": "http://192.168.10.239:1072"
47 51 }
48 52 ],
49 53 "epg": "http://iptv.52sw.top:668/?ch={name}&date={date}",

imyip's Avatar imyip revised this gist 4 months ago. Go to revision

1 file changed, 1 insertion, 7 deletions

live.json

@@ -9,13 +9,7 @@
9 9 },
10 10 {
11 11 "name": "内地电视频道(备用1)",
12 - "url": "http://192.168.2.239:35455/tv.m3u",
13 - "type": 0,
14 - "playerType": 1
15 - },
16 - {
17 - "name": "内地电视频道(备用2)",
18 - "url": "http://192.168.10.239:35455/tv.m3u",
12 + "url": "https://raw.githubusercontent.com/develop202/migu_video/refs/heads/main/interface.txt",
19 13 "type": 0,
20 14 "playerType": 1
21 15 },