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
Murdock
Offline

Junior Member

Posts: 21
Threads: 2
Joined: Oct 2005
#191
2006-05-17, 06:14 PM
thanks for the help, missed that one. Guess I need to read...
_gl
Offline

Member

Posts: 118
Threads: 11
Joined: Dec 2005
#192
2006-05-18, 10:47 AM
gEd Wrote:I suspect that this rename failed as it didn;t like either the "," or the "?" symbol. RenameRecording should be able to handle this tho. i.e. is a file can;t be renamed sucessfully, it (and the db entry) should remain unaltered.

Just gatecrashing this thread. You can't have a ? in a filename as it's a wildcard character (same as *) - the , is fine. The program should strip all characters that can't be used in filenames before attempting to rename.

Those chars are: \/:?*"<>|
ZaDDaZ
Offline

Member

Posts: 96
Threads: 6
Joined: Mar 2005
#193
2006-05-18, 03:11 PM
I am currently working on converting Recordings Manager to .Net 2.0. I promise to put it on the wiki with documentation after I am complete.

ETA you ask? Maybe a week... Sorry, got real work to do Smile
fdm225
Offline

Member

Posts: 102
Threads: 27
Joined: Nov 2005
#194
2006-05-19, 01:52 AM
HI,
I am having an issue getting renamerecording to work. I keep getting the following exception in the log file, any ideas?

dave

RenameRecording v1.1 build20051223
Title: That 70s Show
Argument: -t G:\TV\That 70s Show\That 70s Show_20060518_19002000.mpg
System.ApplicationException: Failed to get episode info for file 'G:\TV\That 70s Show\That 70s Show_20060518_19002000.mpg' ---> System.ArgumentException: An OLE DB Provider was not specified in the ConnectionString. An example would be, 'Provider=SQLOLEDB;'.
at System.Data.OleDb.OleDbConnectionString.ValidateParse()
at System.Data.Common.DBConnectionString..ctor(String connectionString, UdlSupport checkForUdl)
at System.Data.OleDb.OleDbConnectionString.ParseString(String connectionString)
at System.Data.OleDb.OleDbConnection.set_ConnectionString(String value)
at System.Data.OleDb.OleDbConnection..ctor(String connectionString)
at RenameRecording.RenameRecordingClass.GetConnection()
at RenameRecording.RenameRecordingClass.GetEpisodeInfo(String& sEpisodeName, Int32& iEpisodeOid)
--- End of inner exception stack trace ---
at RenameRecording.RenameRecordingClass.GetEpisodeInfo(String& sEpisodeName, Int32& iEpisodeOid)
at RenameRecording.RenameRecordingClass.DoMain()
System.ArgumentException: An OLE DB Provider was not specified in the ConnectionString. An example would be, 'Provider=SQLOLEDB;'.
at System.Data.OleDb.OleDbConnectionString.ValidateParse()
at System.Data.Common.DBConnectionString..ctor(String connectionString, UdlSupport checkForUdl)
at System.Data.OleDb.OleDbConnectionString.ParseString(String connectionString)
at System.Data.OleDb.OleDbConnection.set_ConnectionString(String value)
at System.Data.OleDb.OleDbConnection..ctor(String connectionString)
at RenameRecording.RenameRecordingClass.GetConnection()
at RenameRecording.RenameRecordingClass.GetEpisodeInfo(String& sEpisodeName, Int32& iEpisodeOid)
KingArgyle
Offline

Posting Freak

Posts: 1,271
Threads: 95
Joined: Nov 2004
#195
2006-05-19, 04:32 AM
As stated on the Wiki and in this thread, RenameRecording has not been updated yet to work with 97.7.
Jim_
Offline

Senior Member

Posts: 696
Threads: 21
Joined: Dec 2005
#196
2006-05-19, 07:35 PM (This post was last modified: 2006-05-19, 08:16 PM by Jim_.)
KingArgyle Wrote:I probably won't tackle this one until at least the next release of GBPVR to let some of the current migration issues work it's way out. If somebody wants to tackle it before then, please feel free to do so.

I'm finishing up a different project, but I have some ideas on how to rename a recording without connecting to the GBPVR database.
The source code is included with "GetXML" if someone wants to give it a try.

Here's what I'm thinking.
I’ve been using a utility for about 6-months (GetXML in my sig) that:
1. Calls “gbvr.exe –export” in PostProcessing.bat, and renames recording-dump.xml to dump.xml
2. GetXML then scans “dump.xml” finding and saving the latest recording with name %1, on channel %2, to an xml file with the recordings name. It's an emergency restore / archive utiltiy.

Now, after installing 97.7 I notice that my individual xml saves have the Zap2It Unique-ID included as a field! Using this new information it should be possible to rename a recording, and still have the dupe’s avoided. <Thanks sub!>

Here’s what I’m thinking, and it should avoid future GBPVR release compatibility issues.
Use GBPVR.exe –export to get all the recording information, the file name, location, and subtitle description.
Rename the mpeg file, and internally update the saved xml.
Import the updated xml using gbpvr –import

The Unique-ID will be imported and retained, and absolutely no connections would be made to the gbpvr database. If the DB changes in future releases it shouldn’t matter (if) gbpvr still has –export & –import available.

<edit>
example:
Code:
GBPVR.exe -export
RenameRecording <Rename the file as desired.
RenameRecording <Update the xml to reflect the name changes.
gbpvr.exe -import
[SIZE="1"]HP e9240f| Phenom II X4-945| Radeon HD4650 1-gig | 8 gig ram | Blu-Ray
Windows 7 64bit | 1TB system | 1.5TB Recordings | 3-TB Library
HDMI >> Sony 40" 1080p LCD TV
HVR-2250 | HVR-1290 | WinTV PVR USB2 | WinTV HD-PVR | GBPVR 1.4.7[/SIZE]
Projects: I-xmltv (Unsupported at this time) |
SniperDude
Offline

Member

Posts: 185
Threads: 6
Joined: Dec 2005
#197
2006-05-30, 08:41 PM
Here is a temporary fix I came up with for a friend...
...
http://forums.nextpvr.com/showthread.php...post116569
b00sfuk
Offline

Senior Member

Posts: 319
Threads: 26
Joined: Mar 2005
#198
2006-06-07, 10:43 AM
SniperDude Wrote:Here is a temporary fix I came up with for a friend...
...
http://forums.nextpvr.com/showthread.php...post116569

Thanks for this, I got it to work. I'd still like to see RenameRecording updated though as it gives a extra feature that I now rely on. Specifically the -t option that renames with the "Show - Episode" rather than just "Episode".
Any update yet on the new RenameRecording or alternatively is it simple to update this SQL batch file solution to include this change?
Many thanks to you guys for doing this work.
Silverstone LC10M with iMON
Gigabyte 780G+4850e, AMD 6570
Blackgold BGT3620, Harmony 555 Remote
Win7 32-bit, SAF
gEd
Offline

Posting Freak

London
Posts: 3,518
Threads: 100
Joined: Jan 2005
#199
2006-06-07, 03:34 PM
SniperDude Wrote:Here is a temporary fix I came up with for a friend...
...
http://forums.nextpvr.com/showthread.php...post116569

>There is no database change in this however it could be scripted if needed... I didnt have the time...

Doesn;t this mean that once the file is renamed, gbpvr will fail to find the mpeg file and remove it from the database?
“If this is the way Queen Victoria treats her prisoners, she doesn't deserve to have any.”
SniperDude
Offline

Member

Posts: 185
Threads: 6
Joined: Dec 2005
#200
2006-06-09, 08:29 PM
i just noticed your replies.. I responded in the original thread as this is kinda off this topic and I dont want to step on toes =)
« Next Oldest | Next Newest »

Users browsing this thread: 3 Guest(s)

Pages (31): « Previous 1 … 18 19 20 21 22 … 31 Next »
Jump to page 


Possibly Related Threads…
Thread Author Replies Views Last Post
  Custom recording tomx 2 765 2025-02-07, 09:14 AM
Last Post: tomx
  API call for Recording Complete linustorvalds 1 504 2025-01-19, 02:11 PM
Last Post: mvallevand
  Manual recording API mvallevand 2 1,172 2023-11-09, 02:14 PM
Last Post: mvallevand
  Recording direct to GPhotos API rgonzalez 0 1,548 2020-06-29, 04:45 AM
Last Post: rgonzalez
  Recurring Recording URL Parameters jcole998 2 3,103 2019-09-19, 01:08 PM
Last Post: jcole998
  Get recording length from stream skogl 46 14,716 2019-08-15, 09:34 PM
Last Post: sub
  Unexpected result when deleting a pending recording scJohn 5 3,933 2018-05-06, 10:09 PM
Last Post: sub
  How to best verify success when adding a recurring recording drmargarit 1 2,909 2017-03-02, 03:13 PM
Last Post: mvallevand
  Change recording filename programmatically immediately before recording starts? craigrs84 5 6,279 2015-07-13, 09:28 PM
Last Post: patco444
  Recording a specific episode based on season and episode number cbgifford 26 10,892 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