2011-11-16, 01:39 PM
All my recordings made before mid August 2011 listed in âevent_detailsâ in the NPVR database have lost their original XML format. That date was when I setup my new NPVR server and imported my old recordings. As a test I have just Exported then Imported a single recording and the original XML formatting has gone. This does not seem to be a problem at all for NPVR unless you are running a script which uses the formatting like:-
FOR /F âtokens=3 delims=<>â ..........
My script dumped the contents of âevent_detailsâ to a text file then used the command to extract <details> to another file to help detect duplicate recordings. Unfortunately as all the âCarriage Returnsâ between each XML item are missing for older recordings it now appears all on one line for those so âtokens=3â no longer selects the correct text.
This wont be a problem for most File Rename scripts as they work on New files. I donât know if NScriptHelper.exe uses the same method to detect âTitleâ etc. Last night my son in just a few minutes wrote a PHP script to print out a list of my duplicate recordings and that was not affected by the missing formatting.
FOR /F âtokens=3 delims=<>â ..........
My script dumped the contents of âevent_detailsâ to a text file then used the command to extract <details> to another file to help detect duplicate recordings. Unfortunately as all the âCarriage Returnsâ between each XML item are missing for older recordings it now appears all on one line for those so âtokens=3â no longer selects the correct text.
This wont be a problem for most File Rename scripts as they work on New files. I donât know if NScriptHelper.exe uses the same method to detect âTitleâ etc. Last night my son in just a few minutes wrote a PHP script to print out a list of my duplicate recordings and that was not affected by the missing formatting.