From 7f8353dc860db795f3dc55ac499a5488d9c82acf Mon Sep 17 00:00:00 2001 From: Chris Jensen Date: Sat, 4 Jun 2011 17:37:16 -0700 Subject: [PATCH] image loading now works over remote connections with SSA enabled --- PlexATV/Classes/PlexPreviewAsset.m | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/PlexATV/Classes/PlexPreviewAsset.m b/PlexATV/Classes/PlexPreviewAsset.m index 6f8c36c..93a9d14 100644 --- a/PlexATV/Classes/PlexPreviewAsset.m +++ b/PlexATV/Classes/PlexPreviewAsset.m @@ -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; }