2011-03-08, 22:51
Last summer I was playing with database refreshes and posed a few questions:
Original thread;
http://forum.xbmc.org/showthread.php?tid=77644
I since set down the project and I've picked it up again, and I have some additional questions
I've resumed playing with the db changes etc. I've tried updating my local with newer files and additional scans of the input source doesn't pickup the local changes.
Steps to test:
1. create a source to a directory called artist
2. Scan this source into the library
3. export the library, saving the artist info, fanart and folder files to the /artist directory
4. go into the /artist directory and replace the fanart file with another fanart file.
5. rescan the source into the library, the new photo isn't picked up. Which goes along with the comment that if the cache file is there already then it will use the cache file.
6. go into my /userdata/thumbnails/Music directory and clean it all out... ie nuke all directories and files in here.
7. Rescan the source once again, no luck none of files are updated.
8. go into my system > File Manager > Profile > database and delete the MyMusic7.db file
9. When I go back into the music menus, obviously the artists are gone etc..
10. Rescan the source back into the library
11. Voila my thumbs and fanart appear, however the artist information from the artist.nfo files is not imported as part of the scan.
12. "Query info for all Artists" however will re-import the artist.nfo files if present or go to the scrapers if that file isn't available locally. Or I can do a refresh on a single artist instead (but one isn't going to want to be doing this across hundreds if not thousands of artists)
But here's my problem.. once details are in the database or once a cache file has been made there is no way to update them via a bulk method without:
1. The complete deletion of the MyMusic7.db file and cache thumbs
2. Scanning in the source to rebuild the cache thumbs
3. Issuing a 'Query info for all artists' to rebuild the nfo data.
Shouldn't there be another scan that would detect changes to the fanart/folder images and detect changes to the nfo files. If a change is detected then the local files would override the cache/database entries?
Maybe there is but I don't have that option set in my advanced settings? I can see what the main advantage would be in doing things the way they are today, very fast addition of new music. Presumably fanart, thumbs and band info isn't updated that often, or if it is it would be done within XBMC itself; but for those of us wanting to do the edits offline, our only option is to start everything from scratch each time
Original thread;
http://forum.xbmc.org/showthread.php?tid=77644
I since set down the project and I've picked it up again, and I have some additional questions
jmarshall Wrote:1. You can't.
2. Rescanning your input source should pick up changes in local artwork, yes.
3. If the cached image is already there it will be used unless there's local artwork present.
4. The image is cached based on the CRC of the artist name, or based on a combination of artist and album name.
I've resumed playing with the db changes etc. I've tried updating my local with newer files and additional scans of the input source doesn't pickup the local changes.
Steps to test:
1. create a source to a directory called artist
2. Scan this source into the library
3. export the library, saving the artist info, fanart and folder files to the /artist directory
4. go into the /artist directory and replace the fanart file with another fanart file.
5. rescan the source into the library, the new photo isn't picked up. Which goes along with the comment that if the cache file is there already then it will use the cache file.
6. go into my /userdata/thumbnails/Music directory and clean it all out... ie nuke all directories and files in here.
7. Rescan the source once again, no luck none of files are updated.
8. go into my system > File Manager > Profile > database and delete the MyMusic7.db file
9. When I go back into the music menus, obviously the artists are gone etc..
10. Rescan the source back into the library
11. Voila my thumbs and fanart appear, however the artist information from the artist.nfo files is not imported as part of the scan.
12. "Query info for all Artists" however will re-import the artist.nfo files if present or go to the scrapers if that file isn't available locally. Or I can do a refresh on a single artist instead (but one isn't going to want to be doing this across hundreds if not thousands of artists)
But here's my problem.. once details are in the database or once a cache file has been made there is no way to update them via a bulk method without:
1. The complete deletion of the MyMusic7.db file and cache thumbs
2. Scanning in the source to rebuild the cache thumbs
3. Issuing a 'Query info for all artists' to rebuild the nfo data.
Shouldn't there be another scan that would detect changes to the fanart/folder images and detect changes to the nfo files. If a change is detected then the local files would override the cache/database entries?
Maybe there is but I don't have that option set in my advanced settings? I can see what the main advantage would be in doing things the way they are today, very fast addition of new music. Presumably fanart, thumbs and band info isn't updated that often, or if it is it would be done within XBMC itself; but for those of us wanting to do the edits offline, our only option is to start everything from scratch each time