Skip to content
This repository has been archived by the owner on Nov 14, 2024. It is now read-only.

Commit

Permalink
Fix MonosChinos+Featured
Browse files Browse the repository at this point in the history
  • Loading branch information
ExuApplePie committed Jan 28, 2022
1 parent 6dc7924 commit bdb44bf
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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]

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down Expand Up @@ -77,7 +76,6 @@ extension NASourceMonosChinos {
}
}


let decodedData = Data(base64Encoded: encodedPlayerId)!
let decodedString = String(data: decodedData, encoding: .utf8)!

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,18 +26,18 @@ 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(
string: try animeContainer.select("a").attr("href")
).tryUnwrap()

let animeTitle = try animeContainer
.select("h3.Title")
.select("div > h5")
.text()
.trimmingCharacters(in: .whitespacesAndNewlines)

Expand Down

0 comments on commit bdb44bf

Please sign in to comment.