Address code review feedback: add validation and improve error handling

Co-authored-by: krau <71133316+krau@users.noreply.github.com>
This commit is contained in:
copilot-swe-agent[bot]
2026-01-28 08:59:56 +00:00
co-authored by krau
parent 943ad190e6
commit 6fbde66415
2 changed files with 9 additions and 1 deletions
+5
View File
@@ -65,6 +65,11 @@ func TestFilenameFromURL(t *testing.T) {
url: "https://cdn.example.com/a/b/c/d/e/video.mkv",
expected: "video.mkv",
},
{
name: "malformed url with invalid characters",
url: "://invalid url",
expected: "",
},
}
for _, tt := range tests {