NextPVR Forums
  • ______
  • Home
  • New Posts
  • Wiki
  • Members
  • Help
  • Search
  • Register
  • Login
  • Home
  • Wiki
  • Members
  • Help
  • Search
NextPVR Forums Public Developers v
« Previous 1 … 73 74 75 76 77 … 93 Next »
CDK Scheduler issue with Quotes

 
  • 0 Vote(s) - 0 Average
CDK Scheduler issue with Quotes
ZaDDaZ
Offline

Member

Posts: 96
Threads: 6
Joined: Mar 2005
#1
2005-04-08, 04:33 AM
I think CDK Scheduler is having a problem with single quotes in descriptions. This is really bad if you record any Stargate SG-1's as almost every episode description has the word "Goa'uld" in it... Here is the exception:

Code:
Unhandled Exception: System.Data.OleDb.OleDbException: Syntax error (missing operator) in query expression 'name='Stargate SG-1' and sub_title='Need' and description='Smitten Daniel learns Goa'uld secrets from an alien princess.''.
   at System.Data.OleDb.OleDbCommand.ExecuteCommandTextErrorHandling(Int32 hr)
   at System.Data.OleDb.OleDbCommand.ExecuteCommandTextForSingleResult(tagDBPARAMS dbParams, Object& executeResult)
   at System.Data.OleDb.OleDbCommand.ExecuteCommandText(Object& executeResult)
   at System.Data.OleDb.OleDbCommand.ExecuteCommand(CommandBehavior behavior, Object& executeResult)
   at System.Data.OleDb.OleDbCommand.ExecuteReaderInternal(CommandBehavior behavior, String method)
   at System.Data.OleDb.OleDbCommand.ExecuteReader(CommandBehavior behavior)
   at System.Data.OleDb.OleDbCommand.ExecuteReader()
   at RecTracker.RecordingTracker.hasShowBeenRecorded(String title, String subtitle, String description, String uniqueid)
   at RecordingUtils.RecordingUtils.isDuplicateRecorded(Recordings recording, Programme program)
   at RecordingUtils.RecordingUtils.passedRestrictions(Recordings recording, Programme program, ArrayList scheduleArray)
   at PriorityRecording.RecordingManager.pAddProgramList(RecordingUtils recordingUtil, IList programList, Recordings priorityRecordings, ArrayList scheduleArray)
   at PriorityRecording.RecordingManager.pAddPrograms(RecordingUtils recordingUtil, ArrayList scheduleArray)
   at PriorityRecording.RecordingManager.Main(String[] args)
jrockintuitive
Offline

Senior Member

Posts: 292
Threads: 19
Joined: Dec 2004
#2
2005-04-08, 11:24 AM
I'll look into it. However, I do record SG-1. I do not think I get that error.

But I am away on business and when I get home, I might be unpleseantly surprised.
jorm
Offline

Posting Freak

Posts: 2,014
Threads: 109
Joined: Aug 2004
#3
2005-04-08, 11:34 AM
This should only occur if you are searching for a word that contains Goa'uld. Did you type it in or use xrecord?

the ' should be "
WinXP Home
3 X MVPs
Hauppauge 250 MCE
Hauppauge 150
P-4 2.4 GHz / 768 megs Ram
610 Gigs Of Media Storage
ZaDDaZ
Offline

Member

Posts: 96
Threads: 6
Joined: Mar 2005
#4
2005-04-08, 01:01 PM
Nope, I'm recording all shows by name now. I'll include my PriorityRecordings.xml file. Does this have something to do with not recording previously recorded episodes? Maybe it is doing a search for previously recorded episodes?
KingArgyle
Offline

Posting Freak

Posts: 1,271
Threads: 95
Joined: Nov 2004
#5
2005-04-08, 03:04 PM
ZaDDaZ:
What version of the RecTracker.dll do you have? I ran your PriorityRecordings.exe file on my system, with the RecTracker.dll date 2005-02-09 and didn't get the error.

The error is happening when checking to see if the show should be scheduled because of duplicate checking (i.e. you already recorded it).
jorm
Offline

Posting Freak

Posts: 2,014
Threads: 109
Joined: Aug 2004
#6
2005-04-08, 03:10 PM
Jrock,

Do you use the dll for rectracker or the class?

My class looks like it should handle the ' in the description. If you use the class can you check the RecTracker::hasShowBeenRecorded method. for the description replace.

string command = "select unqiue_id from RecordedShows where name='";
command += title.Replace("'", "''") + "' and sub_title='" + subtitle.Replace("'", "''") + "' and description='";
command += description.Replace("'", "''") + "'";
WinXP Home
3 X MVPs
Hauppauge 250 MCE
Hauppauge 150
P-4 2.4 GHz / 768 megs Ram
610 Gigs Of Media Storage
KingArgyle
Offline

Posting Freak

Posts: 1,271
Threads: 95
Joined: Nov 2004
#7
2005-04-08, 03:16 PM
Yep, that code is in the source I have for CDK Scheduler and the ReckTracker.cs code Jrock sent me. I know I'm using the RecTracker.DLL as I added that as a reference to RecordingUtils.dll, and didn't compile RecTracker into PriorityRecordings on the last bug fix for dates that I implemented.
jrockintuitive
Offline

Senior Member

Posts: 292
Threads: 19
Joined: Dec 2004
#8
2005-04-08, 11:09 PM
King is correct... I use the compiled RecTracker.DLL

Just got back from an exhausting biz trip and ready to look at this issues... tomorrow morning
ZaDDaZ
Offline

Member

Posts: 96
Threads: 6
Joined: Mar 2005
#9
2005-04-10, 04:57 PM
The version of RecTracker I have is from 1/27/2005, which I downloaded on 4/7/2005. Is there a newer version on the WiKi now?
jorm
Offline

Posting Freak

Posts: 2,014
Threads: 109
Joined: Aug 2004
#10
2005-04-10, 05:31 PM
there is not, but I might create a debug version for you to try out.
WinXP Home
3 X MVPs
Hauppauge 250 MCE
Hauppauge 150
P-4 2.4 GHz / 768 megs Ram
610 Gigs Of Media Storage
« Next Oldest | Next Newest »

Users browsing this thread: 2 Guest(s)

Pages (2): 1 2 Next »


Possibly Related Threads…
Thread Author Replies Views Last Post
  WizUIhelper 1.0.15.4 issue idkpmiller 9 3,115 2008-04-03, 02:04 AM
Last Post: JavaWiz
  UIStatic issue idkpmiller 8 5,132 2008-01-08, 05:01 PM
Last Post: whurlston
  Keymapping issue idkpmiller 7 2,353 2007-01-07, 03:15 PM
Last Post: sub
  onkeydown = play, pluginHelper.IsPlaylistPaused() issue reven 2 1,756 2006-07-04, 09:28 PM
Last Post: reven
  PLAY>PAUSE>STOP>PLAY issue reven 2 1,607 2006-01-20, 04:57 AM
Last Post: reven
  CDK Scheduler Request jwthirty 4 1,830 2005-03-14, 06:29 AM
Last Post: jwthirty
  Error in CDK Scheduler mcr 11 3,350 2005-02-25, 04:52 PM
Last Post: jrockintuitive
  CDK Scheduler (External Recording Manager) KingArgyle 1 1,402 2005-02-08, 06:45 PM
Last Post: KingArgyle
  Scheduler borgs5 1 1,321 2005-01-25, 03:30 PM
Last Post: sub

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

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

Linear Mode
Threaded Mode