This project has moved and is read-only. For the latest updates, please go here.


v3.6.7.5 - Crash on scrape of TV episode


v3.6.7.5 - Crash on scrape of TV episode
Others were fine, just this one episode (Madam.Secretary.S03E23) keeps throwing this error.
Running on Windows 10 x64 Build 16199
Called with: [stage: 24a]

System.ArgumentException: Parameter is not valid.
   at System.Drawing.Bitmap..ctor(Stream stream)
   at Media_Companion.DownloadCache.IfNotValidImage_Delete(String filename)
   at Media_Companion.DownloadCache.SaveImageToCacheAndPaths(String URL, List`1 Paths, Boolean ForceDownload, Int32 resizeWidth, Int32 resizeHeight, Boolean Overwrite)
   at Media_Companion.Form1.tv_EpisodeFanartGet(TvEpisode episode, Boolean doDownloadThumb, Boolean doScreenShot)
   at Media_Companion.Form1.ep_add(List`1 alleps, String path, String show)
   at Media_Companion.Form1.TV_EpisodeScraper(List`1 ListOfShows, Boolean manual)
If I hit continue, MC recovers and finishes the scrape but the episode is not added to the episode list in MC, and the file renaming does not occur.
The .nfo file is created (attached)

file attachments

Closed May 23 at 4:35 AM by vbat99
Fix in place for crash error if corrupt image downloaded.


AnthonyB wrote May 22 at 8:27 AM

Ah. I see why now.

Looks like the Episode image on TheTVDB is corrupt -

I'm guessing that is the cause of the problem?

vbat99 wrote May 22 at 8:39 AM

Hmmm, just added Madam Secretary and that TV episode, it scraped correctly.

I'd suggest in MC go to Tools, and click on Empty Caches & Series Folders
Then try search for new episodes.

Oh, I see the image has been removed now on TVDb.

BTW, a r-click on Madam secretary and select Refresh this show from Nfo added your nfo to MC.
But yes, the rename did fail. Will see about fixing that crash from stopping MC from scraping.

AnthonyB wrote May 22 at 11:52 AM

Yeah, I posted in their forums about the issue so I guess someone has removed the corrupt image.

I still couldn't get a clean scrape with throwing the error despite Emptying cache and series, restarting, etc.

Had to scrape with error, then refresh from ,nfo (as you suggested) and then right-click -> rename episode.