Skip to content

Commit

Permalink
19:25 2024/05/09
Browse files Browse the repository at this point in the history
  • Loading branch information
kimwang1978 committed May 9, 2024
1 parent 31cdc38 commit c798a27
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion main.py
Original file line number Diff line number Diff line change
Expand Up @@ -146,7 +146,7 @@ def custom_sort(s):
# 合并所有对象中的行文本(去重,排序后拼接)

version=datetime.now().strftime("%Y%m%d")+",url"
all_lines = ["更新时间,#genre#"] +[version]+\
all_lines = ["更新时间,#genre#"] +[version] + ['\n'] +\
["上海频道,#genre#"] + sorted(set(sh_lines)) + ['\n'] + \
["央视频道,#genre#"] + sorted(sorted(set(ys_lines),key=lambda x: extract_number(x)), key=custom_sort) + ['\n'] + \
["卫视频道,#genre#"] + sorted(set(ws_lines)) + ['\n'] + \
Expand Down

0 comments on commit c798a27

Please sign in to comment.