mirror of
https://github.com/Abdess/retroarch_system.git
synced 2026-10-13 06:53:24 -05:00
feat: scrape platform data from stable release tags
This commit is contained in:
1 parent
653c414ed2
commit
6cbcb609af
7 files changed
+126
-50
No files matched your search
@@ -422,9 +422,15 @@ class Scraper(BaseScraper):
|
||||
file_entry["md5"] = req.md5
|
||||
sys_entry["files"].append(file_entry)
|
||||
|
||||
try:
|
||||
from .base_scraper import fetch_github_latest_version
|
||||
except ImportError:
|
||||
from scraper.base_scraper import fetch_github_latest_version
|
||||
version = fetch_github_latest_version("RetroDECK/RetroDECK") or ""
|
||||
|
||||
return {
|
||||
"platform": "RetroDECK",
|
||||
"version": "",
|
||||
"version": version,
|
||||
"homepage": "https://retrodeck.net",
|
||||
"source": "https://github.com/RetroDECK/components",
|
||||
"base_destination": "",
|
||||
@@ -436,7 +442,10 @@ class Scraper(BaseScraper):
|
||||
|
||||
|
||||
def main() -> None:
|
||||
from scraper.base_scraper import scraper_cli
|
||||
try:
|
||||
from .base_scraper import scraper_cli
|
||||
except ImportError:
|
||||
from scraper.base_scraper import scraper_cli
|
||||
|
||||
scraper_cli(Scraper, "Scrape RetroDECK BIOS requirements")
|
||||
|
||||
|
||||
Reference in new issue
Block a user