fixed ttsdk.
Some checks are pending
Build-nightly / docker (push) Waiting to run

This commit is contained in:
Umiko 2025-05-18 08:50:21 +07:00
parent 61b3ace305
commit 47bcc66773
2 changed files with 3 additions and 3 deletions

View File

@ -1,6 +1,6 @@
This change log is written to find out the changes that have been made by Pandora, and the source code still refers to TTMediaBot.
5/17/2025
rollback to TTSDk5.8
rollback to TTSDk5.12 due 5.8 is gone.
5/14/2025
Added entry for scheduler command on readme.md
Fixed file caching:

View File

@ -45,9 +45,9 @@ def download() -> None:
headers = {'User-Agent': 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/58.0.3029.110 Safari/537.3'}
r = requests.get(url, headers=headers)
page = bs4.BeautifulSoup(r.text, features="html.parser")
# The last tested version series is v5.8x
# The last tested version series is v5.12x
versions = page.find_all("li")
version = [i for i in versions if "5.8" in i.text][-1].a.get("href")[0:-1]
version = [i for i in versions if "5.12" in i.text][-1].a.get("href")[0:-1]
download_url = (
url
+ "/"