The plugin stopped working for me over a week ago. This is from the logfile: Plugins::LiveDepartures::UKStandardRoute::doParseContent (414) fatal error: expected Train Departures or Bus Departures in first row Plugins::LiveDepartures::RouteBase::enterStateTempError (231) Route 'Departures from BBG to GLQ' entering state TEMP_ERROR
This is the webpage I think it's reading http://www.livedepartureboards.co.uk/ldb/sumdep.aspx?T=BBG&S=GLQ and this is the code that is failing from UKStandardRoute.pm: if (DISPLAY_TYPE_ALL_DEPARTURES_FROM == $self->{DISPLAY_TYPE} || DISPLAY_TYPE_DEPARTURES_FROM_TO == $self->{DISPLAY_TYPE}) { # departures from... so expect to find "Train Departures" or "Bus Departures" if ($tableRow =~ m/Train Departures/) { $transportType = TRANSPORT_TYPE_TRAIN; $log->info("This transport section is TRAIN DEPARTURES"); } elsif ($tableRow =~ m/Bus Departures/) { $transportType = TRANSPORT_TYPE_BUS; $log->info("This transport section is BUS DEPARTURES"); } elsif ($tableRow =~ m/Departures/) { # if this just contains "Departures" then there's no transport type - so shouldn't expect any details below $transportType = undef; } else { # bad bad bad - fatal error $log->info("fatal error: expected Train Departures or Bus Departures in first row"); $fatalError = 1; It may be that the webpage has altered so causing the error. Unfortunately I can't fix it. I agree it's a shame if it's no longer being supported. Steve -- skind56 ------------------------------------------------------------------------ skind56's Profile: http://forums.slimdevices.com/member.php?userid=9792 View this thread: http://forums.slimdevices.com/showthread.php?t=33913 _______________________________________________ plugins mailing list [email protected] http://lists.slimdevices.com/mailman/listinfo/plugins
