Skip to content

Commit

Permalink
Merge pull request #57 from flameshikari/dev
Browse files Browse the repository at this point in the history
merge dev into master
  • Loading branch information
flameshikari authored Feb 25, 2024
2 parents b59a9ad + 767268b commit f978160
Show file tree
Hide file tree
Showing 7 changed files with 46 additions and 3 deletions.
4 changes: 4 additions & 0 deletions src/distros/cachyos/info.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
{
"name": "CachyOS",
"url": "https://cachyos.org"
}
Binary file added src/distros/cachyos/logo.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
17 changes: 17 additions & 0 deletions src/distros/cachyos/scraper.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
from main import * # noqa


def init():

values = []
regexp_version = re.compile(r'-(\d+)')
url_base = 'https://mirror.cachyos.org/ISO/'

for iso_url in get.urls(url_base, recurse=True):

iso_arch = get.arch(iso_url)
iso_size = get.size(iso_url)
iso_version = re.search(regexp_version, iso_url).group(1)
values.append((iso_url, iso_arch, iso_size, iso_version))

return values
8 changes: 5 additions & 3 deletions src/distros/endeavouros/scraper.py
Original file line number Diff line number Diff line change
@@ -1,14 +1,16 @@
from main import * # noqa
from datetime import datetime


def init():

values = []
regexp_version = re.compile(r'[-_](\d+[-_]\d+(_R\d+)?)')
url_base = 'https://mirror.moson.org/endeavouros/iso/'
regexp_version = re.compile(r'-(\d+\.\d+\.\d+)')
url_base = 'http://md.mirrors.hacktegic.com/endeavouros/iso/'
year = str(datetime.now().year)

for iso_url in get.urls(url_base):

if not year in iso_url: continue
iso_arch = "x86_64"
iso_size = get.size(iso_url)
iso_version = re.search(regexp_version, iso_url).group(1).replace('-', '_')
Expand Down
4 changes: 4 additions & 0 deletions src/distros/nobara/info.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
{
"name": "Nobara",
"url": "https://nobaraproject.org"
}
Binary file added src/distros/nobara/logo.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
16 changes: 16 additions & 0 deletions src/distros/nobara/scraper.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
from main import * # noqa


def init():

values = []
regexp_version = re.compile(r'Nobara-(\d+)-')
url_base = 'https://nobaraproject.org/download-nobara/'

for iso_url in get.urls(url_base):
iso_arch = get.arch(iso_url)
iso_size = get.size(iso_url)
iso_version = re.search(regexp_version, iso_url).group(1)
values.append((iso_url, iso_arch, iso_size, iso_version))

return values

0 comments on commit f978160

Please sign in to comment.