Skip to content

Commit

Permalink
image loading now works over remote connections with SSA enabled
Browse files Browse the repository at this point in the history
  • Loading branch information
ccjensen committed Jun 5, 2011
1 parent 85c35f1 commit 7f8353d
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion PlexATV/Classes/PlexPreviewAsset.m
Original file line number Diff line number Diff line change
Expand Up @@ -245,7 +245,10 @@ - (BOOL)hasVideoContent {
}

- (id)imageProxy {
BRURLImageProxy *aImageProxy = [BRURLImageProxy proxyWithURL:self.coverArtRealURL];
NSURLRequest *request = [pmo.request urlRequestWithAuthenticationHeadersForURL:self.coverArtRealURL];

NSDictionary *headerFields = [request allHTTPHeaderFields];
BRURLImageProxy *aImageProxy = [BRURLImageProxy proxyWithURL:[request URL] headerFields:headerFields];
//aImageProxy.writeToDisk = YES;
return aImageProxy;
}
Expand Down

0 comments on commit 7f8353d

Please # to comment.