summaryrefslogtreecommitdiff
path: root/rhautoimport-eu
diff options
context:
space:
mode:
authorChristian Pointner <equinox@helsinki.at>2016-07-19 21:44:38 (GMT)
committerChristian Pointner <equinox@helsinki.at>2016-07-19 21:44:38 (GMT)
commitc10b740439ddcdeb4fd475e113cc439f374fc96b (patch)
treeabe7ab50005c8a86bf25314667795e33325a678a /rhautoimport-eu
parent4fdc9672f1cdc3b8d541fd62fea196140937e6f8 (diff)
make usage of fetch_parse_(rss|json) easier
Diffstat (limited to 'rhautoimport-eu')
-rwxr-xr-xrhautoimport-eu3
1 files changed, 1 insertions, 2 deletions
diff --git a/rhautoimport-eu b/rhautoimport-eu
index 5aad6f0..72509c3 100755
--- a/rhautoimport-eu
+++ b/rhautoimport-eu
@@ -84,8 +84,7 @@ my $bd = sprintf("%04d-%02d-%02d", @broadcast_date);
print "looking for files after $bd in Audioboom Clips\n";
print " -> $API_URL\n";
-my %h = ( 'Accept' => 'application/json; version=1' );
-my ($result, $data) = RHRD::utils::fetch_parse_json($API_URL, "Radio Helsinki - Automatic Import", \%h);
+my ($result, $data) = rhautoimport::fetch_parse_json_audioboom($API_URL);
unless ($result) {
print "Error fetching data: $data\n";
exit 1;