mirror of
https://github.com/yattee/yattee.git
synced 2025-08-06 10:44:06 +00:00
Fix for loading subscriptions
This commit is contained in:
@@ -30,11 +30,12 @@ final class InvidiousAPI: Service {
|
||||
$0.pipeline[.parsing].add(SwiftyJSONTransformer, contentTypes: ["*/json"])
|
||||
}
|
||||
|
||||
configure("/auth/**") {
|
||||
configure(requestMethods: [.get]) {
|
||||
$0.headers["Cookie"] = self.authHeader
|
||||
}
|
||||
|
||||
configure("**", requestMethods: [.post]) {
|
||||
$0.headers["Cookie"] = self.authHeader
|
||||
$0.pipeline[.parsing].removeTransformers()
|
||||
}
|
||||
|
||||
@@ -108,6 +109,10 @@ final class InvidiousAPI: Service {
|
||||
.withParam("region", country.rawValue)
|
||||
}
|
||||
|
||||
var home: Resource {
|
||||
resource(baseURL: InvidiousAPI.instance, path: "/feed/subscriptions")
|
||||
}
|
||||
|
||||
var feed: Resource {
|
||||
resource("/auth/feed")
|
||||
}
|
||||
|
@@ -6,7 +6,6 @@ struct Profile {
|
||||
|
||||
var skippedSegmentsCategories = [String]() // SponsorBlockSegmentsProvider.categories
|
||||
|
||||
// var sid = "B3_WzklziGu8JKefihLrCsTNavdj73KMiPUBfN5HW2M="
|
||||
var sid = "RpoS7YPPK2-QS81jJF9z4KSQAjmzsOnMpn84c73-GQ8="
|
||||
|
||||
var cellsColumns = 3
|
||||
|
Reference in New Issue
Block a user