Archived
1

Added option for displayed number of search results

This commit is contained in:
Kim Wittenburg
2015-09-15 16:54:22 +02:00
committed by Kim Wittenburg
parent 24bb68f7d8
commit 548214479a
4 changed files with 89 additions and 33 deletions

View File

@@ -129,7 +129,7 @@ public struct iTunesAPI {
if searchTerm.isEmpty {
return nil
}
return NSURL(string: "https://itunes.apple.com/search?term=\(searchTerm)&media=music&entity=album&limit=10&country=de&lang=de_DE")
return NSURL(string: "https://itunes.apple.com/search?term=\(searchTerm)&media=music&entity=album&limit=\(Preferences.sharedPreferences.numberOfSearchResults)&country=de&lang=de_DE")
}
/// Creates an URL that looks up all tracks that belong to the album with the