From 47d2fa25c11d5b99d8f2f5dde01b78b151374799 Mon Sep 17 00:00:00 2001 From: Christian Pointner Date: Tue, 10 May 2016 22:58:53 +0200 Subject: reduce by one redirect diff --git a/utils/rhrd-schedules b/utils/rhrd-schedules index 7cc3194..123302c 100755 --- a/utils/rhrd-schedules +++ b/utils/rhrd-schedules @@ -37,7 +37,7 @@ sub generate { my ($ctx, $year, $month, $day) = @_; - my ($ret, $data) = RHRD::utils::fetch_parse_json("https://pv.helsinki.at/export/day_schedule/$year/$month/$day", "rhrd-schedules"); + my ($ret, $data) = RHRD::utils::fetch_parse_json("https://pv.helsinki.at/export/day_schedule/$year/$month/$day/", "rhrd-schedules"); if(!$ret) { print STDERR "Error fetching export from PV: $data\n"; return 1; @@ -92,9 +92,9 @@ sub show__day { my ($ctx, $year, $month, $day) = @_; - print "https://pv.helsinki.at/export/day_schedule/$year/$month/$day\n"; + print "https://pv.helsinki.at/export/day_schedule/$year/$month/$day/\n"; - my ($ret, $data) = RHRD::utils::fetch_parse_json("https://pv.helsinki.at/export/day_schedule/$year/$month/$day", "rhrd-schedules"); + my ($ret, $data) = RHRD::utils::fetch_parse_json("https://pv.helsinki.at/export/day_schedule/$year/$month/$day/", "rhrd-schedules"); if(!$ret) { print STDERR "Error fetching export from PV: $data\n"; return 1; -- cgit v0.10.2