Explorar o código

server browsing: prevent illegitimate poster lookup requests for folders

Felix Paul Kühne %!s(int64=9) %!d(string=hai) anos
pai
achega
ba7cbf19e8

+ 0 - 1
Apple-TV/VLCServerBrowsingTVCell.h

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

+ 1 - 2
SharedSources/ServerBrowsing/VLCServerBrowsingController.m

@@ -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)])