YAMJ / yamj-v2

Yet Another Movie Jukebox (YAMJ) v2
GNU General Public License v3.0
28 stars 11 forks source link

Changed specific forceOverwrite to true and all jukebox is recreated #2425

Closed Omertron closed 9 years ago

Omertron commented 9 years ago

Original issue 2426 created by Omertron on 2012-05-25T20:31:07.000Z:

What steps will reproduce the problem?

  1. Ran YAMJ (eversion+evZap) with no existing jukebox - took 1:46 hours
  2. Changed forceIndexOverwrite, forceXMLOverwrite, forceHTMLOverwrite to true
  3. Changed library playerpath - reason for rerunning YAMJ
  4. Ran YAMJ (eversion+evZap) - took 1:53 !!! hours

I expect to see a shorter run and changes only to XML, HTML files. Instead all jukebox is recreated and runtime is even longer than when initial creation of jukebox.

Running YAMJ version: 2.7-SNAPSHOT Revision: r3087 Skin: eversion + evZap Device: PCH C-200

Omertron commented 9 years ago

Comment #1 originally posted by Omertron on 2012-05-25T20:39:58.000Z:

Also true if just changing the forceXMLOverwrite to true

Omertron commented 9 years ago

Comment #2 originally posted by Omertron on 2012-05-26T06:53:50.000Z:

forceXMLOverwrite will cause the xml to be discarded and re-run as if it was a blank jukebox.

Of course it's going to take the same time (or as near as) running from scratch

Omertron commented 9 years ago

Comment #3 originally posted by Omertron on 2012-05-26T13:49:13.000Z:

But why does it recreate the picture files (poster, banners, fanart)? What is the difference then between forceXMLOverwrite and forceSkinOverwrite?

Omertron commented 9 years ago

Comment #4 originally posted by Omertron on 2012-05-26T17:46:26.000Z:

The theory is that if the XML needs to be overwritten then the chances are that it is wrong, including the name of the movie.

If that is the case then the artwork will be wrong as well,hence the need to be overwritten.