INTERACT FORUM

Please login or register.

Login with username, password and session length
Advanced search  
Pages: [1]   Go Down

Author Topic: SDK Bug: MJFile.GetImageFile(MJImageFileFlags nImageFileFlag)  (Read 2838 times)

Messiahs

  • Galactic Citizen
  • ****
  • Posts: 432

Hi,

MJFile.MJGetImageFile gets the filename of an image associated with the file (MJFile), but the file itself is not updated when i first call
Code: [Select]
picPath =MJFile.GetImageFile(IMAGEFILE_THUMBNAIL_SMALL)and after this
Code: [Select]
picPath =MJFile.GetImageFile(IMAGEFILE_THUMBNAIL_LARGE)
Of course, the filepath is the same, but unlikely the file too.
The 'small' image file is not overwritten with the large one (folder: ..\J River\Media Center 13\Temp\Thumbnails).
If i first delete the small file before the second call, everthing is ok.

Can you please check this ?

Cheers,
Markus

Matt

  • Administrator
  • Citizen of the Universe
  • *****
  • Posts: 41934
  • Shoes gone again!
Re: SDK Bug: MJFile.GetImageFile(MJImageFileFlags nImageFileFlag)
« Reply #1 on: March 19, 2009, 03:08:37 pm »

I think this is carry-over from when thumbnails were physical files.

In Media Center 13.0.142 and later we'll try this:
Changed: Making an SDK request for a thumbnail will always resave the thumbnail instead of returning the file already on disk if the thumbnail was previously requested.

Hopefully it does the trick.
Logged
Matt Ashland, JRiver Media Center

Messiahs

  • Galactic Citizen
  • ****
  • Posts: 432
Re: SDK Bug: MJFile.GetImageFile(MJImageFileFlags nImageFileFlag)
« Reply #2 on: March 19, 2009, 04:08:58 pm »

Hi Matt,

thanks for your feedback. Perhaps it's more easier to store small files in the folder "\Temp\Thumbnails\small" and large images in  folder "\Temp\Thumbnails\large"... just an idea.

regards,
Markus

Matt

  • Administrator
  • Citizen of the Universe
  • *****
  • Posts: 41934
  • Shoes gone again!
Re: SDK Bug: MJFile.GetImageFile(MJImageFileFlags nImageFileFlag)
« Reply #3 on: March 19, 2009, 04:14:00 pm »

Hi Matt,

thanks for your feedback. Perhaps it's more easier to store small files in the folder "\Temp\Thumbnails\small" and large images in  folder "\Temp\Thumbnails\large"... just an idea.

regards,
Markus

Are you requesting the same thumbnail over and over with the hope that Media Center won't have to create a new file if you've already requested it?
Logged
Matt Ashland, JRiver Media Center

Messiahs

  • Galactic Citizen
  • ****
  • Posts: 432
Re: SDK Bug: MJFile.GetImageFile(MJImageFileFlags nImageFileFlag)
« Reply #4 on: March 19, 2009, 05:06:19 pm »

It would be great, but i don't know if this is possible. I think this can be a great performance gain for plugins who uses lists with covers.
Perhaps this could be handled with an additional flag like "GetImageFile(nImageFileFlag, overwrite)".
But, if this is to much work or not really necessary, i can live with the change that a image is overwriten.
Or do you have any other idea or a hint ?

Thanks,
Markus
Pages: [1]   Go Up