Skip to content

Commit

Permalink
添加春晚
Browse files Browse the repository at this point in the history
  • Loading branch information
kimwang1978 committed May 15, 2024
1 parent a8ae286 commit e55d423
Show file tree
Hide file tree
Showing 4 changed files with 59 additions and 4 deletions.
9 changes: 7 additions & 2 deletions main.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
# 定义要访问的多个URL
urls = [
'https://raw.githubusercontent.com/Supprise0901/TVBox_live/main/live.txt',
'https://raw.githubusercontent.com/Guovin/TV/gd/result.txt',
'https://raw.githubusercontent.com/Guovin/TV/gd/result.txt', #1天自动更新1次
'https://raw.githubusercontent.com/ssili126/tv/main/itvlist.txt',
'https://m3u.ibert.me/txt/fmml_ipv6.txt',
'https://m3u.ibert.me/txt/ycl_iptv.txt',
Expand All @@ -32,6 +32,7 @@
dhp_lines = [] #动画片
xq_lines = [] #戏曲
js_lines = [] #解说
cw_lines = [] #春晚

# favorite_lines = []

Expand Down Expand Up @@ -106,6 +107,8 @@ def process_url(url):
xq_lines.append(process_name_string(line.strip()))
elif channel_name in js_dictionary: #解说
js_lines.append(process_name_string(line.strip()))
elif channel_name in cw_dictionary: #春晚
cw_lines.append(process_name_string(line.strip()))
else:
other_lines.append(line.strip())

Expand Down Expand Up @@ -139,6 +142,7 @@ def read_txt_to_array(file_name):
dhp_dictionary=read_txt_to_array('动画片.txt')
xq_dictionary=read_txt_to_array('戏曲频道.txt')
js_dictionary=read_txt_to_array('解说频道.txt')
cw_dictionary=read_txt_to_array('春晚.txt')

# 循环处理每个URL
for url in urls:
Expand Down Expand Up @@ -176,7 +180,8 @@ def custom_sort(s):
["纪录片,#genre#"] + sorted(set(jlp_lines)) + ['\n'] + \
["动画片,#genre#"] + sorted(set(dhp_lines)) + ['\n'] + \
["戏曲频道,#genre#"] + sorted(set(xq_lines)) + ['\n'] + \
["解说频道,#genre#"] + sorted(set(js_lines))
["解说频道,#genre#"] + sorted(set(js_lines)) + ['\n'] + \
["春晚,#genre#"] + sorted(set(cw_lines))


# 将合并后的文本写入文件
Expand Down
48 changes: 48 additions & 0 deletions 春晚.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,48 @@
春晚83
春晚84
春晚85
春晚86
春晚87
春晚88
春晚89
春晚91
春晚92
春晚93
春晚94
春晚95
春晚96
春晚97
春晚98
春晚99
春晚00
春晚01
春晚02
春晚03
春晚04
春晚05
春晚06
春晚07
春晚08
春晚09
春晚10
春晚11
春晚12
春晚13
春晚14
春晚15
春晚16
春晚17
春晚18
春晚19
春晚20
春晚21
春晚22
春晚23网络
春晚23总台
贾玲春晚小品
宋小宝春晚小品合集
小沈阳春晚小品
春晚小品
历年春晚小品合集
巩汉林春晚小品合集
蔡明春晚小品
3 changes: 2 additions & 1 deletion 电视剧.txt
Original file line number Diff line number Diff line change
Expand Up @@ -89,4 +89,5 @@
《鉴证实录》两部连播
中国第一神探-狄仁杰
鹿鼎记-陈小春版
三国演义【1994】
三国演义【1994】
【电视剧】士兵突击
3 changes: 2 additions & 1 deletion 纪录片.txt
Original file line number Diff line number Diff line change
Expand Up @@ -21,4 +21,5 @@ NASA TV
探索频道
美食星球
动物星球
国家地理
国家地理
最后的狮子-探险纪录片

0 comments on commit e55d423

Please sign in to comment.