From a3c029e2fa54b0a0b4ea7b7c7d066c22d56f0adc Mon Sep 17 00:00:00 2001 From: Jeffrey Serio Date: Sat, 16 Nov 2024 20:24:12 -0600 Subject: [PATCH] Just torrent for specific devices --- python/seed_armbian_torrents.py | 18 +++++------------- 1 file changed, 5 insertions(+), 13 deletions(-) diff --git a/python/seed_armbian_torrents.py b/python/seed_armbian_torrents.py index da2c15d..cb72390 100755 --- a/python/seed_armbian_torrents.py +++ b/python/seed_armbian_torrents.py @@ -39,19 +39,11 @@ from docopt import docopt def add_torrents(args: dict): - url = "https://mirrors.jevincanders.net/armbian/dl/" - response = requests.get(url, timeout=60) - soup = BeautifulSoup(response.content, "html.parser") - links = soup.find_all("a") - - 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/") + archive_dir_urls = [ + "https://mirrors.jevincanders.net/armbian/dl/orangepi5-plus/archive/", + "https://mirrors.jevincanders.net/armbian/dl/rockpro64/archive/", + "https://mirrors.jevincanders.net/armbian/dl/rpi4b/archive/", + ] torrent_urls = [] for url in archive_dir_urls: