diff options
author | Christian Pointner <equinox@helsinki.at> | 2016-07-19 21:44:38 (GMT) |
---|---|---|
committer | Christian Pointner <equinox@helsinki.at> | 2016-07-19 21:44:38 (GMT) |
commit | c10b740439ddcdeb4fd475e113cc439f374fc96b (patch) | |
tree | abe7ab50005c8a86bf25314667795e33325a678a /test/audioboom-inspect | |
parent | 4fdc9672f1cdc3b8d541fd62fea196140937e6f8 (diff) |
make usage of fetch_parse_(rss|json) easier
Diffstat (limited to 'test/audioboom-inspect')
-rwxr-xr-x | test/audioboom-inspect | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/test/audioboom-inspect b/test/audioboom-inspect index aab1b2b..7f4c6fc 100755 --- a/test/audioboom-inspect +++ b/test/audioboom-inspect @@ -42,8 +42,7 @@ binmode(STDIN, ":utf8"); binmode(STDOUT, ":utf8"); binmode(STDERR, ":utf8"); -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; |