summaryrefslogtreecommitdiff
path: root/rhimport-tr
diff options
context:
space:
mode:
authorChristian Pointner <equinox@helsinki.at>2016-02-12 15:28:42 (GMT)
committerChristian Pointner <equinox@helsinki.at>2016-02-12 15:30:29 (GMT)
commita50293d68c027412248e4f2d4c6372a8eeff7687 (patch)
tree55513b7e41bf11b1dbfc942cba049397e7e8a031 /rhimport-tr
parent553c89a24cea6aff7bcf6c0099aaaedc2f5b954b (diff)
allow dashes in date format for tierrechtsradio
Diffstat (limited to 'rhimport-tr')
-rwxr-xr-xrhimport-tr2
1 files changed, 1 insertions, 1 deletions
diff --git a/rhimport-tr b/rhimport-tr
index d86bdb9..e02ae0c 100755
--- a/rhimport-tr
+++ b/rhimport-tr
@@ -86,7 +86,7 @@ print "day of original broadcast: " . Date::Calc::Date_to_Text(@broadcast_day) .
print "day of Radio Helsinki broadcast: " . Date::Calc::Date_to_Text(@import_date) . "\n";
my $bd = sprintf("%04d-%02d-%02d", $broadcast_day[0], $broadcast_day[1], $broadcast_day[2]);
-my $bdfile = sprintf("^%04d%02d%02d", $broadcast_day[0], $broadcast_day[1], $broadcast_day[2]);
+my $bdfile = sprintf("^%04d-?%02d-?%02d", $broadcast_day[0], $broadcast_day[1], $broadcast_day[2]);
print "looking for files from $bd in RSS Feed\n";
print " -> $RSS_URL\n";