Jump to content

Cast Images Failing to Download


Recommended Posts

runtimesandbox
Posted (edited)

Since the latest stable that included fixes for missing cast images, I am still experiencing issues when browsing to a media item that has cast image urls saved in the DB.

Some will download and others will fail leaving an empty transparent square. This remains until i manually click it to go to the cast page at which point it downloads. If I don't click on the actor image the image will not download.

Separately, some of the cast image urls that are stored in the database no longer exist, as per this thread (https://emby.media/community/index.php?/topic/85812-artistsactors-images-disappeared-randomly/page/5/) was the latest update not meant to include a fix that would update the cast URL?

Emby server latest stable

Running on Ubuntu Linux

 

In the log I can see that ffdectect has failed, even though the URL is trying is valid

2020-10-21 23:47:32.372 Info HttpServer: HTTP Response 500 to 123.123.123.123. Time: 122ms. https://domain.com/emby/Items/107789/Images/Primary?maxWidth=194&tag=ae37a9f66ce01f177432ae8b7c8f1f6d&quality=90. ConnectionId: 0HM3M3E7LHARH
2020-10-21 23:47:32.381 Info HttpServer: HTTP GET https://domain.com/emby/Items/81114/Images/Primary?maxWidth=194&tag=53c8b00c9c1da23af6133b8e57bb58ba&quality=90. UserAgent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/86.0.4240.75 Safari/537.36
2020-10-21 23:47:32.382 Debug App: ConvertImageToLocal item 81114 - image url: https://image.tmdb.org/t/p/original/u9ZZDJWYJkc1yNFSLEMaIM5Q20y.jpg
2020-10-21 23:47:32.382 Info HttpClient: GET https://image.tmdb.org/t/p/original/u9ZZDJWYJkc1yNFSLEMaIM5Q20y.jpg
2020-10-21 23:47:32.404 Debug ProviderManager: Saving image to /var/lib/emby/metadata/library/ff/ffd6011d46054fc99379e30cdbd72be5/folder.jpg
2020-10-21 23:47:32.420 Debug ImageProcessor: Image encoding took 14ms for /var/lib/emby/metadata/library/ff/ffd6011d46054fc99379e30cdbd72be5/folder.jpg
2020-10-21 23:47:32.422 Info HttpServer: HTTP Response 200 to 123.123.123.123. Time: 88ms. https://domain.com/emby/Items/107790/Images/Primary?maxWidth=194&tag=e42536b3836a63e8b597190d9b481911&quality=90. ConnectionId: 0HM3M3E7LHARI
2020-10-21 23:47:32.423 Error HttpServer: Error processing request
	*** Error Report ***
	Version: 4.5.2.0
	Command line: /opt/emby-server/system/EmbyServer.dll -programdata /var/lib/emby -ffdetect /opt/emby-server/bin/ffdetect -ffmpeg /opt/emby-server/bin/ffmpeg -ffprobe /opt/emby-server/bin/ffprobe -restartexitcode 3 -updatepackage emby-server-deb_{version}_amd64.deb
	Operating system: Linux version 5.6.0-050600-generic (kernel@sita) (gcc version 9.3.0 (Ubuntu 9.3.0-8ubuntu1)) #202003292333 SMP Sun Mar 29 23:35:58 UTC 2020
	Framework: .NET Core 3.1.7
	OS/Process: x64/x64
	Runtime: opt/emby-server/system/System.Private.CoreLib.dll
	Processor count: 12
	Data path: /var/lib/emby
	Application path: /opt/emby-server/system
	System.InvalidOperationException: System.InvalidOperationException: Operation is not valid due to the current state of the object.
	   at Emby.Server.Implementations.Library.LibraryManager.ConvertImageToLocal(BaseItem item, ItemImageInfo image, Int32 imageIndex, CancellationToken cancellationToken)
	   at Emby.Drawing.ImageProcessor.ProcessImage(ImageProcessingOptions options, CancellationToken cancellationToken)
	   at MediaBrowser.Api.Images.ImageService.GetImage(ImageRequest request, Int64 itemId, BaseItem item, Boolean isHeadRequest)
	   at Emby.Server.Implementations.Services.ServiceController.GetTaskResult(Task task)
	   at Emby.Server.Implementations.Services.ServiceHandler.ProcessRequestAsync(HttpListenerHost appHost, IRequest httpReq, IResponse httpRes, RestPath restPath, String responseContentType, CancellationToken cancellationToken)
	   at Emby.Server.Implementations.HttpServer.HttpListenerHost.RequestHandler(IRequest httpReq, ReadOnlyMemory`1 urlString, ReadOnlyMemory`1 localPath, CancellationToken cancellationToken)
	Source: Emby.Server.Implementations
	TargetSite: Void MoveNext()
	
2020-10-21 23:47:32.424 Info HttpServer: HTTP Response 500 to 123.123.123.123. Time: 42ms. https://domain.com/emby/Items/81114/Images/Primary?maxWidth=194&tag=53c8b00c9c1da23af6133b8e57bb58ba&quality=90. ConnectionId: 0HM3M3E7LHARJ
2020-10-21 23:47:32.433 Info HttpServer: HTTP GET https://domain.com/emby/Items/71249/Images/Primary?maxWidth=194&tag=062e8568f96d5c03be5c65a0f49ac7af&quality=90. UserAgent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/86.0.4240.75 Safari/537.36
2020-10-21 23:47:32.433 Debug App: ConvertImageToLocal item 71249 - image url: https://image.tmdb.org/t/p/original/cpfWtyQgsucUS4IYdiN5BXccKKd.jpg
2020-10-21 23:47:32.433 Info HttpClient: GET https://image.tmdb.org/t/p/original/cpfWtyQgsucUS4IYdiN5BXccKKd.jpg
2020-10-21 23:47:32.484 Info HttpServer: HTTP GET https://domain.com/emby/Items/107791/Images/Primary?maxWidth=194&tag=b171e79d04ae86675e9d36053b2bdcc3&quality=90. UserAgent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/86.0.4240.75 Safari/537.36
2020-10-21 23:47:32.486 Info HttpServer: HTTP Response 200 to 123.123.123.123. Time: 3ms. https://domain.com/emby/Items/107791/Images/Primary?maxWidth=194&tag=b171e79d04ae86675e9d36053b2bdcc3&quality=90. ConnectionId: 0HM3M3E7LHARL
2020-10-21 23:47:32.490 Error HttpServer: Error processing request
	*** Error Report ***
	Version: 4.5.2.0
	Command line: /opt/emby-server/system/EmbyServer.dll -programdata /var/lib/emby -ffdetect /opt/emby-server/bin/ffdetect -ffmpeg /opt/emby-server/bin/ffmpeg -ffprobe /opt/emby-server/bin/ffprobe -restartexitcode 3 -updatepackage emby-server-deb_{version}_amd64.deb
	Operating system: Linux version 5.6.0-050600-generic (kernel@sita) (gcc version 9.3.0 (Ubuntu 9.3.0-8ubuntu1)) #202003292333 SMP Sun Mar 29 23:35:58 UTC 2020
	Framework: .NET Core 3.1.7
	OS/Process: x64/x64
	Runtime: opt/emby-server/system/System.Private.CoreLib.dll
	Processor count: 12
	Data path: /var/lib/emby
	Application path: /opt/emby-server/system
	System.ArgumentException: System.ArgumentException: Unable to determine image file extension from mime type text/html
	   at MediaBrowser.Providers.Manager.ImageSaver.GetStandardSavePath(BaseItem item, ImageType type, Nullable`1 imageIndex, ReadOnlySpan`1 mimeType, Boolean saveLocally)
	   at MediaBrowser.Providers.Manager.ImageSaver.GetSavePaths(BaseItem item, ImageType type, Nullable`1 imageIndex, ReadOnlySpan`1 mimeType, Boolean saveLocally)
	   at MediaBrowser.Providers.Manager.ImageSaver.SaveImage(BaseItem item, LibraryOptions libraryOptions, Stream source, ReadOnlyMemory`1 mimeType, ImageType type, Nullable`1 imageIndex, Nullable`1 saveLocallyWithMedia, CancellationToken cancellationToken)
	   at MediaBrowser.Providers.Manager.ProviderManager.SaveImage(BaseItem item, String url, ImageType type, Nullable`1 imageIndex, CancellationToken cancellationToken)
	   at Emby.Server.Implementations.Library.LibraryManager.ConvertImageToLocal(BaseItem item, ItemImageInfo image, Int32 imageIndex, CancellationToken cancellationToken)
	   at Emby.Drawing.ImageProcessor.ProcessImage(ImageProcessingOptions options, CancellationToken cancellationToken)
	   at MediaBrowser.Api.Images.ImageService.GetImage(ImageRequest request, Int64 itemId, BaseItem item, Boolean isHeadRequest)
	   at Emby.Server.Implementations.Services.ServiceController.GetTaskResult(Task task)
	   at Emby.Server.Implementations.Services.ServiceHandler.ProcessRequestAsync(HttpListenerHost appHost, IRequest httpReq, IResponse httpRes, RestPath restPath, String responseContentType, CancellationToken cancellationToken)
	   at Emby.Server.Implementations.HttpServer.HttpListenerHost.RequestHandler(IRequest httpReq, ReadOnlyMemory`1 urlString, ReadOnlyMemory`1 localPath, CancellationToken cancellationToken)
	Source: Emby.Providers
	TargetSite: System.String GetStandardSavePath(MediaBrowser.Controller.Entities.BaseItem, MediaBrowser.Model.Entities.ImageType, System.Nullable`1[System.Int32], System.ReadOnlySpan`1[System.Char], Boolean)
	
2020-10-21 23:47:32.490 Info HttpServer: HTTP Response 400 to 123.123.123.123. Time: 58ms. https://domain.com/emby/Items/71249/Images/Primary?maxWidth=194&tag=062e8568f96d5c03be5c65a0f49ac7af&quality=90. ConnectionId: 0HM3M3E7LHARK
2020-10-21 23:47:32.535 Info HttpServer: HTTP GET https://domain.com/emby/Items/107792/Images/Primary?maxWidth=194&tag=16f19daae27589722e8b5b4920463bc0&quality=90. UserAgent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/86.0.4240.75 Safari/537.36
2020-10-21 23:47:32.537 Debug App: ConvertImageToLocal item 107792 - image url: https://image.tmdb.org/t/p/original/pao1QVNmUEpC1wM8tyOS56MD3TY.jpg
2020-10-21 23:47:32.537 Info HttpClient: GET https://image.tmdb.org/t/p/original/pao1QVNmUEpC1wM8tyOS56MD3TY.jpg
2020-10-21 23:47:32.585 Info HttpServer: HTTP GET https://domain.com/emby/Items/79945/Images/Primary?maxWidth=194&tag=80e6f84a4377fd2ac34f25762e9159b0&quality=90. UserAgent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/86.0.4240.75 Safari/537.36
2020-10-21 23:47:32.585 Debug App: ConvertImageToLocal item 79945 - image url: https://image.tmdb.org/t/p/original/n43YXIixxtmMqEKtuV1LMznr1Tr.jpg
2020-10-21 23:47:32.586 Info HttpClient: GET https://image.tmdb.org/t/p/original/n43YXIixxtmMqEKtuV1LMznr1Tr.jpg
2020-10-21 23:47:32.591 Debug ProviderManager: Saving image to /var/lib/emby/metadata/library/3b/3b7f8566a02a449bb8762b3a86762d0e/folder.jpg
2020-10-21 23:47:32.605 Debug ImageProcessor: Image encoding took 12ms for /var/lib/emby/metadata/library/3b/3b7f8566a02a449bb8762b3a86762d0e/folder.jpg
2020-10-21 23:47:32.606 Info HttpServer: HTTP Response 200 to 123.123.123.123. Time: 71ms. https://domain.com/emby/Items/107792/Images/Primary?maxWidth=194&tag=16f19daae27589722e8b5b4920463bc0&quality=90. ConnectionId: 0HM3M3E7LHARM
2020-10-21 23:47:32.633 Info HttpServer: HTTP GET https://domain.com/emby/Items/80998/Images/Primary?maxWidth=194&tag=2010893efe69a14d791c1d6f19ce0af2&quality=90. UserAgent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/86.0.4240.75 Safari/537.36

 

This is what it looks like on the media page

image.thumb.png.608e65a637bda1de3cb771184f8d4aa2.png

 

Edited by runtimesandbox
Happy2Play
Posted (edited)

There are several old topics on this as your database has urls to people images that no longer exist on TMDB.  TMDB did some maintenance back in February and deleted a lot of people images causing this issue.  There is a plugin that was made but don't think it will work on your OS.

I do not know exactly what fix @Luke put into place for this, but I do not know if it applies to existing items.  

Have you tried to do a Refresh replace all on the media/item?  

But this issue has affected a lot of users.  I personally just nuked all TMDB url images in my database.

Edited by Happy2Play
runtimesandbox
Posted

Yep have done a refresh multiple times. I know some of these are dead images (was following the other topics closely) but these ones download when I click on them and go to the cast members page where as dead ones show the small square box with the cast members name in.

What command did you use to nuke the tmdb urls out of curiosity? 

Posted

Have a very similar problem and was just about to post. Missing images on the Movie screen (as posted above) but if I click on the person, some of the images are already there. If I go out of the movie back to Home and back to the movie again some of the pictures show. No metadata refresh. But some of them do need a refresh. Have tried at the movie level and done a refresh at the Library level but not automatically populating.

  • Like 1
Posted

I would try refreshing the metadata of the movie or series containing the actor.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...