Commit a46cd3a7 authored by Pierre SAGASPE's avatar Pierre SAGASPE

ftp: implement 'isDownloadable' flag

parent 372fef93
......@@ -27,6 +27,7 @@ NS_ASSUME_NONNULL_BEGIN
- (instancetype)initWithDictionary:(NSDictionary *)dict baseURL:(NSURL *)baseURL;
@property (nonatomic, readwrite) NSArray<id<VLCNetworkServerBrowserItem>> *items;
@property (nonatomic, getter=isDownloadable, readonly) BOOL downloadable;
@end
......
......@@ -155,6 +155,12 @@
return [[VLCNetworkServerBrowserFTP alloc] initWithURL:self.URL];
}
- (BOOL)isDownloadable
{
//VLC also needs an extension in the filename for this to work.
return YES;
}
- (VLCMedia *)media
{
if (_URL)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment