Just torrent for specific devices

This commit is contained in:
Jeffrey Serio 2024-11-16 20:24:12 -06:00
parent 2bd74a4b13
commit a3c029e2fa

View File

@ -39,19 +39,11 @@ from docopt import docopt
def add_torrents(args: dict): def add_torrents(args: dict):
url = "https://mirrors.jevincanders.net/armbian/dl/" archive_dir_urls = [
response = requests.get(url, timeout=60) "https://mirrors.jevincanders.net/armbian/dl/orangepi5-plus/archive/",
soup = BeautifulSoup(response.content, "html.parser") "https://mirrors.jevincanders.net/armbian/dl/rockpro64/archive/",
links = soup.find_all("a") "https://mirrors.jevincanders.net/armbian/dl/rpi4b/archive/",
]
archive_dir_urls = []
for link in links:
if (
link.text.endswith("/")
and not link.text.startswith("_")
and not link.text == "torrent/"
):
archive_dir_urls.append(url + link.text + "archive/")
torrent_urls = [] torrent_urls = []
for url in archive_dir_urls: for url in archive_dir_urls: