[mythtv-users] MythTV v35 Release Date

f-myth-users at media.mit.edu f-myth-users at media.mit.edu
Thu Feb 13 20:03:06 UTC 2025


    > Date: Thu, 13 Feb 2025 12:19:10 -0600
    > From: Leo Butler <leo.butler81 at googlemail.com>

    > Is your patch to see the entire broadcast schedule for a single channel?

Yes.

    > Would you mind sharing the patch? I don't see anything on the mythweb
    > repo page:

    > https://github.com/MythTV/mythweb/issues

Sure.  I never bothered to try to upstream it because for years now
everyone's said Mythweb was going away.  (This *does* mean that every
time I take an update, I have some logic wrapped around that update to
alert me if these particular files ever change so I can hand-apply my
patches again, but it's been a while since they have. :)

The stuff below is short enough that I'm including it inline instead of
attaching it.  It fixes three issues:

(a) Stops Mythweb from resetting the date on the channel-detail page to
be one day earlier every time I change the channel selection, forcing
me to change the channel, then advance the date again.  This looks like
an outright bug having to do with localtime vs UTC confusion.

(b) Gives me up to 30 days of scheduling information for all channels,
not just one.  (I made this change ages ago back in the version 19 days,
also way before Myth used Github IIRC, and then updated it when Mythweb
dramatically changed how all that was implemented.)  Note that I never
get more than 13-17 days of actual scheduling information, so asking
for 30 just means the page ends when the scheduling data does for that
channel.

(c) Automatically ticks the "don't commflag" box when scheduling if the
underlying channel claims it's commfree, so I don't have to remember to
do so.

Note that the prepended -+ from diff disturbs the tab alignment; oh well.

$ diff -U0 /usr/share/mythtv/mythweb/modules/tv/channel.php{.ORIGINAL,}; diff -U0 /usr/share/mythtv/mythweb/modules/tv/tmpl/default/detail.php{.ORIGINAL,}
--- /usr/share/mythtv/mythweb/modules/tv/channel.php.ORIGINAL     2021-08-08 08:56:56.000000000 -0400
+++ /usr/share/mythtv/mythweb/modules/tv/channel.php    2022-08-15 20:32:17.960767253 -0400
@@ -25 +25,2 @@
-            $_REQUEST['date'] = unixtime(sprintf('%08d000000', $_REQUEST['date']));
+//          $_REQUEST['date'] = unixtime(sprintf('%08d000000', $_REQUEST['date']));            // +++:  If you're not in UTC, this -moves the date- one day earlier!
+            $_REQUEST['date'] = unixtime(sprintf('%08d000000', $_REQUEST['date'])) - date('Z');        // +++:  We -subtract- because, in EDT, "date('Z)" gives me -14400 (-4 hours).
@@ -36 +37,2 @@
-                                      mktime(0, 0, 0, date('n', $_SESSION['list_time']), date('j', $_SESSION['list_time']) + 1, date('Y', $_SESSION['list_time'])),
+//                                    mktime(0, 0, 0, date('n', $_SESSION['list_time']), date('j', $_SESSION['list_time']) + 1, date('Y', $_SESSION['list_time'])),            // +++.
+                                      mktime(0, 0, 0, date('n', $_SESSION['list_time']), date('j', $_SESSION['list_time']) + 30, date('Y', $_SESSION['list_time'])),           // +++.
@@ -43 +45,2 @@
-                                          mktime(0, 0, 0, date('n', $_SESSION['list_time']), date('j', $_SESSION['list_time']) + 1, date('Y', $_SESSION['list_time'])),
+//                                        mktime(0, 0, 0, date('n', $_SESSION['list_time']), date('j', $_SESSION['list_time']) + 1, date('Y', $_SESSION['list_time'])),                // +++.
+                                          mktime(0, 0, 0, date('n', $_SESSION['list_time']), date('j', $_SESSION['list_time']) + 30, date('Y', $_SESSION['list_time'])),       // +++.
--- /usr/share/mythtv/mythweb/modules/tv/tmpl/default/detail.php.ORIGINAL 2021-08-08 08:56:56.000000000 -0400
+++ /usr/share/mythtv/mythweb/modules/tv/tmpl/default/detail.php        2021-09-04 14:10:18.000000000 -0400
@@ -28,0 +28,1 @@
+if ($program && $schedule && $channel && (!$schedule->recordid || $schedule->search) && $channel->commmethod != -2) $schedule->autocommflag = 1;       // +++.


More information about the mythtv-users mailing list