NextPVR Forums
  • ______
  • Home
  • New Posts
  • Wiki
  • Members
  • Help
  • Search
  • Register
  • Login
  • Home
  • Wiki
  • Members
  • Help
  • Search
NextPVR Forums Public Add-ons (3rd party plugins, utilities and skins) v
« Previous 1 … 3 4 5 6 7 … 20 Next »
NscriptHelper - still working?

 
  • 0 Vote(s) - 0 Average
NscriptHelper - still working?
psycik
Offline

Posting Freak

Posts: 5,210
Threads: 424
Joined: Sep 2005
#1
2017-07-10, 03:53 AM
Been playing with nscripthelper to do some renames (move db entries from one location to another). But I seem to be having issues with the filenames.

In the DB under scheduled_recordings.filename I'm only getting a partial name: U:\Recordings\The Simpsons\The Simpsons_20170710_1

Am I missing something, and is it actually storing the entire name?

Then if I do a rename on either the partial or full name, it complains it can't find it.
sub
Offline

Administrator

NextPVR HQ, New Zealand
Posts: 106,648
Threads: 767
Joined: Nov 2003
#2
2017-07-10, 07:33 AM
As far as I know it's still working.

Were the scheduled_recordings.filename entries correct initially (ie after recording), but became broken when you tried renaming them with nscripthelper? Any specific steps to reproduce?

Quote:Then if I do a rename on either the partial or full name, it complains it can't find it.
Did you remember to quote the parameters?

nscripthelper.exe -rename "U:\Recordings\The Simpsons\The Simpsons_20170710_1" "U:\Recordings\The Simpsons\The Simpsons_20170710_1.ts"
psycik
Offline

Posting Freak

Posts: 5,210
Threads: 424
Joined: Sep 2005
#3
2017-07-10, 08:25 AM
I'll try again, I'm sure they were quoted.

I tried with just the description parm and the log just says the recording can't be found with that name
psycik
Offline

Posting Freak

Posts: 5,210
Threads: 424
Joined: Sep 2005
#4
2017-07-10, 08:32 AM
So here's what it ran.

Running nScript helper on "C:\Program Files (x86)\NPVR\NScriptHelper" -Rename "U:\Recordings\The Simpsons\The Simpsons_20170710_15001530.ts" "\\aragorn\Recordings\The Simpsons\The Simpsons_20170710_15001530.ts"

And now I notice that recording doesn't show up in the recording_schedule table any more (that's the correct one isn't yet? Its been a while since i dug into this DB")

I've just removed the delete that happpen before nscripthelper runs - is my order a bit screwy, should I nscript rename, then delete the source video that's been copied to the new location?
BrettB
Offline

Posting Freak

Saint Paul, MN, USA
Posts: 2,666
Threads: 170
Joined: Jun 2007
#5
2017-07-10, 08:56 AM
psycik Wrote:In the DB under scheduled_recordings.filename I'm only getting a partial name: U:\Recordings\The Simpsons\The Simpsons_20170710_1

Am I missing something, and is it actually storing the entire name?

What utility are you using to look at the scheduled_recordings table? In your example, the part that is listed is 50 characters. I'm wondering if your tool is only displaying the first 50 characters of the text field.
psycik
Offline

Posting Freak

Posts: 5,210
Threads: 424
Joined: Sep 2005
#6
2017-07-10, 09:25 AM
SqlLite Admin. Yeah does seem to be restricting it. Just got a new version. So if I run the utility by hand it seems to work, but not from postprocessing.bat.
set source=%1
set channel=%2
set recordingid=%3
set recorder=%4
set title=%5
set destPath=\\aragorn%~p1
set dest=%source:u:=\\aragorn%
"C:\Program Files (x86)\NPVR\NScriptHelper" -rename %source% %dest%
mvallevand
Online

Posting Freak

Ontario Canada
Posts: 52,817
Threads: 954
Joined: May 2006
#7
2017-07-10, 12:49 PM (This post was last modified: 2017-07-10, 01:03 PM by mvallevand.)
Your dest variable looks screwed up to me, not sure what you are trying to do. This might work better

dest=\\aragon\%%~pnx1

The 50 character problem is NextPVR doesn't follow its schema for the defined varchar field lengths and sqlite doesn't enforce it at all some tools do.

Martin
psycik
Offline

Posting Freak

Posts: 5,210
Threads: 424
Joined: Sep 2005
#8
2017-07-10, 07:30 PM
mvallevand Wrote:Your dest variable looks screwed up to me, not sure what you are trying to do. This might work better

dest=\\aragon\%%~pnx1

The 50 character problem is NextPVR doesn't follow its schema for the defined varchar field lengths and sqlite doesn't enforce it at all some tools do.

Martin

I can try that, but as far as I can tell, what I've got is giving me:
Source "U:\Recordings\The Simpsons\The Simpsons_20170710_15001530.ts"
dest "\\aragorn\Recordings\The Simpsons\The Simpsons_20170710_15001530.ts"
sub
Offline

Administrator

NextPVR HQ, New Zealand
Posts: 106,648
Threads: 767
Joined: Nov 2003
#9
2017-07-10, 08:52 PM
The guys above are right - that 50 character problem can be ignored. The SQLite database engine doesn't enforce any string field lengths (even though they're defined in the schema). npvr.db3 has a lot of varchar(50) database fields that store a lot longer strings than 50 characters.
psycik
Offline

Posting Freak

Posts: 5,210
Threads: 424
Joined: Sep 2005
#10
2017-07-10, 09:14 PM
sub Wrote:The guys above are right - that 50 character problem can be ignored. The SQLite database engine doesn't enforce any string field lengths (even though they're defined in the schema). npvr.db3 has a lot of varchar(50) database fields that store a lot longer strings than 50 characters.

YEah I didn't think that was the issue at all. Though Overnight I think I got it working.

I was deleting the source video before running the DB rename......I moved the delete to after the rename, and now it seems to be working. Perhaps it was checking both source and dest locations for the file?
« Next Oldest | Next Newest »

Users browsing this thread: 1 Guest(s)

Pages (2): 1 2 Next »


Possibly Related Threads…
Thread Author Replies Views Last Post
Lightbulb How to get Comskip working on Linux wmarler 12 11,517 2022-03-04, 01:19 PM
Last Post: thool
  Zap2it not working knosey@hotmail.com 1 1,990 2021-04-22, 11:26 PM
Last Post: jguarrasi
  searchlite not working is their still support fame1418 5 6,309 2017-12-18, 08:51 PM
Last Post: mvallevand
  Desktop Gadget not working after Win10 Creators Update Bobbybear 1 3,518 2017-06-26, 09:01 PM
Last Post: Bobins
  Desktop gadget stopped working roy 4 3,460 2017-02-18, 08:16 PM
Last Post: roy
  3.3.8 Vidimport Not Working jrockow 5 3,679 2014-10-31, 02:10 AM
Last Post: sub
  Does anyone have the Ceton card working with npvr and xbmc frodo? rykr 9 5,845 2013-04-14, 05:55 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