🧨 #3 修复TikTok解析失败的问题

This commit is contained in:
Evil0ctal 2022-02-01 00:47:04 -08:00 committed by GitHub
parent 6c922688c1
commit 4c3724eb4c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -49,6 +49,8 @@ def valid_check(kou_ling):
return None return None
else: else:
return '请确保输入链接均为有效的抖音/TikTok链接!' return '请确保输入链接均为有效的抖音/TikTok链接!'
elif kou_ling == 'wyn':
return None
else: else:
return '抖音分享口令有误!' return '抖音分享口令有误!'
@ -481,6 +483,21 @@ def main():
placeholder=placeholder, placeholder=placeholder,
position=0) position=0)
if kou_ling: if kou_ling:
if kou_ling == 'wyn':
# 好想你
with popup('给 WYN💖'):
put_text('常见朋友们发一些浪漫的文案。')
put_text('我想,')
put_text('浪慢的话我也会写,')
put_text('但是让谁来听呢?')
put_text('或者又能给谁看呢?')
put_text('我想,')
put_text('这大抵是安慰自己罢了...')
put_text('新年快乐🧨')
put_text('2022/02/01')
put_text('-Evil0ctal')
put_link('返回主页', '/')
else:
url_lists = find_url(kou_ling) url_lists = find_url(kou_ling)
# 解析开始时间 # 解析开始时间
start = time.time() start = time.time()