mirror of
https://github.com/terrapkg/packages.git
synced 2026-05-31 09:01:55 +00:00
(cherry picked from commit 7831992c64)
Signed-off-by: Gilver <rockgrub@disroot.org>
Co-authored-by: Gilver <rockgrub@disroot.org>
This commit is contained in:
+2
-2
@@ -12,6 +12,6 @@ fn nvidia_component_version(component) {
|
||||
}
|
||||
|
||||
fn nvidia_driver_version() {
|
||||
let matches = find_all(`(?m)^\s+<span class='dir'><a href='([\d.]+)/'>[\d.]+/</a></span>`, get("https://download.nvidia.com/XFree86/Linux-x86_64/"));
|
||||
return(matches[matches.len() - 1][1]);
|
||||
let driver = get("https://gfwsl.geforce.com/services_toolkit/services/com/nvidia/services/AjaxDriverService.php?func=DriverManualLookup&osID=12&languageCode=1033&numberOfResults=1&beta=0").json().IDS[0].downloadInfo.DisplayVersion;
|
||||
return(driver);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user