Fix ROM type parsing
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
Steven Polley 2023-06-04 16:28:43 -06:00
parent 1694ce0d04
commit ec4213cd92

View File

@ -116,7 +116,7 @@ func updateROMCache() {
Datetime: int(fInfo.ModTime().Unix()), Datetime: int(fInfo.ModTime().Unix()),
Filename: v.Name(), Filename: v.Name(),
ID: fileHash, ID: fileHash,
Romtype: "nightly", Romtype: splitName[3], // UNOFFICIAL
Size: int(fInfo.Size()), Size: int(fInfo.Size()),
URL: fmt.Sprintf("https://lineageos-ota.deadbeef.codes/public/%s", v.Name()), URL: fmt.Sprintf("https://lineageos-ota.deadbeef.codes/public/%s", v.Name()),
Version: splitName[1], Version: splitName[1],