Commit 6b4bb910 authored by Pierre SAGASPE's avatar Pierre SAGASPE Committed by Felix Paul Kühne

plex: implement 'isDownloadable' flag

(cherry picked from commit d3228d23)
Signed-off-by: Felix Paul Kühne's avatarFelix Paul Kühne <fkuehne@videolan.org>
parent c8a0a92f
......@@ -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;
@end
......
......@@ -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
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