Commit d3228d23 authored by Pierre SAGASPE's avatar Pierre SAGASPE

plex: implement 'isDownloadable' flag

parent 2a93ee36
......@@ -30,6 +30,7 @@ NS_ASSUME_NONNULL_BEGIN
@property (nonatomic, readonly, nullable) NSString *duration;
@property (nonatomic, readonly, nullable) NSURL *subtitleURL;
@property (nonatomic, readonly, nullable) NSURL *thumbnailURL;
@property (nonatomic, getter=isDownloadable, readonly) BOOL downloadable;
......@@ -202,6 +202,12 @@
return self;
- (BOOL)isDownloadable
//VLC also needs an extension in the filename for this to work.
return YES;
- (VLCMedia *)media
if (!_URL)
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment