Page 1 of 1

MetaData Rescanning

PostPosted: Tue Oct 25, 2011 6:35 am
by mike.clayton999
Hi Petr

First, thanks for 0.6.0.1 the new features are excellent.

Now the log file log "WARN" for meta data lookups which fail, I have been able to identify (with ease) the 134 films that I had which the Online lookup failed on. Most of the Online lookup failures were just timeouts from the website so can Serviio be configured to...

a) Rescan automatically any move which dont have Metadata associated with it.
b) Have a method to just scan meta data for films without any.

You have a Rescan video metadata button but the problem with this is it rescans everything and any film that already has metadata but then gets a timeout while rescanning will loose it's metadata. This means that I fix the ones I detected earlier but loose metadata for ones I already had metadata for. If this could be changed so it only overwrites the metadata on a successful lookup...

Serviio is a fantastic product and the best I have used. Looking forward to 0.6.1

Mike

Re: MetaData Rescanning

PostPosted: Tue Oct 25, 2011 8:15 am
by zip
mike.clayton999 wrote:You have a Rescan video metadata button but the problem with this is it rescans everything and any film that already has metadata but then gets a timeout while rescanning will loose it's metadata. This means that I fix the ones I detected earlier but loose metadata for ones I already had metadata for. If this could be changed so it only overwrites the metadata on a successful lookup...

And what if it gets metadata, but they are wrong? Then you'd be stuck with this for ever ;-)

Re: MetaData Rescanning

PostPosted: Tue Oct 25, 2011 6:08 pm
by mike.clayton999
Hi Petr.

That is a very valid point, you need a means to be able to refresh all films so you don't get stuck with incorrect data. What I was thinking was when you are doing a full rescan of all films, if you already have metadata for a film and you get an "error" (oppose to not found) when it is downloading the metadata don't delete the data you already have. If the metadata selected on the original scan was incorrect you would still be able to replace the metadata by correcting the name of the film and doing a rescan, on successful metadata download replace what is in the database. If you get an error while downloading the Metadata don't overwrite what is already there.

For now I have just written a small vbs which parses the serviio.log file looking for "WARN [LibraryManager] Cannot read metadata" then it moves the file out the folder for an hour and then moves it back giving Serviio time to remove it from the database and then re-add it.

Mike

Re: MetaData Rescanning

PostPosted: Tue Oct 25, 2011 7:36 pm
by moltra
mike.clayton999 wrote:For now I have just written a small vbs which parses the serviio.log file looking for "WARN [LibraryManager] Cannot read metadata" then it moves the file out the folder for an hour and then moves it back giving Serviio time to remove it from the database and then re-add it.

Mike


The script is a great IDEA. Can you post it under third party apps?

Re: MetaData Rescanning

PostPosted: Tue Oct 25, 2011 10:38 pm
by zip
mike.clayton999 wrote:Hi Petr.

That is a very valid point, you need a means to be able to refresh all films so you don't get stuck with incorrect data. What I was thinking was when you are doing a full rescan of all films, if you already have metadata for a film and you get an "error" (oppose to not found) when it is downloading the metadata don't delete the data you already have. If the metadata selected on the original scan was incorrect you would still be able to replace the metadata by correcting the name of the film and doing a rescan, on successful metadata download replace what is in the database. If you get an error while downloading the Metadata don't overwrite what is already there.

For now I have just written a small vbs which parses the serviio.log file looking for "WARN [LibraryManager] Cannot read metadata" then it moves the file out the folder for an hour and then moves it back giving Serviio time to remove it from the database and then re-add it.

Mike

Mike,
I get your point. Serviio is using priority based metadata extraction, so you might have (and in future will have) multiple metadata extractors defined. So the online check might fail, but then there is a local XMBC file that includes the required data. So I can't just decide based on one of the extractors failing.

The script is a good idea, way to go!