Compare commits
4 Commits
cfce669061
...
1e77871bd8
| Author | SHA1 | Date | |
|---|---|---|---|
| 1e77871bd8 | |||
|
|
57e132fafd | ||
| 71b950c57f | |||
| cf82847058 |
@@ -35,9 +35,10 @@ SaveOrPostProgress(Message:="",PostType:=""){
|
||||
if(InStr(PostType, "Tooltip")){
|
||||
TooltipThis(Message)
|
||||
}
|
||||
if(InStr(PostType, "ErrorLoggingTextFile")){
|
||||
/* if(InStr(PostType, "ErrorLoggingTextFile")){
|
||||
Func_LogErrorsToTextFile(Message)
|
||||
}
|
||||
*/
|
||||
if(InStr(PostType, "ErrorSummaryVar")){
|
||||
Func_LogErrorsToVar(Message)
|
||||
}
|
||||
|
||||
@@ -8,7 +8,12 @@ CheckForUpdates(GitReleasesAPIURL){
|
||||
data := URLDownloadToVar(GitReleasesAPIURL)
|
||||
; Msgbox % "data: " data
|
||||
|
||||
parsed := JSON.Load(data)
|
||||
try, parsed := JSON.Load(data)
|
||||
catch e {
|
||||
Message = Failed to check for updates. Gitea Releases API returned blank or malformed data.
|
||||
SaveOrPostProgress(Message:=Message,PostType:="Tooltip,ErrorLoggingTextFile,DiscordErrorLogging")
|
||||
Return
|
||||
}
|
||||
|
||||
UpdateVersionNumber := parsed.1.name
|
||||
|
||||
@@ -17,10 +22,10 @@ CheckForUpdates(GitReleasesAPIURL){
|
||||
|
||||
|
||||
if(ScriptVersion = UpdateVersionNumber OR ScriptVersion > UpdateVersionNumber){
|
||||
ToolTip
|
||||
return 0
|
||||
}
|
||||
else, {
|
||||
ToolTip
|
||||
return 0
|
||||
}
|
||||
else, {
|
||||
UpdateAvailable := 1
|
||||
; msgbox, update found!
|
||||
Message = Program Update Found
|
||||
@@ -36,7 +41,12 @@ CheckForUpdates(GitReleasesAPIURL){
|
||||
UpdateScript(){
|
||||
data := URLDownloadToVar(GitReleasesAPIURL)
|
||||
|
||||
parsed := JSON.Load(data)
|
||||
try parsed := JSON.Load(data)
|
||||
catch e {
|
||||
Message = Failed to check for updates. Gitea Releases API returned blank or malformed data.
|
||||
SaveOrPostProgress(Message:=Message,PostType:="Tooltip,ErrorLoggingTextFile,DiscordErrorLogging")
|
||||
Return
|
||||
}
|
||||
|
||||
UpdateVersionNumber := parsed.1.name
|
||||
ChangeLog := parsed.1.body
|
||||
|
||||
@@ -20,9 +20,9 @@ IfMsgBox Yes, {
|
||||
; Open Instructions Gitea page
|
||||
|
||||
if(InStr(A_ScriptName, "Video"))
|
||||
URL = https://git.freedomainplaylists.com/yuriy/Freedomain-Video-Uploader#installation
|
||||
URL = https://freedomain.dev/yuriy/video-uploader#installation
|
||||
else,
|
||||
URL = https://git.freedomainplaylists.com/yuriy/Freedomain-Social-Media-Poster#installation
|
||||
URL = https://freedomain.dev/yuriy/social-media-poster#installation
|
||||
|
||||
run, %URL%
|
||||
run, "%A_ScriptFullPath%" "LastPost"
|
||||
|
||||
Reference in New Issue
Block a user