Skip to content

Commit

Permalink
Fixed warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
4np committed Apr 10, 2017
1 parent bb62b47 commit bb0aa48
Show file tree
Hide file tree
Showing 6 changed files with 3 additions and 6 deletions.
1 change: 0 additions & 1 deletion NPOKit/NPOKit/NPOEpisode.swift
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,6 @@ open class NPOEpisode: NPORestrictedMedia {

open var subtitleURL: URL? {
guard let mid = mid else { return nil }
let transport = NPOManager.sharedInstance.transport
return URL(string: "https://tt888.omroep.nl/tt888/\(mid)")
}

Expand Down
2 changes: 1 addition & 1 deletion NPOKit/NPOKit/NPOManager+Episodes.swift
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ extension NPOManager {
// https://apps-api.uitzendinggemist.nl/episodes/search/reizen.json
public func getEpisodes(bySearchTerm term: String, withCompletion completed: @escaping (_ episodes: [NPOEpisode]?, _ error: NPOError?) -> Void = { episodes, error in }) -> Request? {
let encodedTerm = term.addingPercentEncoding(withAllowedCharacters: .urlPathAllowed)
let path = "episodes/search/\(encodedTerm).json"
let path = "episodes/search/\(String(describing: encodedTerm)).json"
return self.fetchModels(ofType: NPOEpisode.self, fromPath: path, withCompletion: completed)
}

Expand Down
1 change: 0 additions & 1 deletion NPOKit/NPOKit/NPOManager+GitHubReleases.swift
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@ import Alamofire
extension NPOManager {
// https://api.github.com/repos/:user/:repo/releases
public func getGitHubReleases(forUsername username: String, andRepositoryName repository: String, withCompletion completed: @escaping (_ releases: [GitHubRelease]?, _ error: NPOError?) -> Void = { releases, error in }) {
let transport = NPOManager.sharedInstance.transport
let url = "https://api.github.com/repos/\(username)/\(repository)/releases"
_ = self.fetchModels(ofType: GitHubRelease.self, fromURL: url, withKeyPath: nil, withCompletion: completed)
}
Expand Down
1 change: 0 additions & 1 deletion NPOKit/NPOKit/NPOManager+Token.swift
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,6 @@ extension NPOManager {
}

// refresh token
let transport = NPOManager.sharedInstance.transport
let url = "https://ida.omroep.nl/app.php/auth"
_ = fetchModel(ofType: NPOToken.self, fromURL: url) { [weak self] token, error in
//DDLogDebug("Refreshed token: \(token)")
Expand Down
2 changes: 1 addition & 1 deletion NPOKit/NPOKit/NPOProgram.swift
Original file line number Diff line number Diff line change
Expand Up @@ -243,7 +243,7 @@ open class NPOProgram: NPORestrictedMedia {
// fetch the episodes for this program
_ = NPOManager.sharedInstance.getEpisodes(forProgram: self) { episodes, error in
guard let episodes = episodes else {
DDLogError("Could not fetch episodes for program (\(error))")
DDLogError("Could not fetch episodes for program (\(String(describing: error)))")
return
}

Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ using a web app hosted on a remote server.
# Features

- Fast *_native_* app for Apple TV
- Confirmed to work abroad via [Unlocator](https://unlocator.com/account/aff/go/fMJQHpiASKffCbxepcEY?keyword=readme)
- Confirmed to work abroad via [Unlocator](https://unlocator.com/account/aff/go/fMJQHpiASKffCbxepcEY?keyword=readme) (_disable_ the secure transport setting in the configuration view)
- Easy to use interface for browsing Programs and Episodes
- Live streaming TV and themed channels
- The possibility to (un)favorite programs
Expand Down

0 comments on commit bb0aa48

Please sign in to comment.