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: 874916" data-attributes="member: 10507"><p>@mm</p><p>Thanks for taking care.</p><p> </p><p>Now, ... I have a problem ... It works ! <img src="data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7" class="smilie smilie--sprite smilie--sprite1" alt=":)" title="Smile :)" loading="lazy" data-shortname=":)" /></p><p> </p><p>What I did ? I stopped TvService to make a DB-dump and restarted and TVService did not complain about anything.</p><p>The upmentioned error message "<em> Orphaned once schedule found " </em>did not appear any more. The recording was scheduled and executed.</p><p> </p><p>Thanks for your support, perhaps some magic behind.</p><p> </p><p>For those who like to do the same, here is my little SQl-statement to insert a scheduled recording without any add-on. Just with what MP already supplies. This SQL statement is inserts a one time schedule not bound to any TV-card, searching in programs title or - descriptiontext for keywords or sentence.</p><p> </p><p>Add this line to a file e.g. <em>UpdateEPG.sql </em></p><p> </p><p>[CODE]-- Start with :</p><p>-- mysql.exe -u root -pMediaPortal -h localhost --verbose <UpdateEPG.sql 1>UpdateEPG.log</p><p>-- MySQL :: MySQL 5.5 Reference Manual :: 4.5.1 mysql — The MySQL Command-Line Tool</p><p>-- http://dev.mysql.com/doc/refman//5.5/en/batch-commands.html</p><p>USE mptvdb</p><p>insert into schedule (idChannel, scheduleType, programName, startTime, endTime, maxAirings, priority, directory, quality, keepMethod, keepDate, preRecordInterval, postRecordInterval, canceled, recommendedCard, series, idParentSchedule)</p><p> select idChannel, '0', title, startTime, endTime, 2147483647, 0, '', 73, 0, '2000-01-01 00:00:00.0', 0,5,"2000-01-01 00:00:00.0",-1,0,-1</p><p> from program where</p><p> title like '%your search pattern here%'</p><p> or description like '%your search pattern here%'</p><p> or title like '%another earch pattern%'</p><p> or description like '%another search pattern%'</p><p> ;</p><p>commit;</p><p>[/CODE]</p><p>Feel fee to enhance SQL.</p><p> </p><p>And execute it it with this line:</p><p> </p><p><em>"C:\Program Files\MySQL\MySQL Server 5.1\bin\mysql.exe" -u root -pMediaPortal -h localhost --verbose < UpdateEPG.sql >UpdateEPG.log</em></p><p> </p><p>Add this line to a CMD - file (adjust the path to MySQL) and add it to Windows- Scheduler.</p><p>That's it. Easy and flexible.</p><p> </p><p>Good luck !</p><p> </p><p>Regards</p><p>Gerd</p></blockquote><p></p>
[QUOTE="Aquarius, post: 874916, member: 10507"] @mm Thanks for taking care. Now, ... I have a problem ... It works ! :) What I did ? I stopped TvService to make a DB-dump and restarted and TVService did not complain about anything. The upmentioned error message "[I] Orphaned once schedule found " [/I]did not appear any more. The recording was scheduled and executed. Thanks for your support, perhaps some magic behind. For those who like to do the same, here is my little SQl-statement to insert a scheduled recording without any add-on. Just with what MP already supplies. This SQL statement is inserts a one time schedule not bound to any TV-card, searching in programs title or - descriptiontext for keywords or sentence. Add this line to a file e.g. [I]UpdateEPG.sql [/I] [CODE]-- Start with : -- mysql.exe -u root -pMediaPortal -h localhost --verbose <UpdateEPG.sql 1>UpdateEPG.log -- MySQL :: MySQL 5.5 Reference Manual :: 4.5.1 mysql — The MySQL Command-Line Tool -- http://dev.mysql.com/doc/refman//5.5/en/batch-commands.html USE mptvdb insert into schedule (idChannel, scheduleType, programName, startTime, endTime, maxAirings, priority, directory, quality, keepMethod, keepDate, preRecordInterval, postRecordInterval, canceled, recommendedCard, series, idParentSchedule) select idChannel, '0', title, startTime, endTime, 2147483647, 0, '', 73, 0, '2000-01-01 00:00:00.0', 0,5,"2000-01-01 00:00:00.0",-1,0,-1 from program where title like '%your search pattern here%' or description like '%your search pattern here%' or title like '%another earch pattern%' or description like '%another search pattern%' ; commit; [/CODE] Feel fee to enhance SQL. And execute it it with this line: [I]"C:\Program Files\MySQL\MySQL Server 5.1\bin\mysql.exe" -u root -pMediaPortal -h localhost --verbose < UpdateEPG.sql >UpdateEPG.log[/I] Add this line to a CMD - file (adjust the path to MySQL) and add it to Windows- Scheduler. That's it. Easy and flexible. Good luck ! Regards 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