From 4fdc9672f1cdc3b8d541fd62fea196140937e6f8 Mon Sep 17 00:00:00 2001 From: Christian Pointner Date: Wed, 6 Jul 2016 15:56:01 +0200 Subject: cba now uses own namespace for custom fields diff --git a/debian/changelog b/debian/changelog index 3367f52..f313bea 100644 --- a/debian/changelog +++ b/debian/changelog @@ -1,3 +1,9 @@ +rhautoimport (16-1) unstable; urgency=medium + + * CBA now uses own namespace for custom fields + + -- Christian Pointner Wed, 06 Jul 2016 15:55:13 +0200 + rhautoimport (15-1) unstable; urgency=medium * added importer for Frequenz Leitwolf diff --git a/rhautoimport-po b/rhautoimport-po index 6c8e73f..5f9372b 100755 --- a/rhautoimport-po +++ b/rhautoimport-po @@ -125,7 +125,7 @@ for my $entry ($feed->entries) { $i++; next unless $entry->enclosure; - my $entry_bdt = $entry->{'entry'}{'broadcastDate'}; + my $entry_bdt = $entry->{'entry'}{'https://cba.fro.at'}{'broadcastDate'}; next unless (defined $entry_bdt); my $bdt = DateTime::Format::Strptime::strptime("%a, %d %b %Y %H:%M:%S", $entry_bdt); diff --git a/rhautoimport-wr b/rhautoimport-wr index d81aa9b..155d428 100755 --- a/rhautoimport-wr +++ b/rhautoimport-wr @@ -121,7 +121,7 @@ for my $entry ($feed->entries) { $i++; next unless $entry->enclosure; - my $entry_bdt = $entry->{'entry'}{'broadcastDate'}; + my $entry_bdt = $entry->{'entry'}{'https://cba.fro.at'}{'broadcastDate'}; next unless (defined $entry_bdt); my $bdt = DateTime::Format::Strptime::strptime("%a, %d %b %Y %H:%M:%S", $entry_bdt); diff --git a/test/cba-inspect b/test/cba-inspect index f998d43..f625cff 100755 --- a/test/cba-inspect +++ b/test/cba-inspect @@ -67,15 +67,18 @@ for my $entry ($feed->entries) { $sum_title = decode_entities($entry->title); $sum_text = decode_entities($entry->content->body); - my $production_date = $entry->{'entry'}{'productionDate'}; + my $production_date = $entry->{'entry'}{'https://cba.fro.at'}{'productionDate'}; $production_date = '' unless (defined $production_date); - my $broadcast_date = $entry->{'entry'}{'broadcastDate'}; + my $broadcast_date = $entry->{'entry'}{'https://cba.fro.at'}{'broadcastDate'}; $broadcast_date = '' unless (defined $broadcast_date); + my $contains_copyright = $entry->{'entry'}{'https://cba.fro.at'}{'containsCopyright'}; + $contains_copyright = 'false' unless (defined $contains_copyright); print $sum_title . ":\n"; print " Issued: " . $entry->issued . "\n"; print " Production: " . $production_date . "\n"; print " Broadcast: " . $broadcast_date . "\n"; + print " Contains Copyright: " . $contains_copyright . "\n"; print " Files:\n"; my $j = 0; -- cgit v0.10.2