分析目前完整频道列表
This commit is contained in:
parent
3566aaea5b
commit
321d476fd4
|
@ -8,6 +8,8 @@
|
|||
|
||||
最后程序会在同类的源中选出延迟最低的一个,按频道优先级汇总,并输出一个m3u文件.
|
||||
|
||||
目前频道数量: 876
|
||||
|
||||
**!!!这个项目的代码还在进行中!!!**
|
||||
|
||||
#### 使用方法
|
||||
|
@ -20,6 +22,11 @@ python main.py
|
|||
|
||||
建议以docker的方式,直接在路由器上运行,本地检测地址访问,更为精准.
|
||||
|
||||
#### 已知问题
|
||||
- 访问速度慢,视频卡顿
|
||||
- 解决方案: 不要直接引用项目中的tv.m3u8文件,clone项目到本地,在本地网络环境下执行项目,生成新的文件
|
||||
- 电视,广播未分开
|
||||
- 暂时未处理,会v在后续版本进行分类
|
||||
|
||||
#### 目前资料来源
|
||||
---
|
||||
|
|
|
@ -30,7 +30,9 @@ class Source (object) :
|
|||
sourceList = sourceList + pattern.findall(tmp[1])
|
||||
|
||||
for item in sourceList :
|
||||
print('Checking:' + str(item[0]))
|
||||
i = 1
|
||||
print('Checking[' + str(i) + ']:' + str(item[0]))
|
||||
i = i + 1
|
||||
netstat = self.T.chkPlayable(item[1])
|
||||
|
||||
if netstat > 0 :
|
||||
|
|
|
@ -21,7 +21,7 @@ class Source (object) :
|
|||
line = lines[i].strip('\n')
|
||||
item = line.split(',', 1)
|
||||
|
||||
print('Checking:' + str(item[0]))
|
||||
print('Checking[' + str(i) + ']:' + str(item[0]))
|
||||
netstat = self.T.chkPlayable(item[1])
|
||||
|
||||
if netstat > 0 :
|
||||
|
|
|
@ -28,9 +28,10 @@ class Source (object) :
|
|||
sourceList = pattern.findall(tmp[0])
|
||||
|
||||
for item in sourceList :
|
||||
print('Checking:' + str(item[0]))
|
||||
i = 1
|
||||
print('Checking[' + str(i) + ']:' + str(item[0]))
|
||||
netstat = self.T.chkPlayable(item[1])
|
||||
|
||||
i = i + 1
|
||||
if netstat > 0 :
|
||||
info = self.T.fmtTitle(item[0])
|
||||
|
||||
|
|
4
tools.py
4
tools.py
|
@ -12,7 +12,7 @@ import socket
|
|||
import time
|
||||
import area
|
||||
|
||||
socket.setdefaulttimeout(10.0)
|
||||
socket.setdefaulttimeout(5.0)
|
||||
|
||||
class Tools (object) :
|
||||
|
||||
|
@ -111,6 +111,8 @@ class Tools (object) :
|
|||
Area = area.Area()
|
||||
result['level'] = Area.classify(str(result['id']) + str(result['title']))
|
||||
|
||||
# Radio
|
||||
|
||||
return result
|
||||
|
||||
def chkPlayable (self, url) :
|
||||
|
|
Loading…
Reference in New Issue