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

Senior Member

Posts: 292
Threads: 19
Joined: Dec 2004
#41
2005-02-24, 03:06 AM
That was on my list tonight to fix the rename recording based on the getProgramByTitle method that I moved.

Am I to understand that you took care of that for me.

If you did make edits, can you download the latest recordingUtils from the CDKScheduler and make sure it works.

Otherwise, let me know and I will take care of it.
Pioneer4x4
Offline

Posting Freak

Posts: 926
Threads: 50
Joined: Jan 2005
#42
2005-02-24, 03:45 AM
I really don't understand how these tie into each other. I can modify code OK, but I have never worked with pulling info from DBs, or tying into DLLs.
All I did, other than adding a bunch of lines to see what it was and wasn't doing
if (File.Exists(path +title + ".txt&quotWink) {
Console.WriteLine("Comskip File Exists&quotWink;
}
if (!File.Exists(path +title + ".txt&quotWink) {
Console.WriteLine("Comskip File Does not exist&quotWink;
}
Console.WriteLine("test name&quotWink;
Console.WriteLine(newComSkip);
Console.WriteLine(title+".txt&quotWink;



Was I changed these lines;
if (File.Exists(path + title + ".txt&quotWink) {
Console.WriteLine("New Comskip Filename: " + newComSkip);
File.Move(path + title + ".txt", newComSkip);

By adding the "path +" parts, and I added this line.

newName = newName.Replace(".", "_&quotWink;

I think that fixes the initial problems I was having, but now I am having this problem
At this line
"archEp.updateScheduleTitle(program.getOID(), newFile);"

I am getting this output

Object reference not set to an instance of an object.
System.NullReferenceException: Object reference not set to an instance of an object.
at RenameRecording.RenameEpisode.updateScheduleTitle(Int32 progOid, String newTitle)
at RenameRecording.RenameEpisode.Main(String[] args)
3x MVPs (not used anymore)
XBMC
Hauppauge 150 via SVideo
Comcast Digital Cable
Motorola HD Cable box channel changed via Firewire
Vista Home Premium with RDP hack
AMD Athalon 64 5000+
340gig sata, plus 80SATA+3x160IDE Drives in XP machine for storage.
Pioneer4x4
Offline

Posting Freak

Posts: 926
Threads: 50
Joined: Jan 2005
#43
2005-02-24, 03:54 AM
[b Wrote:Quote[/b] (jrockintuitive @ Feb. 23 2005,22:06)]That was on my list tonight to fix the rename recording based on the getProgramByTitle method that I moved.

Am I to understand that you took care of that for me.

If you did make edits, can you download the latest recordingUtils from the CDKScheduler and make sure it works.

Otherwise, let me know and I will take care of it.
I tried it with the newer recordings.dll, and I got compile errors
It could not find;
findrecording
getprogramsbytitle
3x MVPs (not used anymore)
XBMC
Hauppauge 150 via SVideo
Comcast Digital Cable
Motorola HD Cable box channel changed via Firewire
Vista Home Premium with RDP hack
AMD Athalon 64 5000+
340gig sata, plus 80SATA+3x160IDE Drives in XP machine for storage.
KingArgyle
Offline

Posting Freak

Posts: 1,271
Threads: 95
Joined: Nov 2004
#44
2005-02-24, 04:28 AM
JRock, you'll need to recompile it and make the necessary change to RenameRecording.exe.

Pioneer4x4, Jrock moved those two methods to the DatabaseHelper class of the RecordingUtils name space. In SharpDeveloper you should be able to see what public methods are in the RecordingUtils.DatabaseHelper class and should find the methods that the compiler was complaining about.
Pioneer4x4
Offline

Posting Freak

Posts: 926
Threads: 50
Joined: Jan 2005
#45
2005-02-24, 11:47 AM
I'll give it a try today while I'm at work.. If I fix the code to find them at the proper locations, do you think that will also fix the error it was throwing?

I also want to look to see where the check for duplicate occurs, If it is after the DB call, that might explain what happened to me with the Seinfeld "The Pilot" 2 parter.
(That is mainly a reminder for me...)
3x MVPs (not used anymore)
XBMC
Hauppauge 150 via SVideo
Comcast Digital Cable
Motorola HD Cable box channel changed via Firewire
Vista Home Premium with RDP hack
AMD Athalon 64 5000+
340gig sata, plus 80SATA+3x160IDE Drives in XP machine for storage.
Pioneer4x4
Offline

Posting Freak

Posts: 926
Threads: 50
Joined: Jan 2005
#46
2005-02-24, 11:56 AM
I just checked 2 shows that recorded over the night. And both of them worked! Seinfeld at 11:00 and American Chopper at 3:00 am.
It renamed both of them, and the .txt file!

So now I need to figure out what happened to West Wing, and Lost.

Lost might be due to trying it while comskip was running, and West Wing might be due to the fact that I changed the start time manually.. I should be able to verify that. Plus, it is still in the DB fine.
3x MVPs (not used anymore)
XBMC
Hauppauge 150 via SVideo
Comcast Digital Cable
Motorola HD Cable box channel changed via Firewire
Vista Home Premium with RDP hack
AMD Athalon 64 5000+
340gig sata, plus 80SATA+3x160IDE Drives in XP machine for storage.
KingArgyle
Offline

Posting Freak

Posts: 1,271
Threads: 95
Joined: Nov 2004
#47
2005-02-28, 06:08 AM
Here is a version of the source code that can be run without requiring the RecordingUtils.dll file. One of the main methods that the RenameRecording.exe used changed, and was causing problems. So I moved the small portion that deals with Datbases into the code itself. I've only included source here. I'll try and get and update on the Wiki tomorrow.

Note: I've hard coded the path to the GBPVR database, because I needed a quick a dirty test. It's been busted for the last several days, and I finally became annoyed enough to fix it. Once I had this working, it was hard for me to not have it still working. Also, Pioneer your fix for the Comskip should be included in this version as well.

Again, this is only source code, and not the executable. You'll need a C# compiler to get it to work.



Pioneer4x4
Offline

Posting Freak

Posts: 926
Threads: 50
Joined: Jan 2005
#48
2005-02-28, 12:46 PM
Here is my source.

Oops, try again..



3x MVPs (not used anymore)
XBMC
Hauppauge 150 via SVideo
Comcast Digital Cable
Motorola HD Cable box channel changed via Firewire
Vista Home Premium with RDP hack
AMD Athalon 64 5000+
340gig sata, plus 80SATA+3x160IDE Drives in XP machine for storage.
Pioneer4x4
Offline

Posting Freak

Posts: 926
Threads: 50
Joined: Jan 2005
#49
2005-02-28, 12:47 PM
Here it is.....
3x MVPs (not used anymore)
XBMC
Hauppauge 150 via SVideo
Comcast Digital Cable
Motorola HD Cable box channel changed via Firewire
Vista Home Premium with RDP hack
AMD Athalon 64 5000+
340gig sata, plus 80SATA+3x160IDE Drives in XP machine for storage.
jrockintuitive
Offline

Senior Member

Posts: 292
Threads: 19
Joined: Dec 2004
#50
2005-02-28, 01:17 PM
I'm sorry, I completly flaked on this.

I'm off to work, but when I get back, I will update the code appropriately
« Next Oldest | Next Newest »

Users browsing this thread: 1 Guest(s)

Pages (31): « Previous 1 … 3 4 5 6 7 … 31 Next »
Jump to page 


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