Revision: 5819 Author: pebender Date: Wed Nov 11 13:40:02 2009 Log: - Fixed a bug in the checking of mythfrontend location state when using MythTV 0.22. MythTV changed from returning 'MainMenu' to returning 'mainmenu' when the location is queryed through the network control interface. - Changed the check of mythfrontend location to be case insensitive.
http://code.google.com/p/minimyth/source/detail?r=5819 Modified: /trunk/gar-minimyth/html/minimyth/document-changelog.txt /trunk/gar-minimyth/script/meta/minimyth/files/source/rootfs/usr/bin/mm_external_on_ss /trunk/gar-minimyth/script/meta/minimyth/files/source/rootfs/usr/bin/mm_sleep_on_ss /trunk/gar-minimyth/script/perl/perl-MiniMyth/checksums /trunk/gar-minimyth/script/perl/perl-MiniMyth/files/MiniMyth.pm ======================================= --- /trunk/gar-minimyth/html/minimyth/document-changelog.txt Wed Nov 11 13:29:26 2009 +++ /trunk/gar-minimyth/html/minimyth/document-changelog.txt Wed Nov 11 13:40:02 2009 @@ -21,3 +21,7 @@ - Fixed a bug that caused mm_sleep and mm_sleep_on_ss to output an error messages when either mm_external_power_off or mm_external_power_on were not present. + - Fixed a bug in the checking of mythfrontend location state when using + MythTV 0.22. MythTV changed from returning 'MainMenu' to returning + 'mainmenu' when the location is queryed through the network control + interface. ======================================= --- /trunk/gar-minimyth/script/meta/minimyth/files/source/rootfs/usr/bin/mm_external_on_ss Wed Nov 11 13:29:26 2009 +++ /trunk/gar-minimyth/script/meta/minimyth/files/source/rootfs/usr/bin/mm_external_on_ss Wed Nov 11 13:40:02 2009 @@ -185,7 +185,7 @@ if ($state eq 'BLANK') { # Do not sleep when in MythMusic or MythStream. - my $mythfrontend_location = join("\n", @{$minimyth->mythfrontend_networkcontrol('query location')}); + my $mythfrontend_location = lc(join("\n", @{$minimyth->mythfrontend_networkcontrol('query location')})); if (($mythfrontend_location ne 'playmusic' ) && ($mythfrontend_location ne 'mythstream')) { ======================================= --- /trunk/gar-minimyth/script/meta/minimyth/files/source/rootfs/usr/bin/mm_sleep_on_ss Mon Jan 5 21:37:01 2009 +++ /trunk/gar-minimyth/script/meta/minimyth/files/source/rootfs/usr/bin/mm_sleep_on_ss Wed Nov 11 13:40:02 2009 @@ -119,7 +119,7 @@ if ($state eq 'BLANK') { # Do not sleep when in MythMusic or MythStream. - my $mythfrontend_location = join("\n", @{$minimyth->mythfrontend_networkcontrol('query location')}); + my $mythfrontend_location = lc(join("\n", @{$minimyth->mythfrontend_networkcontrol('query location')})); if (($mythfrontend_location ne 'playmusic' ) && ($mythfrontend_location ne 'mythstream')) { ======================================= --- /trunk/gar-minimyth/script/perl/perl-MiniMyth/checksums Wed Nov 4 16:27:29 2009 +++ /trunk/gar-minimyth/script/perl/perl-MiniMyth/checksums Wed Nov 11 13:40:02 2009 @@ -1,1 +1,1 @@ -81638e8ecfa5bce584744a7b4feb54a9 download/MiniMyth.pm +30ef58b76c01d3cbbcf374307ef6b5fb download/MiniMyth.pm ======================================= --- /trunk/gar-minimyth/script/perl/perl-MiniMyth/files/MiniMyth.pm Wed Nov 4 16:27:29 2009 +++ /trunk/gar-minimyth/script/perl/perl-MiniMyth/files/MiniMyth.pm Wed Nov 11 13:40:02 2009 @@ -2258,8 +2258,8 @@ { for (my $timeout = 10 ; $timeout > 0 ; $timeout--) { - my $mythfrontend_location = join("\n", @{$self->mythfrontend_networkcontrol('query location')}); - if ($mythfrontend_location eq 'MainMenu') + my $mythfrontend_location = lc(join("\n", @{$self->mythfrontend_networkcontrol('query location')})); + if ($mythfrontend_location eq 'mainmenu') { last; } --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "minimyth-commits" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/minimyth-commits?hl=en -~----------~----~----~----~------~----~------~--~---
