summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
Diffstat (limited to 'lib')
-rwxr-xr-xlib/rddb.pm3
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/rddb.pm b/lib/rddb.pm
index c834dda..b78f4d1 100755
--- a/lib/rddb.pm
+++ b/lib/rddb.pm
@@ -129,9 +129,10 @@ sub get_dropboxes
}
$entry->{'SHOWTITLE'} = $title;
- if($params =~ /^([01]{4})-([0-9]{2})-([0-9]{2})([0-9]{2})-([0-9]{3})$/) {
+ if($params =~ /^([01]{4})-([1-7])-([0-9]{2})([0-9]{2})-([0-9]{3})$/) {
$entry->{'RHYTHM'} = $1;
$entry->{'DOW'} = int $2;
+ $entry->{'DOW'} = 0 unless $entry->{'DOW'} < 7;
$entry->{'STARTTIME'} = "$3:$4";
$entry->{'LENGTH'} = int $5;
}