NextPVR Forums
  • ______
  • Home
  • New Posts
  • Wiki
  • Members
  • Help
  • Search
  • Register
  • Login
  • Home
  • Wiki
  • Members
  • Help
  • Search
NextPVR Forums Public NextPVR Support Legacy (v4.x and earlier) v
« Previous 1 … 207 208 209 210 211 … 433 Next »
Save program description after recording in txt file?

Save program description after recording in txt file?
haste18
Offline

Junior Member

Posts: 19
Threads: 7
Joined: Oct 2013
#1
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.
ACTCMS
Offline

Posting Freak

UK
Posts: 2,730
Threads: 101
Joined: Jun 2007
#2
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?

Thanks.
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
johnsonx42
Offline

Posting Freak

Posts: 7,298
Threads: 189
Joined: Sep 2008
#3
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
psycik
Offline

Posting Freak

Posts: 5,210
Threads: 424
Joined: Sep 2005
#4
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.
psycik
Offline

Posting Freak

Posts: 5,210
Threads: 424
Joined: Sep 2005
#5
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?"
mvallevand
Offline

Posting Freak

Ontario Canada
Posts: 52,937
Threads: 956
Joined: May 2006
#6
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
haste18
Offline

Junior Member

Posts: 19
Threads: 7
Joined: Oct 2013
#7
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
« Next Oldest | Next Newest »

Users browsing this thread: 1 Guest(s)



Possibly Related Threads…
Thread Author Replies Views Last Post
  Recording movies / TV to XBMC directory stucture spinnaker 10 3,518 2024-06-03, 03:56 AM
Last Post: Rod Hutchinson
  Not recording errors vidwiz 4 979 2024-04-17, 05:39 PM
Last Post: mvallevand
  Add Series/Episode Info to Recording Metadata andrewj 2 1,056 2023-11-20, 03:42 PM
Last Post: sub
  incorrect frequency in adelaide .ini file spin35 5 3,017 2023-02-01, 05:40 PM
Last Post: sub
  Recording to a network drive woes. 2leftfeet 12 7,174 2022-04-05, 08:03 PM
Last Post: mvallevand
  device needed for recording David209 2 1,728 2021-04-04, 08:47 AM
Last Post: David209
  PC not going to sleep after recording LeoL 7 3,262 2021-04-01, 07:17 PM
Last Post: Handy.Man
  HDHomerun recording bizzarely not working Jean0987654321 3 2,031 2021-03-27, 03:23 PM
Last Post: Jean0987654321
  ts file shows length too long? SuttonWillow 2 1,903 2021-03-15, 01:56 PM
Last Post: mvallevand
Video Restrict Recording Space foucomm 1 1,323 2021-01-30, 09:25 PM
Last Post: mvallevand

  • View a Printable Version
  • Subscribe to this thread
Forum Jump:

© Designed by D&D, modified by NextPVR - Powered by MyBB

Linear Mode
Threaded Mode