This commit is contained in:
parent
61b3ace305
commit
47bcc66773
@ -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.
|
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
|
5/17/2025
|
||||||
rollback to TTSDk5.8
|
rollback to TTSDk5.12 due 5.8 is gone.
|
||||||
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:
|
||||||
|
@ -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.8x
|
# The last tested version series is v5.12x
|
||||||
versions = page.find_all("li")
|
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 = (
|
download_url = (
|
||||||
url
|
url
|
||||||
+ "/"
|
+ "/"
|
||||||
|
Loading…
x
Reference in New Issue
Block a user