diff options
| author | David Rütti <d_ruetti@hotmail.com> | 2011-12-24 21:41:27 +0100 |
|---|---|---|
| committer | Ville Skyttä <ville.skytta@iki.fi> | 2011-12-26 00:05:49 +0200 |
| commit | 477000199e8cd5fd01e8c89f576b584bc6f5ef18 (patch) | |
| tree | 2e3b367b52f70bc3ddfa7a2118f6142026ecfdc7 | |
| parent | ff6cc2122b7afe0640cd82b401c2de7729922fa7 (diff) | |
| download | vdradmin-am-477000199e8cd5fd01e8c89f576b584bc6f5ef18.tar.gz vdradmin-am-477000199e8cd5fd01e8c89f576b584bc6f5ef18.tar.bz2 | |
Fixed LSTR for VDR >= 1.7.21 when executing recording commands (Closes: #834).
| -rw-r--r-- | HISTORY | 1 | ||||
| -rwxr-xr-x | vdradmind.pl | 6 |
2 files changed, 6 insertions, 1 deletions
@@ -1,5 +1,6 @@ 20xx-xx-xx: x.x.x - Added: Hungarian translation (Submitted by István Füley). +- Fixed LSTR when executing recording commands on VDR >= 1.7.21 (Submitted by David Rütti) 2011-11-20: 3.6.9 - Added: Support changed SVDRP LSTR output of VDR >= 1.7.21. diff --git a/vdradmind.pl b/vdradmind.pl index 60fe3fa..1299565 100755 --- a/vdradmind.pl +++ b/vdradmind.pl @@ -6438,7 +6438,11 @@ sub recRunCmd { my ($day, $month, $hour, $minute, $newtitle, $c, $folder); for (SendCMD("lstr")) { - ($rec_id, $date, $time, $title) = split(/ +/, $_, 4); + if ($FEATURES{VDRVERSION} < 10721) { + ($rec_id, $date, $time, $title) = split(/ +/, $_, 4); + } else { + ($rec_id, $date, $time, undef, $title) = split(/ +/, $_, 5); + } last if ($rec_id == $id); } |
