From f507540de3e9ac12f5cd0f70faf9b1419daf5d9c Mon Sep 17 00:00:00 2001 From: frxz751113 <156018267+frxz751113@users.noreply.github.com> Date: Fri, 13 Sep 2024 14:59:12 +0800 Subject: [PATCH] =?UTF-8?q?Update=20=E6=B5=8B=E7=BB=98=E7=AB=99=E9=87=87?= =?UTF-8?q?=E9=9B=86.py?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- py/测绘站采集.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/py/测绘站采集.py b/py/测绘站采集.py index a63bb38..3e65dd9 100644 --- a/py/测绘站采集.py +++ b/py/测绘站采集.py @@ -469,7 +469,7 @@ txt_to_m3u('综合源.txt', '综合源.m3u') import datetime now = datetime.datetime.utcnow() + datetime.timedelta(hours=8) -current_time = now.strftime("%m-%d %H:%M") +current_time = now.strftime("%m-%d %H") #:%M # 打开文本文件并将时间添加到开头 file_path = "综合源.m3u" with open(file_path, 'r+', encoding='utf-8') as f: @@ -478,7 +478,7 @@ with open(file_path, 'r+', encoding='utf-8') as f: f.write(f'{content}\n') #f.write(f'#EXTINF:-1 group-title="更新时间",请您欣赏\n') #f.write(f'http://em.21dtv.com/songs/60144971.mkv\n') - f.write(f'#EXTINF:-1 group-title="{current_time}",虚情的爱\n') + f.write(f'#EXTINF:-1 group-title="{current_time}更新",虚情的爱\n') f.write(f'https://vd2.bdstatic.com/mda-mi1dd05gmhwejdwn/sc/cae_h264/1630576203346678103/mda-mi1dd05gmhwejdwn.mp4\n') #任务结束,删除不必要的过程文件#