Improve settings

This commit is contained in:
Arkadiusz Fal
2021-11-04 23:01:27 +01:00
parent d50b136b38
commit dc9cbd34d0
9 changed files with 120 additions and 81 deletions

View File

@@ -169,7 +169,7 @@ final class InvidiousAPI: Service, ObservableObject, VideosAPI {
func trending(country: Country, category: TrendingCategory?) -> Resource {
resource(baseURL: account.url, path: "\(InvidiousAPI.basePath)/trending")
.withParam("type", category!.name)
.withParam("type", category?.name)
.withParam("region", country.rawValue)
}