Skip to content

Commit 07e58ed

Browse files
committed
Thorlabs: Fixes
1 parent 4392b26 commit 07e58ed

File tree

5 files changed

+4
-12
lines changed

5 files changed

+4
-12
lines changed

Tasks/Thorlabs.EXULUS-SE1/Script.ps1

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
$Object1 = (Invoke-WebRequest -Uri 'https://www.thorlabs.com/software_pages/check_updates.cfm?ItemID=EXULUS' | Read-ResponseContent | ConvertFrom-Xml).ItemID.SoftwarePkg.Where({ $_.DownloadLink.Contains('EXULUS-SE1') }, 'First')[0]
1+
$Object1 = (Invoke-WebRequest -Uri 'https://www.thorlabs.com/software_pages/check_updates.cfm?ItemID=EXULUS' | Read-ResponseContent | ConvertFrom-Xml).ItemID.SoftwarePkg.Where({ $_.DownloadLink -match 'EXULUS-SE1' }, 'First')[0]
22

33
# Version
44
$this.CurrentState.Version = $Object1.VersionNumber

Tasks/Thorlabs.FSLControl/Script.ps1

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
$Object1 = Invoke-WebRequest -Uri 'https://www.thorlabs.com/software_pages/check_updates.cfm?ItemID=Ytterbia' | Read-ResponseContent
1+
$Object1 = Invoke-WebRequest -Uri 'https://www.thorlabs.com/software_pages/check_updates.cfm?ItemID=Ytterbia' | Read-ResponseContent | ConvertFrom-Xml
22

33
# Version
44
$this.CurrentState.Version = $Object1.ItemID.SoftwarePkg.VersionNumber

Tasks/Thorlabs.Kinesis.x64/Script.ps1

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ switch -Regex ($this.Check()) {
4343
Value = $null
4444
}
4545

46-
$ReleaseNotesUrl = "https://www.thorlabs.com/Software/Motion Control/KINESIS/Application/v$($this.CurrentState.Version)/History.txt"
46+
$ReleaseNotesUrl = $Global:DumplingsStorage.KinesisDownloadPage.tabs.Where({ $_.contentLink.expanded.name -eq 'Kinesis Software' }, 'First')[0].contentLink.expanded.sections.Where({ $_.contentLink.expanded.name -eq 'Kinesis 64-Bit Software for 64-Bit Windows' }, 'First')[0].contentLink.expanded[0].changeLog.url
4747
$Object2 = [System.IO.StreamReader]::new((Invoke-WebRequest -Uri $ReleaseNotesUrl).RawContentStream)
4848

4949
# ReleaseNotesUrl (en-US)

Tasks/Thorlabs.Kinesis.x86/Script.ps1

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ switch -Regex ($this.Check()) {
5656
Value = $null
5757
}
5858

59-
$ReleaseNotesUrl = "https://www.thorlabs.com/Software/Motion Control/KINESIS/Application/v$($this.CurrentState.Version)/History.txt"
59+
$ReleaseNotesUrl = $Global:DumplingsStorage.KinesisDownloadPage.tabs.Where({ $_.contentLink.expanded.name -eq 'Kinesis Software' }, 'First')[0].contentLink.expanded.sections.Where({ $_.contentLink.expanded.name -eq 'Kinesis 32-Bit Software for 64-Bit Windows' }, 'First')[0].contentLink.expanded[0].changeLog.url
6060
$Object2 = [System.IO.StreamReader]::new((Invoke-WebRequest -Uri $ReleaseNotesUrl).RawContentStream)
6161

6262
# ReleaseNotesUrl (en-US)

Tasks/Thorlabs.XA/Script.ps1

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -22,14 +22,6 @@ $this.CurrentState.Version = $VersionX64
2222

2323
switch -Regex ($this.Check()) {
2424
'New|Changed|Updated' {
25-
try {
26-
# ReleaseTime
27-
$this.CurrentState.ReleaseTime = $Global:DumplingsStorage.KinesisDownloadPage.tabs.Where({ $_.contentLink.expanded.name -eq 'XA Software' }, 'First')[0].contentLink.expanded.sections.Where({ $_.contentLink.expanded.name -eq 'XA 64-Bit Software for 64-Bit Windows' }, 'First')[0].contentLink.expanded[0].releaseDate | Get-Date -AsUTC
28-
} catch {
29-
$_ | Out-Host
30-
$this.Log($_, 'Warning')
31-
}
32-
3325
try {
3426
# LicenseUrl (en-US)
3527
$this.CurrentState.Locale += [ordered]@{

0 commit comments

Comments
 (0)