From 47bcc66773390dcb59fa04ec5123482cdea1b14f Mon Sep 17 00:00:00 2001 From: Umiko Date: Sun, 18 May 2025 08:50:21 +0700 Subject: [PATCH] fixed ttsdk. --- changelog.txt | 2 +- tools/ttsdk_downloader.py | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/changelog.txt b/changelog.txt index 306f217..2f9c890 100644 --- a/changelog.txt +++ b/changelog.txt @@ -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: diff --git a/tools/ttsdk_downloader.py b/tools/ttsdk_downloader.py index 652fb78..e4b9c36 100644 --- a/tools/ttsdk_downloader.py +++ b/tools/ttsdk_downloader.py @@ -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 + "/"