mirror of
https://github.com/advplyr/audiobookshelf.git
synced 2025-01-22 00:07:52 +01:00
Add: current pubdate
This commit is contained in:
parent
3a2f786517
commit
92aae736c4
@ -49,11 +49,11 @@ export async function checkForUpdate() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
if (verObj.version == currVerObj.version) {
|
if (verObj.version == currVerObj.version) {
|
||||||
|
currVerObj.pubdate = new Date(release.published_at)
|
||||||
currVerObj.changelog = release.body
|
currVerObj.changelog = release.body
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|
||||||
})
|
})
|
||||||
if (!largestVer) {
|
if (!largestVer) {
|
||||||
console.error('No valid version tags to compare with')
|
console.error('No valid version tags to compare with')
|
||||||
@ -65,6 +65,8 @@ export async function checkForUpdate() {
|
|||||||
latestVersion: largestVer.version,
|
latestVersion: largestVer.version,
|
||||||
githubTagUrl: `https://github.com/advplyr/audiobookshelf/releases/tag/v${largestVer.version}`,
|
githubTagUrl: `https://github.com/advplyr/audiobookshelf/releases/tag/v${largestVer.version}`,
|
||||||
currentVersion: currVerObj.version,
|
currentVersion: currVerObj.version,
|
||||||
|
currentTagUrl: `https://github.com/advplyr/audiobookshelf/releases/tag/v${currVerObj.version}`,
|
||||||
|
currentVersionPubDate: currVerObj.pubdate,
|
||||||
currentVersionChangelog: currVerObj.changelog
|
currentVersionChangelog: currVerObj.changelog
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user