From 324de4beb6a12cbf44c6dabcc4c4bee88b8de609 Mon Sep 17 00:00:00 2001 From: Aiden Vigue Date: Mon, 24 May 2021 15:28:22 -0400 Subject: [PATCH] fix bg update --- JellyfinPlayer.xcodeproj/project.pbxproj | 8 ++++---- JellyfinPlayer/ContentView.swift | 20 -------------------- 2 files changed, 4 insertions(+), 24 deletions(-) diff --git a/JellyfinPlayer.xcodeproj/project.pbxproj b/JellyfinPlayer.xcodeproj/project.pbxproj index 2335ccb1..cffc905d 100644 --- a/JellyfinPlayer.xcodeproj/project.pbxproj +++ b/JellyfinPlayer.xcodeproj/project.pbxproj @@ -10,7 +10,7 @@ 5302F82A2658791C00647A2E /* Sentry in Frameworks */ = {isa = PBXBuildFile; productRef = 5302F8292658791C00647A2E /* Sentry */; }; 5302F82C2658B5FE00647A2E /* Dynatrace.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 5302F82B2658B5FE00647A2E /* Dynatrace.framework */; }; 5302F82F2658B60900647A2E /* DynatraceSessionReplay.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 5302F82E2658B60900647A2E /* DynatraceSessionReplay.framework */; }; - 53192D5D265AA78A008A4215 /* DeviceProfileBuilder.swift in Sources */ = {isa = PBXBuildFile; fileRef = 53192D5C265AA78A008A4215 /* DeviceProfileBuilder.swift */; }; + 53192D5D265AA78A008A4215 /* DeviceCapabilities.swift in Sources */ = {isa = PBXBuildFile; fileRef = 53192D5C265AA78A008A4215 /* DeviceCapabilities.swift */; }; 5338F74E263B61370014BF09 /* ConnectToServerView.swift in Sources */ = {isa = PBXBuildFile; fileRef = 5338F74D263B61370014BF09 /* ConnectToServerView.swift */; }; 5338F751263B62E80014BF09 /* HidingViews in Frameworks */ = {isa = PBXBuildFile; productRef = 5338F750263B62E80014BF09 /* HidingViews */; }; 5338F754263B65E10014BF09 /* SwiftyRequest in Frameworks */ = {isa = PBXBuildFile; productRef = 5338F753263B65E10014BF09 /* SwiftyRequest */; }; @@ -74,7 +74,7 @@ /* Begin PBXFileReference section */ 5302F82B2658B5FE00647A2E /* Dynatrace.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = Dynatrace.framework; path = Carthage/Build/iOS/Dynatrace.framework; sourceTree = ""; }; 5302F82E2658B60900647A2E /* DynatraceSessionReplay.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = DynatraceSessionReplay.framework; path = Carthage/Build/iOS/DynatraceSessionReplay.framework; sourceTree = ""; }; - 53192D5C265AA78A008A4215 /* DeviceProfileBuilder.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = DeviceProfileBuilder.swift; sourceTree = ""; }; + 53192D5C265AA78A008A4215 /* DeviceCapabilities.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = DeviceCapabilities.swift; sourceTree = ""; }; 5338F74D263B61370014BF09 /* ConnectToServerView.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = ConnectToServerView.swift; sourceTree = ""; }; 535BAE9E2649E569005FA86D /* ItemView.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = ItemView.swift; sourceTree = ""; }; 535BAEA4264A151C005FA86D /* VLCPlayer.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = VLCPlayer.swift; sourceTree = ""; }; @@ -176,7 +176,7 @@ 53987CA326572C1300E7EA70 /* SeasonItemView.swift */, 53987CA526572F0700E7EA70 /* SeriesItemView.swift */, 53987CA72657424A00E7EA70 /* EpisodeItemView.swift */, - 53192D5C265AA78A008A4215 /* DeviceProfileBuilder.swift */, + 53192D5C265AA78A008A4215 /* DeviceCapabilities.swift */, ); path = JellyfinPlayer; sourceTree = ""; @@ -323,7 +323,7 @@ 5389276E263C25100035E14B /* ContinueWatchingView.swift in Sources */, 535BAE9F2649E569005FA86D /* ItemView.swift in Sources */, 53987CA426572C1300E7EA70 /* SeasonItemView.swift in Sources */, - 53192D5D265AA78A008A4215 /* DeviceProfileBuilder.swift in Sources */, + 53192D5D265AA78A008A4215 /* DeviceCapabilities.swift in Sources */, 53892770263C25230035E14B /* NextUpView.swift in Sources */, 535BAEA5264A151C005FA86D /* VLCPlayer.swift in Sources */, 5377CC01263B596B003A4E83 /* Model.xcdatamodeld in Sources */, diff --git a/JellyfinPlayer/ContentView.swift b/JellyfinPlayer/ContentView.swift index 68861b42..c02f74f5 100644 --- a/JellyfinPlayer/ContentView.swift +++ b/JellyfinPlayer/ContentView.swift @@ -328,26 +328,6 @@ struct ContentView: View { } } } - - let request2 = RestRequest(method: .get, url: (globalData.server?.baseURI ?? "") + "/System/Endpoint") - request2.headerParameters["X-Emby-Authorization"] = globalData.authHeader - request2.contentType = "application/json" - request2.acceptType = "application/json" - - request2.responseData(){ (result: Result, RestError>) in - switch result { - case .success( let resp): - do { - let json = try JSON(data: resp.body) - globalData.isInNetwork = json["IsInNetwork"].bool ?? true; - } catch { - - } - break - case .failure( let error): - break; - } - } } }