[mythtv-commits] Ticket #11697: Cannot add recording in MythWeb anymore

MythTV noreply at mythtv.org
Tue Oct 1 05:47:53 UTC 2013


#11697: Cannot add recording in MythWeb anymore
-----------------------------------------------+-------------------------
 Reporter:  Torsten Seyffarth <t.seyffarth@…>  |          Owner:
     Type:  Bug Report - General               |         Status:  new
 Priority:  minor                              |      Milestone:  unknown
Component:  Plugin - MythWeb                   |        Version:  0.26
 Severity:  medium                             |     Resolution:
 Keywords:                                     |  Ticket locked:  0
-----------------------------------------------+-------------------------

Comment (by mopp@…):

 In the database findid is defined as INT(11). From my understanding the
 function even should not return 735434.62847222, it should be 735435.
 The following fix works with mythweb 0.26, but from my understanding 0.27
 has exactly the same problem. The fix just rounds the findid to an
 interger number. But I'm not 100% for what findid is used for, so it might
 be a problem to round the number.
 On my system there a re some more bugs in 0.26 web interface, so I'll
 update to 0.27 soon.


 --- mythweb/modules/tv/classes/Schedule.php.orig   2012-08-28
 19:22:44.000000000 +0200
 +++ mythweb/modules/tv/classes/Schedule.php        2013-10-01
 07:40:12.829590366 +0200
 @@ -247,7 +247,7 @@
      // Make sure that recordid is null if it's empty
          if (empty($this->recordid)) {
              $this->recordid = NULL;
 -            $this->findid   = (date('U', $this->starttime)/60/60/24) +
 719528;
 +            $this->findid   = round(((date('U',
 $this->starttime)/60/60/24) + 719528), 0);
          // Only auto-default these properties if we're not dealing with a
          // search-based recording rule, otherwise take the values we
          // received from the custom schedule input form

--
Ticket URL: <http://code.mythtv.org/trac/ticket/11697#comment:2>
MythTV <http://www.mythtv.org>
MythTV Media Center


More information about the mythtv-commits mailing list