NextPVR Forums
  • ______
  • Home
  • New Posts
  • Wiki
  • Members
  • Help
  • Search
  • Register
  • Login
  • Home
  • Wiki
  • Members
  • Help
  • Search
NextPVR Forums Public Developers v
« Previous 1 … 28 29 30 31 32 … 93 Next »
Rename Recording

 
  • 0 Vote(s) - 0 Average
Rename Recording
gEd
Offline

Posting Freak

London
Posts: 3,518
Threads: 100
Joined: Jan 2005
#241
2006-09-22, 04:48 PM
IIRC: This feature was previously added to the now defunct renamerecording.
I think that it will require a code change to addepisode to export to new file name to one of the placeholders (%2).
“If this is the way Queen Victoria treats her prisoners, she doesn't deserve to have any.”
theredbaron
Offline

Member

Posts: 69
Threads: 16
Joined: Feb 2006
#242
2006-09-22, 10:16 PM
I've had the latest version for a while and even checked through every page here again. If it has that feature, I have found no indication of how to use it. I still use access so renamerecording still works for me. Any ideas?
David
Offline

Senior Member

Posts: 435
Threads: 18
Joined: Oct 2005
#243
2006-09-23, 03:51 AM
gEd Wrote:IIRC: This feature was previously added to the now defunct renamerecording.
That feature was added to the code, but it never actually worked.
David

PVR PC: Win2K3, Athlon x2 64 4600+, 1280MB Ram, 40+400 GB HD's, Gigabyte Network
PVR-250, ATSC-110 digital x2, GBPVR v1.3.7 w/SQLite DB
Extras: Addepisode 41, Comskip 79.46, EWA 76, Zaptools

DSM-520 (D-Link Media Lounge) FW 1.04 using TVersity Media Server 0.9.11.4
DSM-320 (D-Link Media Lounge) FW 1.09
MediaMVP

More specs
KingArgyle
Offline

Posting Freak

Posts: 1,271
Threads: 95
Joined: Nov 2004
#244
2006-09-23, 04:21 AM
Actually, it works, but just the way it was intended to work. The environment variable is set, but as soon as the program finishes it gets erased by Windows.

Anyways, the source is available so anybody can update it if they want. I think Ton has a new compiled version that works with .97 or greater, but it is posted in the Community Forum.

Edit: Updated version can be found here: http://forums.nextpvr.com/showthread.php?t=19446
David
Offline

Senior Member

Posts: 435
Threads: 18
Joined: Oct 2005
#245
2006-09-23, 02:11 PM
KingArgyle Wrote:Actually, it works, but just the way it was intended to work. The environment variable is set, but as soon as the program finishes it gets erased by Windows.

Do you have a snippet of working batch code?
David

PVR PC: Win2K3, Athlon x2 64 4600+, 1280MB Ram, 40+400 GB HD's, Gigabyte Network
PVR-250, ATSC-110 digital x2, GBPVR v1.3.7 w/SQLite DB
Extras: Addepisode 41, Comskip 79.46, EWA 76, Zaptools

DSM-520 (D-Link Media Lounge) FW 1.04 using TVersity Media Server 0.9.11.4
DSM-320 (D-Link Media Lounge) FW 1.09
MediaMVP

More specs
KingArgyle
Offline

Posting Freak

Posts: 1,271
Threads: 95
Joined: Nov 2004
#246
2006-09-25, 02:44 AM
Actually, no because It only gets set while RenameRecording is running, as soon as it finishes the environment variable is gone, so it works, but not as intended and it can't be used for what it was originally put in for.
David
Offline

Senior Member

Posts: 435
Threads: 18
Joined: Oct 2005
#247
2006-09-25, 03:08 AM
KingArgyle Wrote:Actually, no because It only gets set while RenameRecording is running, as soon as it finishes the environment variable is gone, so it works, but not as intended and it can't be used for what it was originally put in for.
OK, thanks. I got a bit confused with your last reply in this thread and wasn't sure if I had missed something.
David

PVR PC: Win2K3, Athlon x2 64 4600+, 1280MB Ram, 40+400 GB HD's, Gigabyte Network
PVR-250, ATSC-110 digital x2, GBPVR v1.3.7 w/SQLite DB
Extras: Addepisode 41, Comskip 79.46, EWA 76, Zaptools

DSM-520 (D-Link Media Lounge) FW 1.04 using TVersity Media Server 0.9.11.4
DSM-320 (D-Link Media Lounge) FW 1.09
MediaMVP

More specs
theredbaron
Offline

Member

Posts: 69
Threads: 16
Joined: Feb 2006
#248
2006-09-26, 03:53 PM
Oh so the "new" variable (renamed version of %1) can't be used after RenameRecording has run? Is there anyway at all to keep it?
theredbaron
Offline

Member

Posts: 69
Threads: 16
Joined: Feb 2006
#249
2006-09-26, 10:25 PM
I was looking around and came across this thing on variable subsitution.
%~I expands %I which removes any surrounding quotes (")
%~fI expands %I to a fully qualified path name
%~dI expands %I to a drive letter only
%~pI expands %I to a path only
%~nI expands %I to a file name only
%~xI expands %I to a file extension only
%~sI expands path to contain short names only
%~aI expands %I to the file attributes of file
%~tI expands %I to the date/time of file
%~zI expands %I to the size of file

let's say I use %-xI (or 1 since i will be using %1 to start with), can i use that in combination with %~p to refer to just the file location and extension? What I mean is, if there is only one .mpg in the folder, will that variable allow me to take that and use it even if the name has changed?
David
Offline

Senior Member

Posts: 435
Threads: 18
Joined: Oct 2005
#250
2006-09-26, 11:50 PM
theredbaron Wrote:I was looking around and came across this thing on variable subsitution.
%~I expands %I which removes any surrounding quotes (")
%~fI expands %I to a fully qualified path name
%~dI expands %I to a drive letter only
%~pI expands %I to a path only
%~nI expands %I to a file name only
%~xI expands %I to a file extension only
%~sI expands path to contain short names only
%~aI expands %I to the file attributes of file
%~tI expands %I to the date/time of file
%~zI expands %I to the size of file

let's say I use %-xI (or 1 since i will be using %1 to start with), can i use that in combination with %~p to refer to just the file location and extension? What I mean is, if there is only one .mpg in the folder, will that variable allow me to take that and use it even if the name has changed?

You can use wildcards, or more typically an explicit expression like "%~n1.mpg" to refer to an mpg version of the file name. If you want to use a wild card to pickup any (or the only file in a folder) then just use *.mpg.
David

PVR PC: Win2K3, Athlon x2 64 4600+, 1280MB Ram, 40+400 GB HD's, Gigabyte Network
PVR-250, ATSC-110 digital x2, GBPVR v1.3.7 w/SQLite DB
Extras: Addepisode 41, Comskip 79.46, EWA 76, Zaptools

DSM-520 (D-Link Media Lounge) FW 1.04 using TVersity Media Server 0.9.11.4
DSM-320 (D-Link Media Lounge) FW 1.09
MediaMVP

More specs
« Next Oldest | Next Newest »

Users browsing this thread: 1 Guest(s)

Pages (31): « Previous 1 … 23 24 25 26 27 … 31 Next »
Jump to page 


Possibly Related Threads…
Thread Author Replies Views Last Post
  Custom recording tomx 2 713 2025-02-07, 09:14 AM
Last Post: tomx
  API call for Recording Complete linustorvalds 1 476 2025-01-19, 02:11 PM
Last Post: mvallevand
  Manual recording API mvallevand 2 1,137 2023-11-09, 02:14 PM
Last Post: mvallevand
  Recording direct to GPhotos API rgonzalez 0 1,523 2020-06-29, 04:45 AM
Last Post: rgonzalez
  Recurring Recording URL Parameters jcole998 2 3,079 2019-09-19, 01:08 PM
Last Post: jcole998
  Get recording length from stream skogl 46 14,546 2019-08-15, 09:34 PM
Last Post: sub
  Unexpected result when deleting a pending recording scJohn 5 3,884 2018-05-06, 10:09 PM
Last Post: sub
  How to best verify success when adding a recurring recording drmargarit 1 2,884 2017-03-02, 03:13 PM
Last Post: mvallevand
  Change recording filename programmatically immediately before recording starts? craigrs84 5 6,229 2015-07-13, 09:28 PM
Last Post: patco444
  Recording a specific episode based on season and episode number cbgifford 26 10,798 2014-12-19, 10:28 PM
Last Post: cbgifford

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

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

Linear Mode
Threaded Mode