This commit is contained in:
parent
131c4c46ea
commit
e08016bef8
@ -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.
|
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
|
5/14/2025
|
||||||
Added entry for scheduler command on readme.md
|
Added entry for scheduler command on readme.md
|
||||||
Fixed file caching:
|
Fixed file caching:
|
||||||
|
@ -34,7 +34,7 @@ def get_url_suffix_from_platform() -> str:
|
|||||||
sys.exit("Darwin is not supported")
|
sys.exit("Darwin is not supported")
|
||||||
else:
|
else:
|
||||||
if machine == "AMD64" or machine == "x86_64":
|
if machine == "AMD64" or machine == "x86_64":
|
||||||
return "ubuntu22_x86_64"
|
return "ubuntu18_x86_64"
|
||||||
elif "arm" in machine:
|
elif "arm" in machine:
|
||||||
return "raspbian_armhf"
|
return "raspbian_armhf"
|
||||||
else:
|
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'}
|
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)
|
r = requests.get(url, headers=headers)
|
||||||
page = bs4.BeautifulSoup(r.text, features="html.parser")
|
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")
|
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 = (
|
download_url = (
|
||||||
url
|
url
|
||||||
+ "/"
|
+ "/"
|
||||||
@ -110,7 +110,8 @@ def install() -> None:
|
|||||||
print("moved. cleaning")
|
print("moved. cleaning")
|
||||||
clean()
|
clean()
|
||||||
print("cleaned.")
|
print("cleaned.")
|
||||||
print("Installed, exiting.")
|
print("Installed")
|
||||||
|
|
||||||
|
|
||||||
if __name__ == "__main__":
|
if __name__ == "__main__":
|
||||||
install()
|
install()
|
||||||
|
Loading…
x
Reference in New Issue
Block a user