rollback to TTSDK5.8.
Some checks are pending
Build-nightly / docker (push) Waiting to run

This commit is contained in:
Umiko 2025-05-17 10:02:47 +07:00
parent 131c4c46ea
commit e08016bef8
2 changed files with 7 additions and 4 deletions

View File

@ -1,4 +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
5/14/2025
Added entry for scheduler command on readme.md
Fixed file caching:

View File

@ -34,7 +34,7 @@ def get_url_suffix_from_platform() -> str:
sys.exit("Darwin is not supported")
else:
if machine == "AMD64" or machine == "x86_64":
return "ubuntu22_x86_64"
return "ubuntu18_x86_64"
elif "arm" in machine:
return "raspbian_armhf"
else:
@ -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.15x
# The last tested version series is v5.8x
versions = page.find_all("li")
version = [i for i in versions if "5.15" in i.text][-1].a.get("href")[0:-1]
version = [i for i in versions if "5.8" in i.text][-1].a.get("href")[0:-1]
download_url = (
url
+ "/"
@ -110,7 +110,8 @@ def install() -> None:
print("moved. cleaning")
clean()
print("cleaned.")
print("Installed, exiting.")
print("Installed")
if __name__ == "__main__":
install()