Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
W登峰造极
dr_py
提交
00d7b88c
dr_py
项目概览
W登峰造极
/
dr_py
与 Fork 源项目一致
Fork自
晚风拂柳颜 / dr_py
通知
1
Star
0
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
DevOps
流水线
流水线任务
计划
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
dr_py
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
DevOps
DevOps
流水线
流水线任务
计划
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
流水线任务
提交
Issue看板
体验新版 GitCode,发现更多精彩内容 >>
提交
00d7b88c
编写于
9月 07, 2022
作者:
H
hjdhnx
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
尝试修复直播源同步的乱码问题
上级
e10488ee
变更
2
隐藏空白更改
内联
并排
Showing
2 changed file
with
65 addition
and
12 deletion
+65
-12
js/直播.txt
js/直播.txt
+61
-12
utils/update.py
utils/update.py
+4
-0
未找到文件。
js/直播.txt
浏览文件 @
00d7b88c
...
...
@@ -3340,14 +3340,63 @@ Unknown_217,https://v9.microclassonline.com/20220222/GDwQVTVl/index.m3u8
Unknown_218,https://v9.microclassonline.com/20220211/y6gaTZ7B/index.m3u8
Unknown_219,https://v9.microclassonline.com/20220115/VYS231WO/index.m3u8
Unknown_220,https://v9.microclassonline.com/20210905/pFnb6lao/index.m3u8
Unknown_222,https://v9.microclassonline.com/20220710/t9PwvywW/index.m3u8
Unknown_223,https://v9.microclassonline.com/20220618/Ewnwtrvy/index.m3u8
Unknown_224,https://v9.microclassonline.com/20210627/oyHcw2AX/index.m3u8
Unknown_225,https://v9.microclassonline.com/20210711/QXlXZsRg/index.m3u8
Unknown_226,https://v9.microclassonline.com/20210720/37hbtIMq/index.m3u8
Unknown_227,https://v9.microclassonline.com/20210624/wEPLk9Hl/index.m3u8
Unknown_228,https://v9.microclassonline.com/20210630/rmlcmBEO/index.m3u8
Unknown_229,https://v9.microclassonline.com/20210629/Xt7OoUMM/index.m3u8
Unknown_230,https://v9.microclassonline.com/20210619/ToceSQgS/index.m3u8
Unknown_231,https://v9.microclassonline.com/20210620/d236J1am/index.m3u8
Unknown_232,https://v9.microclassonline.com/20210621/2dcLV7Ze/index.m3u8
\ No newline at end of file
Unknown_221,https://v9.microclassonline.com/20220710/t9PwvywW/index.m3u8
Unknown_222,https://v9.microclassonline.com/20220618/Ewnwtrvy/index.m3u8
Unknown_223,https://v9.microclassonline.com/20210627/oyHcw2AX/index.m3u8
Unknown_224,https://v9.microclassonline.com/20210711/QXlXZsRg/index.m3u8
Unknown_225,https://v9.microclassonline.com/20210720/37hbtIMq/index.m3u8
Unknown_226,https://v9.microclassonline.com/20210624/wEPLk9Hl/index.m3u8
Unknown_227,https://v9.microclassonline.com/20210630/rmlcmBEO/index.m3u8
Unknown_228,https://v9.microclassonline.com/20210629/Xt7OoUMM/index.m3u8
Unknown_229,https://v9.microclassonline.com/20210619/ToceSQgS/index.m3u8
Unknown_230,https://v9.microclassonline.com/20210620/d236J1am/index.m3u8
Unknown_231,https://v9.microclassonline.com/20210621/2dcLV7Ze/index.m3u8
Unknown_232,https://v9.microclassonline.com/20210422/edzXgOkS/index.m3u8
Unknown_233,https://v9.microclassonline.com/20210408/Syk8D3AT/index.m3u8
Unknown_234,https://v9.microclassonline.com/20210314/Gwd7ix9M/index.m3u8
Unknown_235,https://v9.microclassonline.com/20210217/trZhbaE2/index.m3u8
Unknown_236,https://v9.microclassonline.com/20211125/ZZFrseki/index.m3u8
Unknown_237,https://v9.microclassonline.com/20211026/PwVJKo7c/index.m3u8
Unknown_238,https://v9.microclassonline.com/20210816/c8hEFOza/index.m3u8
Unknown_239,https://v9.microclassonline.com/20210603/acUCZBMt/index.m3u8
Unknown_240,https://v9.microclassonline.com/20210523/tW9e3uvc/index.m3u8
Unknown_241,https://v9.microclassonline.com/20210719/1q0Berfn/index.m3u8
Unknown_242,https://v9.microclassonline.com/20210126/0NasTsym/index.m3u8
Unknown_243,https://v9.microclassonline.com/20220327/be4mjeZB/index.m3u8
Unknown_244,https://v9.microclassonline.com/20211122/moGQm40a/index.m3u8
Unknown_245,https://v9.microclassonline.com/20210201/Ymg4XcYl/index.m3u8
Unknown_246,https://v9.microclassonline.com/20211023/TosTszxa/index.m3u8
Unknown_247,https://v9.microclassonline.com/20210425/3B61fyzJ/index.m3u8
Unknown_248,https://v9.microclassonline.com/20210515/U9UNCB1e/index.m3u8
Unknown_249,https://v9.microclassonline.com/20210515/M1yvt9Td/index.m3u8
Unknown_250,https://v9.microclassonline.com/20211208/WHt9WzFn/index.m3u8
Unknown_251,https://v9.microclassonline.com/20211111/tqWt8n0O/index.m3u8
Unknown_252,https://v9.microclassonline.com/20211002/5dpREb2o/index.m3u8
Unknown_253,https://v9.microclassonline.com/20210930/4adcXoq5/index.m3u8
Unknown_254,https://v9.microclassonline.com/20210921/X1af9Mzz/index.m3u8
Unknown_255,https://v9.microclassonline.com/20210905/cmF8dgge/index.m3u8
Unknown_256,https://v9.microclassonline.com/20210820/O2Q7z4zj/index.m3u8
Unknown_257,https://v9.microclassonline.com/20210802/XqcPv6XG/index.m3u8
Unknown_258,https://v9.microclassonline.com/20210726/yDdqJSNE/index.m3u8
Unknown_259,https://v9.microclassonline.com/20210719/zQ43suyy/index.m3u8
Unknown_260,https://v9.microclassonline.com/20210717/jb8THZNr/index.m3u8
Unknown_261,https://v9.microclassonline.com/20210716/hXesoADQ/index.m3u8
Unknown_262,https://v9.microclassonline.com/20210711/jOfgIhyQ/index.m3u8
Unknown_263,https://v9.microclassonline.com/20210710/S78jxoGt/index.m3u8
Unknown_264,https://v9.microclassonline.com/20210409/cQKCKKQ9/index.m3u8
Unknown_265,https://v9.microclassonline.com/20220903/4oixjL4o/index.m3u8
Unknown_266,https://v9.microclassonline.com/20220903/qxONLmSy/index.m3u8
Unknown_267,https://v9.microclassonline.com/20220901/wiOPNR39/index.m3u8
Unknown_268,https://v9.microclassonline.com/20220903/nXyL8AON/index.m3u8
Unknown_269,https://v9.microclassonline.com/20220901/FDXNXe27/index.m3u8
Unknown_270,https://v9.microclassonline.com/20220606/a5Zu4C1x/index.m3u8
Unknown_271,https://v9.microclassonline.com/20220531/iTYVhhnE/index.m3u8
Unknown_272,https://v9.microclassonline.com/20220528/ZFMbgNDB/index.m3u8
Unknown_273,https://v9.microclassonline.com/20220515/T18ZN2mQ/index.m3u8
Unknown_274,https://v9.microclassonline.com/20220404/yzwnAsGp/index.m3u8
Unknown_275,https://v9.microclassonline.com/20220327/NF2iC97e/index.m3u8
Unknown_276,https://v9.microclassonline.com/20220316/OM3IIShj/index.m3u8
Unknown_277,https://v9.microclassonline.com/20220316/Q82TehQ8/index.m3u8
Unknown_278,https://v9.microclassonline.com/20220216/cVQhPahk/index.m3u8
Unknown_279,https://v9.microclassonline.com/20211224/Nj1SM77a/index.m3u8
Unknown_280,https://v9.microclassonline.com/20211208/ROTQssmf/index.m3u8
\ No newline at end of file
utils/update.py
浏览文件 @
00d7b88c
...
...
@@ -147,6 +147,10 @@ def download_lives(live_url:str):
logger
.
info
(
f
'尝试同步
{
live_url
}
远程内容到
{
live_path
}
'
)
try
:
r
=
requests
.
get
(
live_url
,
headers
=
headers
,
timeout
=
3
)
auto_encoding
=
r
.
apparent_encoding
if
auto_encoding
.
lower
()
in
[
'utf-8'
,
'gbk'
,
'bg2312'
,
'gb18030'
]:
r
.
encoding
=
auto_encoding
# print(r.encoding)
html
=
r
.
text
# print(len(html))
if
re
.
search
(
'cctv|.m3u8'
,
html
,
re
.
M
|
re
.
I
)
and
len
(
html
)
>
1000
:
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录