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
Development
General Development (no feature request here!)
Another stab at an EPG
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="ChrisOfCatford" data-source="post: 271282" data-attributes="member: 23650"><p>Hello,</p><p></p><p>I have had a go at making a really simple web EPG that helps me with recording and finding films (and other stuff as well).</p><p></p><p>I didn't want to use the existing offerings as I already have web server running 24/7, and don't need the overheads of another one. Also, I just like making PHP applications.</p><p></p><p>It works great (only on IE PHP and mysql), apart from any recordings I set using my interface ignore the default recording folder and record to the MP tv server root instead.</p><p></p><p>Here is part of the code that I am using in case it helps:</p><p>[PHP]</p><p>//Pre record</p><p>$result=mysql_query("SELECT s.`value` FROM setting s WHERE s.`tag`='preRecordInterval'")</p><p>or die("OOPS failed on select preRecord: ".mysql_error());</p><p></p><p>$row=mysql_fetch_array($result);</p><p></p><p>$prerecord=$row[0];</p><p></p><p>//Post record</p><p>$result=mysql_query("SELECT s.`value` FROM setting s WHERE s.`tag`='postRecordInterval'")</p><p>or die("OOPS failed on SELECT postRecord: ".mysql_error());</p><p></p><p>$row=mysql_fetch_array($result);</p><p></p><p>$postrecord=$row[0];</p><p></p><p>//Get GET vars from url</p><p>$startdate=$_REQUEST["s"];</p><p></p><p>$enddate=$_REQUEST["e"];</p><p></p><p>$idchannel=$_REQUEST["c"];</p><p></p><p>$title=$_REQUEST["t"];</p><p></p><p>//Add the recording</p><p>$result=mysql_query("INSERT INTO schedule (idChannel, scheduleType, programName, startTime, endTime, maxAirings, priority, quality, preRecordInterval, postRecordInterval, recommendedCard, keepDate, canceled) ".</p><p> "VALUES ('".$idchannel."' , '0' , '".$title."' , '".$startdate."' , '".$enddate."' , '2147483647' , '0' , '0' , '".$prerecord."' , '".$postrecord."' , '-1','2000-01-01 00:00:00','2000-01-01 00:00:00')")</p><p> or die("ERROR: ".mysql_error());</p><p></p><p>[/PHP]</p><p></p><p>Am I missing some setting somewhere? Is it even possible to set recordings JUST using the MYSQL DB? Can anyone help me solve this please?</p><p></p><p>Thanks,</p><p>Chris</p></blockquote><p></p>
[QUOTE="ChrisOfCatford, post: 271282, member: 23650"] Hello, I have had a go at making a really simple web EPG that helps me with recording and finding films (and other stuff as well). I didn't want to use the existing offerings as I already have web server running 24/7, and don't need the overheads of another one. Also, I just like making PHP applications. It works great (only on IE PHP and mysql), apart from any recordings I set using my interface ignore the default recording folder and record to the MP tv server root instead. Here is part of the code that I am using in case it helps: [PHP] //Pre record $result=mysql_query("SELECT s.`value` FROM setting s WHERE s.`tag`='preRecordInterval'") or die("OOPS failed on select preRecord: ".mysql_error()); $row=mysql_fetch_array($result); $prerecord=$row[0]; //Post record $result=mysql_query("SELECT s.`value` FROM setting s WHERE s.`tag`='postRecordInterval'") or die("OOPS failed on SELECT postRecord: ".mysql_error()); $row=mysql_fetch_array($result); $postrecord=$row[0]; //Get GET vars from url $startdate=$_REQUEST["s"]; $enddate=$_REQUEST["e"]; $idchannel=$_REQUEST["c"]; $title=$_REQUEST["t"]; //Add the recording $result=mysql_query("INSERT INTO schedule (idChannel, scheduleType, programName, startTime, endTime, maxAirings, priority, quality, preRecordInterval, postRecordInterval, recommendedCard, keepDate, canceled) ". "VALUES ('".$idchannel."' , '0' , '".$title."' , '".$startdate."' , '".$enddate."' , '2147483647' , '0' , '0' , '".$prerecord."' , '".$postrecord."' , '-1','2000-01-01 00:00:00','2000-01-01 00:00:00')") or die("ERROR: ".mysql_error()); [/PHP] Am I missing some setting somewhere? Is it even possible to set recordings JUST using the MYSQL DB? Can anyone help me solve this please? Thanks, Chris [/QUOTE]
Insert quotes…
Verification
Post reply
Forums
MediaPortal 1
Development
General Development (no feature request here!)
Another stab at an EPG
Contact us
RSS
Top
Bottom