2014-09-04, 02:32 PM
Is it possible to save the program description after the recording has been finished in a .txt of .doc?
Thanks.
Thanks.
2014-09-04, 02:32 PM
Is it possible to save the program description after the recording has been finished in a .txt of .doc?
Thanks.
2014-09-04, 03:14 PM
haste18 Wrote:Is it possible to save the program description after the recording has been finished in a .txt of .doc?It won't do that, but if you set the following node in config.xml to true, it will create an xml file containing the program details including description. Make sure that you edit config.xml using a text editor like notepad. Code: <StoreSeparateMetadataXml>false</StoreSeparateMetadataXml> Alex
2014-09-04, 04:21 PM
some work with sed could extract just the description from the .xml data and store it in a .txt file. unfortunately sed command lines are complete gibberish to me, but I know it can be done.
server: NextPVR 5.0.7/Win10 2004/64-bit/AMD A6-7400k/hvr-2250 & hvr-1250/Winegard Flatwave antenna/Schedules Direct
main client: NextPVR 5.0.7 Desktop Client; LG 50UH5500 WebOS 3.0 TV
2014-09-04, 08:42 PM
or powershell apparently:
f you're looking for a solution on Windows, Powershell has built-in functionality for reading and writing XML. test.xml: <root> <one>I like applesauce</one> <two>You sure bet I do!</two> </root> Powershell script: # load XML file into local variable and cast as XML type. $doc = [xml](Get-Content ./test.xml) $doc.root.one #echoes "I like applesauce" $doc.root.one = "Who doesn't like applesauce?" #replace inner text of <one> node # create new node... $newNode = $doc.CreateElement("three") $newNode.set_InnerText("And don't you forget it!") # ...and position it in the hierarchy $doc.root.AppendChild($newNode) # write results to disk $doc.save("./testNew.xml") testNew.xml: <root> <one>Who likes applesauce?</one> <two>You sure bet I do!</two> <three>And don't you forget it!</three> </root> Source: http://serverfault.com/questions/26976/u...ne-windows So a powershell script to extract a specific xpath from the programme's xml file.
2014-09-04, 09:22 PM
bwhahah
Or this...from a command line (or batch file) Code: powershell -Command "Select-Xml -Path '<full path and filename to the xml file>' -XPath '//description'| foreach {$_.node.InnerText}" so for me: Code: powershell -Command "Select-Xml -Path 'P:\ServerFolders\Recordings\Agent Anna\Agent Anna_20140731_21302200.xml' -XPath '//description'| foreach {$_.node.InnerText}" For me returns: "Her ex-husband wants to make peace, but Anna's ready for war - who wins and who goes down?"
2014-09-04, 11:27 PM
In ParallellProcessing.bat something like this seems the easiest
"C:\Program Files (x86)\NPVR\NSscripthelper.exe" -description %1 > "%~n1.txt" Martin
2014-09-05, 10:57 AM
Thanks for all the replies. The use of NScriptHelper.exe works fine. I use it in PostProcessing.bat, otherwise it doesn't work.
@mvallevand: you have a typo in your command line. It's NScriptHelper.exe not NSscriptHelper.exe |
|