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 <kode54@gmail.com>
CQTexperiment
Christopher Snowhill 2022-01-27 00:11:14 -08:00
parent cc2b27d43f
commit 2541633c17
1 changed files with 4 additions and 1 deletions

View File

@ -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;