From 2541633c17888208b927a729c7765d58580c30af Mon Sep 17 00:00:00 2001 From: Christopher Snowhill Date: Thu, 27 Jan 2022 00:11:14 -0800 Subject: [PATCH] Playlist Entry: Display full URL for remotes For Playlist Entries that are not File URLs, return the full absolute URL for path queries, so the playlist path column will show the full URL instead of a useless reduced path string. Fixes #214. Signed-off-by: Christopher Snowhill --- Playlist/PlaylistEntry.m | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/Playlist/PlaylistEntry.m b/Playlist/PlaylistEntry.m index fd7573155..e83d9f9a5 100644 --- a/Playlist/PlaylistEntry.m +++ b/Playlist/PlaylistEntry.m @@ -456,7 +456,10 @@ @dynamic path; - (NSString *)path { - return [[self.URL path] stringByAbbreviatingWithTildeInPath]; + if ([self.URL isFileURL]) + return [[self.URL path] stringByAbbreviatingWithTildeInPath]; + else + return [self.URL absoluteString]; } @dynamic filename;