Loading bin/hafas-m +14 −1 Original line number Diff line number Diff line Loading @@ -65,6 +65,7 @@ if ($list_services) { ); for my $service ( Travel::Status::DE::HAFAS::get_services() ) { if ( $service->{shortname} eq 'DB' ) { # HTTP 503 Service Unavailable next; } Loading @@ -78,6 +79,18 @@ if ($list_services) { exit 0; } if ( not $service ) { say STDERR 'Note: You have called hafas-m without specifying a service.'; say STDERR q{}; say STDERR 'Unfortunately, the previous default service (DB HAFAS)'; say STDERR 'is no more, and there is no generic replacement available.'; say STDERR q{}; say STDERR 'Please use "hafas-m --list" to list supported services,'; say STDERR 'and then select one via -s <service>.'; say STDERR 'Falling back to ÖBB for now.'; $service = 'ÖBB'; } if ($use_cache) { my $cache_path = ( $ENV{XDG_CACHE_HOME} // "$ENV{HOME}/.cache" ) . '/Travel-Status-DE-HAFAS'; Loading lib/Travel/Status/DE/HAFAS.pm +1 −1 Original line number Diff line number Diff line Loading @@ -60,7 +60,7 @@ sub new { } if ( not defined $service ) { $service = $conf{service} = 'DB'; confess("You must specify a service"); } if ( defined $service and not exists $hafas_instance->{$service} ) { Loading Loading
bin/hafas-m +14 −1 Original line number Diff line number Diff line Loading @@ -65,6 +65,7 @@ if ($list_services) { ); for my $service ( Travel::Status::DE::HAFAS::get_services() ) { if ( $service->{shortname} eq 'DB' ) { # HTTP 503 Service Unavailable next; } Loading @@ -78,6 +79,18 @@ if ($list_services) { exit 0; } if ( not $service ) { say STDERR 'Note: You have called hafas-m without specifying a service.'; say STDERR q{}; say STDERR 'Unfortunately, the previous default service (DB HAFAS)'; say STDERR 'is no more, and there is no generic replacement available.'; say STDERR q{}; say STDERR 'Please use "hafas-m --list" to list supported services,'; say STDERR 'and then select one via -s <service>.'; say STDERR 'Falling back to ÖBB for now.'; $service = 'ÖBB'; } if ($use_cache) { my $cache_path = ( $ENV{XDG_CACHE_HOME} // "$ENV{HOME}/.cache" ) . '/Travel-Status-DE-HAFAS'; Loading
lib/Travel/Status/DE/HAFAS.pm +1 −1 Original line number Diff line number Diff line Loading @@ -60,7 +60,7 @@ sub new { } if ( not defined $service ) { $service = $conf{service} = 'DB'; confess("You must specify a service"); } if ( defined $service and not exists $hafas_instance->{$service} ) { Loading