From 6f94fa0b4675f49610de530d5377807c222df489 Mon Sep 17 00:00:00 2001 From: Stephan Yelle Date: Sat, 20 Dec 2025 19:27:27 -0500 Subject: [PATCH] Update samy.ps1 --- samy.ps1 | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/samy.ps1 b/samy.ps1 index 729786e..32ef4b3 100644 --- a/samy.ps1 +++ b/samy.ps1 @@ -978,10 +978,13 @@ function Get-UIHtml { function Get-SamyTasks { [CmdletBinding()] - param() + param( + [Parameter(Mandatory = $true)] + [string]$Url + ) try { - $json = Get-RemoteText -Url $Script:SamyTasksUrl + $json = Get-RemoteText -Url $Url if ([string]::IsNullOrWhiteSpace($json)) { throw "Tasks JSON was empty." } @@ -995,12 +998,13 @@ function Get-SamyTasks { return $tasks } catch { - Write-LogHybrid "Failed to load samy.tasks.json: $($_.Exception.Message). Falling back to embedded tasks." Warning UI -LogToEvent + Write-LogHybrid "Failed to load tasks from ${Url}: $($_.Exception.Message)" Warning UI -LogToEvent return $null } } + #endregion UIHtml