From 11affa681c9cfb751a82f76e813655d170b3954e Mon Sep 17 00:00:00 2001 From: Christian Pointner Date: Thu, 6 Sep 2012 19:17:39 +0000 Subject: use filename as decision base for DN! diff --git a/rhimport-dn b/rhimport-dn index d155eb2..ccb774d 100755 --- a/rhimport-dn +++ b/rhimport-dn @@ -101,7 +101,7 @@ my $file = ""; my $out_file = ""; for my $entry ($files_feed->entries) { if($entry->enclosure && $entry->enclosure->type eq "audio/mpeg") { - if($entry->id =~ /^dn([0-9-]+)-static$/) { + if($entry->enclosure->url =~ /^http:\/\/distro.democracynow.org\/dn([0-9-]+)-1\.mp3$/) { next if($yc ne $1); my $ff = File::Fetch->new(uri => $entry->enclosure->url); -- cgit v0.10.2