summaryrefslogtreecommitdiff
path: root/rhimport-fe
diff options
context:
space:
mode:
authorChristian Pointner <equinox@helsinki.at>2013-08-22 14:08:19 (GMT)
committerChristian Pointner <equinox@helsinki.at>2013-08-22 14:08:19 (GMT)
commitf9c25e62594b0a7880a3bbb657370bd9bc04c503 (patch)
treecc715f2fb94911c0f84cc445f0d471cd12e6315e /rhimport-fe
parentc8bf0b87ec673c759a4f4a6f34d9bf89a102cd82 (diff)
added check for file size to focus europa
Diffstat (limited to 'rhimport-fe')
-rwxr-xr-xrhimport-fe1
1 files changed, 1 insertions, 0 deletions
diff --git a/rhimport-fe b/rhimport-fe
index 64d1aa5..c6fba81 100755
--- a/rhimport-fe
+++ b/rhimport-fe
@@ -114,6 +114,7 @@ my $out_file = "";
for my $entry ($feed->entries) {
if($entry->enclosure && $entry->enclosure->type eq "audio/mpeg") {
next unless $entry->enclosure->url =~ /$regexp/;
+ next unless $entry->enclosure->length >= (20*1024*1024);
my $sum_title = decode_entities($entry->title);
my $sum_text = decode_entities($entry->content->body);