From bdb44bf1352fd96109e723d72d70fa2214bf0b17 Mon Sep 17 00:00:00 2001 From: ExuApplePie <75225599+ExuApplePie@users.noreply.github.com> Date: Fri, 28 Jan 2022 10:16:30 -0700 Subject: [PATCH] Fix MonosChinos+Featured --- .../AnimeSources/MonoSchinos/MonosChinos+Anime.swift | 6 +++--- .../AnimeSources/MonoSchinos/MonosChinos+Episode.swift | 2 -- .../AnimeSources/MonoSchinos/MonosChinos+Featured.swift | 6 +++--- 3 files changed, 6 insertions(+), 8 deletions(-) diff --git a/Modules/Sources/NineAnimatorNativeSources/AnimeSources/MonoSchinos/MonosChinos+Anime.swift b/Modules/Sources/NineAnimatorNativeSources/AnimeSources/MonoSchinos/MonosChinos+Anime.swift index 2f045c5b..8a32241a 100644 --- a/Modules/Sources/NineAnimatorNativeSources/AnimeSources/MonoSchinos/MonosChinos+Anime.swift +++ b/Modules/Sources/NineAnimatorNativeSources/AnimeSources/MonoSchinos/MonosChinos+Anime.swift @@ -110,12 +110,12 @@ extension NASourceMonosChinos { .trimmingCharacters(in: .whitespacesAndNewlines) // Attributes - var additionalAnimeAttributes = [Anime.AttributeKey: Any]() - let date = try bowl + let additionalAnimeAttributes = [Anime.AttributeKey: Any]() /* +// let date = try bowl .select("header > .row > div > .after-title") .text() .trimmingCharacters(in: .whitespacesAndNewlines) - .components(separatedBy: " ") + .components(separatedBy: " ") */ // additionalAnimeAttributes[.airDate] = date[0] diff --git a/Modules/Sources/NineAnimatorNativeSources/AnimeSources/MonoSchinos/MonosChinos+Episode.swift b/Modules/Sources/NineAnimatorNativeSources/AnimeSources/MonoSchinos/MonosChinos+Episode.swift index 65ba79fc..bc0dfd3f 100644 --- a/Modules/Sources/NineAnimatorNativeSources/AnimeSources/MonoSchinos/MonosChinos+Episode.swift +++ b/Modules/Sources/NineAnimatorNativeSources/AnimeSources/MonoSchinos/MonosChinos+Episode.swift @@ -30,7 +30,6 @@ let VIDEOBIN = "videobin" let MP4UPLOAD = "mp4upload" let serverList = [FEMBED, UQLOAD, PLAYERSB, STREAMTAPE, VIDEOBIN, MP4UPLOAD] - extension NASourceMonosChinos { static let knownServers = [ "Cloud": "MonosChinos", @@ -77,7 +76,6 @@ extension NASourceMonosChinos { } } - let decodedData = Data(base64Encoded: encodedPlayerId)! let decodedString = String(data: decodedData, encoding: .utf8)! diff --git a/Modules/Sources/NineAnimatorNativeSources/AnimeSources/MonoSchinos/MonosChinos+Featured.swift b/Modules/Sources/NineAnimatorNativeSources/AnimeSources/MonoSchinos/MonosChinos+Featured.swift index e3747945..25f8353e 100644 --- a/Modules/Sources/NineAnimatorNativeSources/AnimeSources/MonoSchinos/MonosChinos+Featured.swift +++ b/Modules/Sources/NineAnimatorNativeSources/AnimeSources/MonoSchinos/MonosChinos+Featured.swift @@ -26,10 +26,10 @@ extension NASourceMonosChinos { self.requestManager.request("/emision", handling: .browsing).responseString.then { responseContent in let bowl = try SwiftSoup.parse(responseContent) - let seasonAnime = try bowl.select(".container > .row > article > a").map { + let seasonAnime = try bowl.select(".heromain > .row > div > a").map { animeContainer -> AnimeLink in let artworkUrl = URL( - string: try animeContainer.select(".Image > figure > img").attr("src") + string: try animeContainer.select(".series > .seriesimg > img").attr("src") ) ?? NineAnimator.placeholderArtworkUrl let animeLink = try URL( @@ -37,7 +37,7 @@ extension NASourceMonosChinos { ).tryUnwrap() let animeTitle = try animeContainer - .select("h3.Title") + .select("div > h5") .text() .trimmingCharacters(in: .whitespacesAndNewlines)