ssili126 / tv Goto Github PK
View Code? Open in Web Editor NEW自动收集的IPv4酒店电视直播源,自动测试播放速度,每日自动更新。 有CCTV央视卫视频道,及部分地方频道,播放流畅。也可在openwrt或群辉的docker运行。
自动收集的IPv4酒店电视直播源,自动测试播放速度,每日自动更新。 有CCTV央视卫视频道,及部分地方频道,播放流畅。也可在openwrt或群辉的docker运行。
大神,能写一个关于/ZHGXTV/Public/json/live_interface.txt 的IPTV吗?
openwrt 中使用docker run -v /www/itvall:/app itvall后报错,大佬这个怎么解决啊
用itvtest.exe时报错,提示
Traceback (most recent call last):
file "download_speed.py", line 24, in
ValueError: too many values to unpack (expected 2)
[38212] Failed to execute script 'download_speed' due to unhandled exception!
请问这个要怎么处理?谢谢
大佬 我用itvall.py正常有可用频道 使用itv1080.py没有了用频道 不知道问题出在哪里了
看懂了一点点原理,所以我尝试填写其他城市,我写了上海和北京,遗憾的是得不到有效资源,然后我手动去搜了,可以找到能用的ip。所以,大概是哪里的问题呢?
http://121.19.134.142:808/iptv/live/1000.json?key=txiptv
http://121.19.134.140:808/iptv/live/1000.json?key=txiptv
http://123.183.24.94:6666/iptv/live/1000.json?key=txiptv
http://115.171.86.251:9901/iptv/live/1000.json?key=txiptv
http://103.48.232.12:9901/iptv/live/1000.json?key=txiptv
http://103.48.232.250:9901/iptv/live/1000.json?key=txiptv
http://106.52.31.219:9901/iptv/live/1000.json?key=txiptv
http://49.234.31.101:7004/iptv/live/1000.json?key=txiptv
http://103.48.233.142:9901/iptv/live/1000.json?key=txiptv
Traceback (most recent call last):
File "/usr/local/lib/python3.12/site-packages/urllib3/connection.py", line 198, in _new_conn
sock = connection.create_connection(
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.12/site-packages/urllib3/util/connection.py", line 85, in create_connection
raise err
File "/usr/local/lib/python3.12/site-packages/urllib3/util/connection.py", line 73, in create_connection
sock.connect(sa)
File "/usr/local/lib/python3.12/site-packages/eventlet/greenio/base.py", line 251, in connect
socket_checkerr(fd)
File "/usr/local/lib/python3.12/site-packages/eventlet/greenio/base.py", line 50, in socket_checkerr
raise OSError(err, errno.errorcode[err])
ConnectionRefusedError: [Errno 111] ECONNREFUSED
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
File "/usr/local/lib/python3.12/site-packages/urllib3/connectionpool.py", line 793, in urlopen
response = self._make_request(
^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.12/site-packages/urllib3/connectionpool.py", line 496, in _make_request
conn.request(
File "/usr/local/lib/python3.12/site-packages/urllib3/connection.py", line 400, in request
self.endheaders()
File "/usr/local/lib/python3.12/http/client.py", line 1326, in endheaders
self._send_output(message_body, encode_chunked=encode_chunked)
File "/usr/local/lib/python3.12/http/client.py", line 1085, in _send_output
self.send(msg)
File "/usr/local/lib/python3.12/http/client.py", line 1029, in send
self.connect()
File "/usr/local/lib/python3.12/site-packages/urllib3/connection.py", line 238, in connect
self.sock = self._new_conn()
^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.12/site-packages/urllib3/connection.py", line 213, in _new_conn
raise NewConnectionError(
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0x7f126adb9310>: Failed to establish a new connection: [Errno 111] ECONNREFUSED
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
File "/app/itvall.py", line 92, in
page_content = driver.page_source
^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.12/site-packages/selenium/webdriver/remote/webdriver.py", line 448, in page_source
return self.execute(Command.GET_PAGE_SOURCE)["value"]
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.12/site-packages/selenium/webdriver/remote/webdriver.py", line 345, in execute
response = self.command_executor.execute(driver_command, params)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.12/site-packages/selenium/webdriver/remote/remote_connection.py", line 302, in execute
return self._request(command_info[0], url, body=data)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.12/site-packages/selenium/webdriver/remote/remote_connection.py", line 322, in _request
response = self._conn.request(method, url, body=body, headers=headers)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.12/site-packages/urllib3/_request_methods.py", line 136, in request
return self.request_encode_url(
^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.12/site-packages/urllib3/_request_methods.py", line 183, in request_encode_url
return self.urlopen(method, url, **extra_kw)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.12/site-packages/urllib3/poolmanager.py", line 444, in urlopen
response = conn.urlopen(method, u.request_uri, **kw)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.12/site-packages/urllib3/connectionpool.py", line 877, in urlopen
return self.urlopen(
^^^^^^^^^^^^^
File "/usr/local/lib/python3.12/site-packages/urllib3/connectionpool.py", line 877, in urlopen
return self.urlopen(
^^^^^^^^^^^^^
File "/usr/local/lib/python3.12/site-packages/urllib3/connectionpool.py", line 877, in urlopen
return self.urlopen(
^^^^^^^^^^^^^
File "/usr/local/lib/python3.12/site-packages/urllib3/connectionpool.py", line 847, in urlopen
retries = retries.increment(
^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.12/site-packages/urllib3/util/retry.py", line 515, in increment
raise MaxRetryError(_pool, url, reason) from reason # type: ignore[arg-type]
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='localhost', port=36967): Max retries exceeded with url: /session/e3fd3ad851b090d68a1baa91197f7cec/source (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7f126adb9310>: Failed to establish a new connection: [Errno 111] ECONNREFUSED'))
linux系统 我安装了arm版chomium 执行不了 是不支持还是我的方法没对 可以解决吗?amd设备一切正常
itv_all(1080).py line 33:
, #广东 应该改成, #广东
逗号中文英文区别
我还寻思部署到服务器上运行那,国内的会好些。大佬有考虑改成requests吗
**首先感谢提供这么好的项目
我这边是江西电信,在本地的ubuntu上面用 itv_all.py 扫描过很多次,扫出来的源都是高清的,但大部分播放速度只有200K左右,这1080,8M的源,只有200K/s的速度,很卡顿,估计是酒店IP小水管比较慢,毕竟是白嫖。可否再设置个标清的源,200K的速度放标清的源应该是OK了,直播源的优先级:流畅应该在清晰度之上**
C:Users 1\Downloads Programs itvtest.exe
raceback lmost recent call last]File“download speed.py”, line 24,in falueError: too many values to upack (expected 2)
2336] Failed to execute script download speed
due to unhandled exception!
请问这是什么问题,第一次使用可以,第二次就不行了
经常报错, 然后重新运行
[Previous line repeated 487 more times]
RecursionError: maximum recursion depth exceeded
看了下,大概在132行左右
result = future.result()
首先感谢,绝大部分IPTV是可用的。
然后,载入全部频道,树莓派+LibreELEC会有点卡顿。
怎么进行分组?合并?
是否可以通过cookie的方式来实现,目前不登陆只有10条记录,很多没有挂的源也扫不到了
怎么样
这个镜像有1.6G,大小正常吗?
python3: can't open file '/app/itvall.py': [Errno 2] No such file or directory
docker版的报错啊 映射的目录/app 内没文件
重新pull py文件到目录才能运行
建议给docker版本加上自建web服务,新建docker时直接映射一个端口就可以访问了。
可以在webui里设置定时自动执行刷新任务,可以查看文件的更新时间。
包括报错日志那些也可以输出到webui里,方便检查。
能更新更多城市的程序吗?或者给个.py格式的抓组播的脚本,我自己手动改城市。谢谢哈
如题。
http://x.x.x.x:9901udp://@x.x.x.x:10001
这不像是规范的格式,请大佬看看
能否增加docker运行,这样可以运行在软路由上
添加到emby没有电视台标,转换后又不能事实获取您的更新。
最后合并后的文件
比如:
北京酒店,#genre#
上海酒店,#genre#
这样便于区分不同地方的节目
能加一个视频比例筛选吗?优先筛选16:9的
我看日志一直不停在刷新,而且docker里生成的itvlist.txt映射不到外面来
name = name.replace("cctv", "CCTV")
name = name.replace("**", "CCTV")
name = name.replace("央视", "CCTV")
name = name.replace("高清", "")
name = name.replace("超高", "")
name = name.replace("HD", "")
name = name.replace("标清", "")
name = name.replace("频道", "")
name = name.replace("-", "")
name = name.replace(" ", "")
name = name.replace("PLUS", "+")
name = name.replace("+", "+")
name = name.replace("(", "")
name = name.replace(")", "")
name = re.sub(r"CCTV(\d+)台", r"CCTV\1", name)
name = name.replace("CCTV1综合", "CCTV1")
name = name.replace("CCTV2财经", "CCTV2")
name = name.replace("CCTV3综艺", "CCTV3")
name = name.replace("CCTV4国际", "CCTV4")
name = name.replace("CCTV4中文国际", "CCTV4")
name = name.replace("CCTV4欧洲", "CCTV4")
name = name.replace("CCTV5体育", "CCTV5")
name = name.replace("CCTV6电影", "CCTV6")
name = name.replace("CCTV7军事", "CCTV7")
name = name.replace("CCTV7军农", "CCTV7")
name = name.replace("CCTV7农业", "CCTV7")
name = name.replace("CCTV7国防军事", "CCTV7")
name = name.replace("CCTV8电视剧", "CCTV8")
name = name.replace("CCTV9记录", "CCTV9")
name = name.replace("CCTV8纪录", "CCTV9")
name = name.replace("CCTV9纪录", "CCTV9")
name = name.replace("CCTV10科教", "CCTV10")
name = name.replace("CCTV11戏曲", "CCTV11")
name = name.replace("CCTV12社会与法", "CCTV12")
name = name.replace("CCTV13新闻", "CCTV13")
name = name.replace("CCTV新闻", "CCTV13")
name = name.replace("CCTV14少儿", "CCTV14")
name = name.replace("CCTV少儿", "CCTV14")
name = name.replace("CCTV少儿超", "CCTV14")
name = name.replace("CCTV15音乐", "CCTV15")
name = name.replace("CCTV音乐", "CCTV15")
name = name.replace("CCTV16奥林匹克", "CCTV16")
name = name.replace("CCTV17农业农村", "CCTV17")
name = name.replace("CCTV17农业", "CCTV17")
name = name.replace("CCTV5+体育赛视", "CCTV5+")
name = name.replace("CCTV5+体育赛事", "CCTV5+")
name = name.replace("CCTV5+体育", "CCTV5+")
name = name.replace("CCTV教育", "CETV1")
name = name.replace("风云足球", "CCTV风云足球")
name = name.replace("上海卫视", "东方卫视")
name = name.replace("内蒙卫视", "内蒙古卫视")
name = name.replace("旅游卫视", "海南卫视")
name = name.replace("天津卫视台", "天津卫视")
name = name.replace("天津体育台", "天津体育")
name = name.replace("天津公共台", "天津购物")
name = name.replace("天津影视台", "天津影视")
name = name.replace("天津文艺台", "天津文艺")
name = name.replace("天津新闻台", "天津新闻")
name = name.replace("天津科教台", "天津教育")
name = name.replace("天津都市台", "天津都市")
name = name.replace("CHC电影", "CHC高清电影")
name = name.replace("江西少儿频", "江西少儿")
name = name.replace("江西影视旅", "江西影视")
name = name.replace("江西教育标", "江西教育")
name = name.replace("教育电视台1", "CETV1")
name = name.replace("CNB亚太财经", "CNBC亚洲频道")
name = name.replace("东奥纪实", "BTV纪实科教")
name = name.replace("法治天地", "法治天下")
name = name.replace("淘电影", "BTV淘电影")
name = name.replace("4K电源", "BTV4K超清")
安装了docker版本的,运行完容器自己就停止了,还有容器能加个定时运行和端口映射吗,装在乌班图上了,没法直接远程访问
你好,大佬你的项目很好了,但是其实我主要想抓一些凤凰的源,我在酷安网看到一个网友写了一个小软件,他抓源应该是这个网站
www.foodieguide.com
好像抓的源很多也不能播放,如果大佬也可以抓多一些源然后自动检测有效性,那是最好了
测试了 tivimate 和 我的电视-O TV端,本地文件的方式可以导入频道,但是在线订阅都是获取频道失败。我看其他源的m3u都有带 epg源,对比一下标签参数 m3u文件好像缺少 x-tvg-url=
tvg-name=
tvg-logo=
我们的m3u
#EXTM3U
#EXTINF:-1 group-title="央视频道",CCTV1
http://221.234.25.122:9999/tsfile/live/0001_1.m3u8?key=txiptv&playlive=1&authid=0
#EXTINF:-1 group-title="央视频道",CCTV1
http://58.53.152.170:9901/tsfile/live/0001_1.m3u8?key=txiptv&playlive=1&authid=0
别人的m3u
#EXTM3U x-tvg-url="https://live.fanmingming.com/e.xml"
#EXTINF:-1 tvg-name="CCTV1" tvg-logo="https://live.fanmingming.com/tv/CCTV1.png" group-title="央视频道",CCTV-1 综合
http://[2409:8087:4c0a:22:1::11]:6410/170000001115/UmaiCHAN111128BESTVSMGSMG/index.m3u8?AuthInfo=9kOOdBn7MFF%2F2bWjKgahUU6FFmRK8Hl0ytyd5e5kWGEwoDIwMxbrlyyVy9x6ZDKnldIYKOjBOUjRyoym5n7Kg0yIYstFTUfqtC14fzxhy5Y
#EXTINF:-1 tvg-name="CCTV2" tvg-logo="https://live.fanmingming.com/tv/CCTV2.png" group-title="央视频道",CCTV-2 财经
http://[2409:8087:4c0a:22:1::11]:6410/170000001115/UmaiCHAN5000036BESTVSMGSMG/index.m3u8?AuthInfo=9kOOdBn7MFF%2F2bWjKgahUSpr1AVNI633ampcuzdN%2BfGVSARKsxkWGZw7vFUuOj2QZHeRzosIxVbl7i2QHFATHA3k5wDWG1qHkZQAleNv%2FbI
#EXTINF:-1 tvg-name="CCTV3" tvg-logo="https://live.fanmingming.com/tv/CCTV3.png" group-title="央视频道",CCTV-3 综艺
http://[2409:8087:4c0a:22:1::11]:6410/170000001115/UmaiCHAN638727c125355/index.m3u8?AuthInfo=9kOOdBn7MFF%
常规m3u格式
#EXTM3U x-tvg-url=""
#EXTINF:-1 tvg-name="标准标题" tvg-logo="图标" group-title="组名",标题
视频地址
希望可以优化一下格式。
大佬,收到你发的py文件了,看了下,虽然不太明白,但是有些地方看懂了。组播的搜索规则可以做如下修改么。urls={}里面改成省份,然后下面的city={url}改成 region={url}可以么,这样是否会自动包含每个省份的所有城市?我收到的是湖北的,里面城市名是12个,但湖北一定是多于12个城市的。
File "/opt/hostedtoolcache/Python/3.12.3/x64/lib/python3.12/site-packages/urllib3/util/ssl_.py", line 290, in create_urllib3_context
context.minimum_version = TLSVersion.TLSv1_2
^^^^^^^^^^^^^^^^^^^^^^^
File "/opt/hostedtoolcache/Python/3.12.3/x64/lib/python3.12/ssl.py", line 546, in minimum_version
super(SSLContext, SSLContext).minimum_version.set(self, value)
File "/opt/hostedtoolcache/Python/3.12.3/x64/lib/python3.12/ssl.py", line 546, in minimum_version
super(SSLContext, SSLContext).minimum_version.set(self, value)
File "/opt/hostedtoolcache/Python/3.12.3/x64/lib/python3.12/ssl.py", line 546, in minimum_version
super(SSLContext, SSLContext).minimum_version.set(self, value)
[Previous line repeated 486 more times]
File "/opt/hostedtoolcache/Python/3.12.3/x64/lib/python3.12/ssl.py", line 544, in minimum_version
if value == TLSVersion.SSLv3:
^^^^^^^^^^^^^^^^
RecursionError: maximum recursion depth exceeded
Error: Process completed with exit code 1.
0s
0s
自动更新太赞了!但是能区分分辨率就好了。很多源都是4:3的比例,看着很难受。不知道大佬会不会更新一下代码,筛选出来16:9的比例的源?
请教一下,挨个去试接口“/iptv/live/1000.json”这条规则是如何获取(知晓)的?
建议读取到有效数据后, 测试一下播放. 目前收集到的很多都无法播放.比如:
CCTV4-国际,http://124.238.110.109:9999udp://@224.254.200.190:6307
CCTV1,http://121.19.134.21:808/iptv/live/1000.json?key=txiptv/tsfile/live/0001_1.m3u8?key=txiptv&playlive=1&authid=0
docker run -v /www/itvall:/app itvall
Unable to find image 'itvall:latest' locally
docker: Error response from daemon: pull access denied for itvall, repository does not exist or may require 'docker login': denied: requested access to the resource is denied.
See 'docker run --help'.
sudo docker run liuxipo/itvall 可以运行起来,但运行完成后无法查看结果
http://本地ip/itvall/itvlist.txt 访问显示拒绝访问
我的环境是:
centos 里配置的docker ,以root 身份运行
docker run -v /www/itvall:/app itvall 运行时提示:python: can't open file '/app/itvall.py': [Errno 2] No such file or directory
sudo docker run -v /volume1/docker/itvall:/app liuxipo/itvall 运行时依然提示:python: can't open file '/app/itvall.py': [Errno 2] No such file or directory
sudo docker run liuxipo/itvall 运行可以成功,但无法提取数据,想知道怎么把运行结果取出来,
另外,运行命令没有进行端口映射,是不是这个原因拒绝访问
action的worflows不能运行,请楼主检查一下,小白啥也不懂
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.