From 9ccd37f754db33a190a9867bd5a310dfe5f4d17c Mon Sep 17 00:00:00 2001 From: Shav Kinderlehrer Date: Tue, 12 Dec 2023 17:12:58 -0500 Subject: [PATCH] Use System/Info/Public instead of Users/Public to verify server --- Jel.xcodeproj/project.pbxproj | 2 +- Jel/Controllers/JellyfinClientController.swift | 2 +- Jel/{ => Views}/ContentView.swift | 0 3 files changed, 2 insertions(+), 2 deletions(-) rename Jel/{ => Views}/ContentView.swift (100%) diff --git a/Jel.xcodeproj/project.pbxproj b/Jel.xcodeproj/project.pbxproj index cc85edc..20b4838 100644 --- a/Jel.xcodeproj/project.pbxproj +++ b/Jel.xcodeproj/project.pbxproj @@ -108,6 +108,7 @@ 3D1015D72B27F54A00F5C29A /* Views */ = { isa = PBXGroup; children = ( + 3D9063CC2B279A310063DD2A /* ContentView.swift */, 3D91FDC52B28C28900919017 /* SignIn */, ); path = Views; @@ -160,7 +161,6 @@ 3D1015DF2B27F8EE00F5C29A /* Controllers */, 3D1015D72B27F54A00F5C29A /* Views */, 3D9063CA2B279A310063DD2A /* JelApp.swift */, - 3D9063CC2B279A310063DD2A /* ContentView.swift */, 3D9063CE2B279A320063DD2A /* Assets.xcassets */, 3D9063D02B279A320063DD2A /* Jel.entitlements */, 3D9063D12B279A320063DD2A /* Preview Content */, diff --git a/Jel/Controllers/JellyfinClientController.swift b/Jel/Controllers/JellyfinClientController.swift index b50157e..a80b908 100644 --- a/Jel/Controllers/JellyfinClientController.swift +++ b/Jel/Controllers/JellyfinClientController.swift @@ -60,7 +60,7 @@ class JellyfinClientController: ObservableObject { } func isJellyfinServer() async -> Bool { - let request = Paths.getPublicUsers + let request = Paths.getPublicSystemInfo do { let res = try await api.send(request) if res.statusCode != 200 { diff --git a/Jel/ContentView.swift b/Jel/Views/ContentView.swift similarity index 100% rename from Jel/ContentView.swift rename to Jel/Views/ContentView.swift