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

Commit

Permalink
Add .fail() to Pantsubase files
Browse files Browse the repository at this point in the history
  • Loading branch information
ExuApplePie committed Jan 28, 2022
1 parent 8ceb109 commit 640341d
Show file tree
Hide file tree
Showing 5 changed files with 14 additions and 11 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ import NineAnimatorCommon

extension NASourcePantsubase {
func anime(from link: AnimeLink) -> NineAnimatorPromise<Anime> {
.fail(.contentUnavailableError("Pantsubase is no longer available on NineAnimator"))/*
requestManager.request(url: link.link)
.responseBowl
.then {
Expand Down Expand Up @@ -100,6 +101,6 @@ extension NASourcePantsubase {
on: NASourcePantsubase.knownServers,
episodes: episodeCollection
)
}
}*/
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -20,12 +20,13 @@
import Foundation
import NineAnimatorCommon

extension NASourcePantsubase {
extension NASourcePantsubase {/*
static let knownServers = [
"pantsudrive": "Pantsudrive" // These names lol
]

*/
func episode(from link: EpisodeLink, with anime: Anime) -> NineAnimatorPromise<Episode> {
.fail(.contentUnavailableError("Pantsubase is no longer available on NineAnimator")) /*
requestManager.request(url: link.identifier)
.responseBowl
.then {
Expand All @@ -45,6 +46,6 @@ extension NASourcePantsubase {
target: iFrameURL,
parent: anime
)
}
} */
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ import NineAnimatorCommon

extension NASourcePantsubase {
func featured() -> NineAnimatorPromise<FeaturedContainer> {
.fail(.contentUnavailableError("Pantsubase is no longer available on NineAnimator"))/*
self.requestManager.request(endpoint)
.responseBowl
.then { bowl in
Expand Down Expand Up @@ -56,6 +57,6 @@ extension NASourcePantsubase {
)
}
return BasicFeaturedContainer(featured: [], latest: links)
}
}*/
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ extension NASourcePantsubase {
page == 0 ? _results?.map { .anime($0) } ?? [] : []
}

func more() {
func more() {/*
if performingTask == nil {
performingTask = parent.requestManager.request(
url: parent.endpointURL.appendingPathComponent("/search"),
Expand Down Expand Up @@ -96,7 +96,7 @@ extension NASourcePantsubase {
self._results = $0
self.delegate?.pageIncoming(0, from: self)
}
}
}*/
}

init(_ query: String, withParent parent: NASourcePantsubase) {
Expand Down
8 changes: 4 additions & 4 deletions NineAnimator.xcodeproj/project.pbxproj
Original file line number Diff line number Diff line change
Expand Up @@ -2047,7 +2047,7 @@
CODE_SIGN_STYLE = Automatic;
CURRENT_PROJECT_VERSION = 6;
DERIVE_MACCATALYST_PRODUCT_BUNDLE_IDENTIFIER = YES;
DEVELOPMENT_TEAM = 8WB2V923XT;
DEVELOPMENT_TEAM = 44NALR45BD;
ENABLE_BITCODE = NO;
INFOPLIST_FILE = NineAnimator/Info.plist;
IPHONEOS_DEPLOYMENT_TARGET = 12.0;
Expand All @@ -2056,7 +2056,7 @@
"@executable_path/Frameworks",
);
MARKETING_VERSION = 1.2.7;
PRODUCT_BUNDLE_IDENTIFIER = com.marcuszhou.NineAnimator;
PRODUCT_BUNDLE_IDENTIFIER = homura.NineAnimator;
PRODUCT_NAME = "$(TARGET_NAME)";
PROVISIONING_PROFILE_SPECIFIER = "";
SUPPORTS_MACCATALYST = YES;
Expand All @@ -2078,7 +2078,7 @@
CODE_SIGN_STYLE = Automatic;
CURRENT_PROJECT_VERSION = 6;
DERIVE_MACCATALYST_PRODUCT_BUNDLE_IDENTIFIER = YES;
DEVELOPMENT_TEAM = 8WB2V923XT;
DEVELOPMENT_TEAM = 44NALR45BD;
ENABLE_BITCODE = NO;
INFOPLIST_FILE = NineAnimator/Info.plist;
IPHONEOS_DEPLOYMENT_TARGET = 12.0;
Expand All @@ -2087,7 +2087,7 @@
"@executable_path/Frameworks",
);
MARKETING_VERSION = 1.2.7;
PRODUCT_BUNDLE_IDENTIFIER = com.marcuszhou.NineAnimator;
PRODUCT_BUNDLE_IDENTIFIER = homura.NineAnimator;
PRODUCT_NAME = "$(TARGET_NAME)";
PROVISIONING_PROFILE_SPECIFIER = "";
SUPPORTS_MACCATALYST = YES;
Expand Down

0 comments on commit 640341d

Please sign in to comment.