home
products
contribute
download
documentation
forum
Home
Forums
New posts
Search forums
What's new
New posts
All posts
Latest activity
Members
Registered members
Current visitors
Donate
Log in
Register
What's new
Search
Search
Search titles only
By:
New posts
Search forums
Search titles only
By:
Menu
Log in
Register
Navigation
Install the app
Install
More options
Contact us
Close Menu
Forums
MediaPortal 1
Support
General Support
Adding a scheduled recording by using plain SQL: Solved
Contact us
RSS
JavaScript is disabled. For a better experience, please enable JavaScript in your browser before proceeding.
You are using an out of date browser. It may not display this or other websites correctly.
You should upgrade or use an
alternative browser
.
Reply to thread
Message
<blockquote data-quote="Aquarius" data-source="post: 874697" data-attributes="member: 10507"><p>Hi all,</p><p>I tried to circumvent the official introduction of recordings into the DB by just applying some SQL.</p><p> </p><p>Insertion works just fine, but the TVServer throws out my inserted record with the following message:</p><p><em>2012-06-14 21:40:33.265625 [scheduler thread(30)]: Scheduler: Orphaned once schedule found 333 - removing</em></p><p> </p><p>The SQL statement looks like this.</p><p> </p><p><em> insert into schedule (idChannel, scheduleType, programName, startTime, endTime, ... )</em></p><p><em> select idChannel, '0' , title, startTime, endTime, ... </em></p><p><em> from program where description like ... ; </em></p><p> </p><p>My suspicion is the field "schedule.id..." , which is an autoincrement. Does TVServer perhaps remember this value internally ?</p><p> </p><p>Background: I wanted to create a very lightweight recording filter using simple search mechanisms in the programs database without the hassle of plugins (like "ForTheRecord") or whatever.</p><p> </p><p>If somebody knows another pragmatic, simple way to insert recordings, I would be thankful.</p><p> </p><p>Thanks</p><p>/Gerd</p></blockquote><p></p>
[QUOTE="Aquarius, post: 874697, member: 10507"] Hi all, I tried to circumvent the official introduction of recordings into the DB by just applying some SQL. Insertion works just fine, but the TVServer throws out my inserted record with the following message: [I]2012-06-14 21:40:33.265625 [scheduler thread(30)]: Scheduler: Orphaned once schedule found 333 - removing[/I] The SQL statement looks like this. [I] insert into schedule (idChannel, scheduleType, programName, startTime, endTime, ... )[/I] [I] select idChannel, '0' , title, startTime, endTime, ... [/I] [I] from program where description like ... ; [/I] My suspicion is the field "schedule.id..." , which is an autoincrement. Does TVServer perhaps remember this value internally ? Background: I wanted to create a very lightweight recording filter using simple search mechanisms in the programs database without the hassle of plugins (like "ForTheRecord") or whatever. If somebody knows another pragmatic, simple way to insert recordings, I would be thankful. Thanks /Gerd [/QUOTE]
Insert quotes…
Verification
Post reply
Forums
MediaPortal 1
Support
General Support
Adding a scheduled recording by using plain SQL: Solved
Contact us
RSS
Top
Bottom