Commit ba7cbf19 authored by Felix Paul Kühne's avatar Felix Paul Kühne

server browsing: prevent illegitimate poster lookup requests for folders

parent 4c1fb260
......@@ -20,6 +20,5 @@ extern NSString *const VLCServerBrowsingTVCellIdentifier;
@property (nonatomic, weak) IBOutlet VLCNetworkImageView *thumbnailImageView;
@property (nonatomic, weak) IBOutlet UILabel *titleLabel;
@property (nonatomic, weak) IBOutlet UILabel *subtitleLabel;
@property (nonatomic) BOOL isShowingAContainer;
@end
......@@ -73,8 +73,6 @@
- (void)configureCell:(id<VLCServerBrowsingCell>)cell withItem:(id<VLCNetworkServerBrowserItem>)item
{
cell.title = item.name;
if (item.isContainer) {
cell.isDirectory = YES;
cell.thumbnailImage = self.folderImage;
......@@ -101,6 +99,7 @@
cell.isDownloadable = self.allowsFileDownload;
#endif
}
cell.title = item.name;
NSURL *thumbnailURL = nil;
if ([item respondsToSelector:@selector(thumbnailURL)])
......
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