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 {
|
var path: String {
|
||||||
return uriString
|
return NSString(string: uriString)
|
||||||
.split(separator: "/")
|
.deletingLastPathComponent
|
||||||
.dropLast()
|
|
||||||
.joined(separator: "/")
|
|
||||||
}
|
}
|
||||||
|
|
||||||
func getTag(_ tagType: MPDTag) -> String {
|
func getTag(_ tagType: MPDTag) -> String {
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user