1
0
mirror of https://github.com/hrfee/jfa-go.git synced 2024-12-28 20:10:11 +00:00

Compare commits

..

3 Commits

Author SHA1 Message Date
dependabot[bot]
52bd61c928
Merge a7e05c5943 into 084f8aa658 2023-09-09 15:03:10 +00:00
084f8aa658
settings: link to new PWR wiki article in note 2023-09-09 16:02:39 +01:00
084a62e60f
updater: account for build/publish time diff 2023-09-08 19:00:19 +01:00
4 changed files with 13 additions and 3 deletions

View File

@ -1012,6 +1012,14 @@
"value": true,
"description": "Enable to store provided email addresses, monitor Jellyfin directory for pw-resets, and send reset pins"
},
"pwr_note": {
"name": "Setup:",
"type": "note",
"value": "",
"depends_true": "enabled",
"required": "false",
"description": "There are multiple ways password resets can be set up. See the <a href=\"https://wiki.jfa-go.com/docs/pwr/\" target=\"_blank\">wiki page</a> for more information."
},
"watch_directory": {
"name": "Jellyfin directory",
"required": false,

1
package-lock.json generated
View File

@ -15,7 +15,6 @@
"any-date-parser": "^1.5.4",
"browserslist": "^4.21.7",
"cheerio": "^1.0.0-rc.12",
"esbuild": "^0.18.20",
"fs-cheerio": "^3.0.0",
"inline-source": "^8.0.2",
"jsdom": "^22.1.0",

View File

@ -469,7 +469,9 @@ class DOMNote implements SNote {
set name(n: string) { this._name.textContent = n; }
get description(): string { return this._description.textContent; }
set description(d: string) { this._description.textContent = d; }
set description(d: string) {
this._description.innerHTML = d;
}
get value(): string { return ""; }
set value(v: string) { return; }

View File

@ -213,7 +213,8 @@ func (ud *Updater) GetTag() (Tag, int, error) {
func (t *Tag) IsNew() bool {
// fmt.Printf("Build Time: %+v, Release Date: %+v", buildTime, t.ReleaseDate)
return t.Version[:7] != commit && t.Ready && t.ReleaseDate.After(buildTime)
// Add 20 minutes to account for build time
return t.Version[:7] != commit && t.Ready && t.ReleaseDate.After(buildTime.Add(time.Duration(20)*time.Minute))
}
func (ud *Updater) getRelease() (release GHRelease, status int, err error) {