summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristian Pointner <equinox@helsinki.at>2012-09-06 19:17:39 (GMT)
committerChristian Pointner <equinox@helsinki.at>2012-09-06 19:17:39 (GMT)
commit11affa681c9cfb751a82f76e813655d170b3954e (patch)
tree9afea36c59f3ec386c1aa5ccd2d17183801358db
parent1b2fa6aaa36c4521736bb85e698ef6eb9a7ae0de (diff)
use filename as decision base for DN!
-rwxr-xr-xrhimport-dn2
1 files changed, 1 insertions, 1 deletions
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);