소스 검색

server browsing: prevent illegitimate poster lookup requests for folders

Felix Paul Kühne 9 년 전
부모
커밋
ba7cbf19e8
2개의 변경된 파일1개의 추가작업 그리고 3개의 파일을 삭제
  1. 0 1
      Apple-TV/VLCServerBrowsingTVCell.h
  2. 1 2
      SharedSources/ServerBrowsing/VLCServerBrowsingController.m

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