mirror of
https://github.com/danbee/persephone
synced 2025-03-04 08:39:11 +00:00
Use NSString helper here
This commit is contained in:
parent
27425b76d6
commit
ae075914b3
@ -55,10 +55,8 @@ extension MPDClient {
|
||||
}
|
||||
|
||||
var path: String {
|
||||
return uriString
|
||||
.split(separator: "/")
|
||||
.dropLast()
|
||||
.joined(separator: "/")
|
||||
return NSString(string: uriString)
|
||||
.deletingLastPathComponent
|
||||
}
|
||||
|
||||
func getTag(_ tagType: MPDTag) -> String {
|
||||
|
||||
Loading…
Reference in New Issue
Block a user