mirror of
https://github.com/zarzet/SpotiFLAC-Mobile.git
synced 2026-07-03 19:27:57 +02:00
Compare commits
2 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| 6ac4f555f6 | |||
| 098544393e |
@@ -6,6 +6,12 @@
|
|||||||
<img alt="SpotiFLAC Mobile" src="assets/images/banner-readme-light.png" width="650" height="auto">
|
<img alt="SpotiFLAC Mobile" src="assets/images/banner-readme-light.png" width="650" height="auto">
|
||||||
</picture>
|
</picture>
|
||||||
|
|
||||||
|
<p align="center">
|
||||||
|
<a href="https://trendshift.io/repositories/17247">
|
||||||
|
<img src="https://trendshift.io/api/badge/repositories/17247" alt="zarzet%2FSpotiFLAC-Mobile | Trendshift" width="250" height="55">
|
||||||
|
</a>
|
||||||
|
</p>
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
## Screenshots
|
## Screenshots
|
||||||
|
|||||||
@@ -160,38 +160,6 @@ import Gobackend // Import Go framework
|
|||||||
if let error = error { throw error }
|
if let error = error { throw error }
|
||||||
return response
|
return response
|
||||||
|
|
||||||
case "getSpotifyMetadata":
|
|
||||||
let args = call.arguments as! [String: Any]
|
|
||||||
let url = args["url"] as! String
|
|
||||||
let response = GobackendGetSpotifyMetadata(url, &error)
|
|
||||||
if let error = error { throw error }
|
|
||||||
return response
|
|
||||||
|
|
||||||
case "searchSpotify":
|
|
||||||
let args = call.arguments as! [String: Any]
|
|
||||||
let query = args["query"] as! String
|
|
||||||
let limit = args["limit"] as? Int ?? 10
|
|
||||||
let response = GobackendSearchSpotify(query, Int(limit), &error)
|
|
||||||
if let error = error { throw error }
|
|
||||||
return response
|
|
||||||
|
|
||||||
case "searchSpotifyAll":
|
|
||||||
let args = call.arguments as! [String: Any]
|
|
||||||
let query = args["query"] as! String
|
|
||||||
let trackLimit = args["track_limit"] as? Int ?? 15
|
|
||||||
let artistLimit = args["artist_limit"] as? Int ?? 3
|
|
||||||
let response = GobackendSearchSpotifyAll(query, Int(trackLimit), Int(artistLimit), &error)
|
|
||||||
if let error = error { throw error }
|
|
||||||
return response
|
|
||||||
|
|
||||||
case "getSpotifyRelatedArtists":
|
|
||||||
let args = call.arguments as! [String: Any]
|
|
||||||
let artistId = args["artist_id"] as! String
|
|
||||||
let limit = args["limit"] as? Int ?? 12
|
|
||||||
let response = GobackendGetSpotifyRelatedArtists(artistId, Int(limit), &error)
|
|
||||||
if let error = error { throw error }
|
|
||||||
return response
|
|
||||||
|
|
||||||
case "checkAvailability":
|
case "checkAvailability":
|
||||||
let args = call.arguments as! [String: Any]
|
let args = call.arguments as! [String: Any]
|
||||||
let spotifyId = args["spotify_id"] as! String
|
let spotifyId = args["spotify_id"] as! String
|
||||||
@@ -510,17 +478,6 @@ import Gobackend // Import Go framework
|
|||||||
GobackendClearTrackCache()
|
GobackendClearTrackCache()
|
||||||
return nil
|
return nil
|
||||||
|
|
||||||
case "setSpotifyCredentials":
|
|
||||||
let args = call.arguments as! [String: Any]
|
|
||||||
let clientId = args["client_id"] as! String
|
|
||||||
let clientSecret = args["client_secret"] as! String
|
|
||||||
GobackendSetSpotifyAPICredentials(clientId, clientSecret)
|
|
||||||
return nil
|
|
||||||
|
|
||||||
case "hasSpotifyCredentials":
|
|
||||||
let hasCredentials = GobackendCheckSpotifyCredentials()
|
|
||||||
return hasCredentials
|
|
||||||
|
|
||||||
// Log methods
|
// Log methods
|
||||||
case "getLogs":
|
case "getLogs":
|
||||||
let response = GobackendGetLogs()
|
let response = GobackendGetLogs()
|
||||||
|
|||||||
Reference in New Issue
Block a user