File vdradmin-3.6.9-recdetail-fix.diff of Package vdradmin-am

Index: b/vdradmind.pl
===================================================================
--- a/vdradmind.pl
+++ b/vdradmind.pl
@@ -6266,11 +6266,14 @@ sub getRecInfo {
     my $vars;
     if ($FEATURES{VDRVERSION} >= 10325) {
         $SVDRP->command("lstr $id");
         my ($channel_name, $subtitle, $text, $video, $audio, $subs);
         while ($_ = $SVDRP->readoneline) {
-            if (/^C (.*)/) { $channel_name = get_name_from_uniqid($1); }
+            # first, check for new vdr-1.6+ format "C S19.2E-1-1079-28007 3sat"
+            if (/^C \S+ (.*)/) { $channel_name = $1; }
+            # if that does not match, check for old "C S19.2E-1-1079-28007"
+            elsif (/^C (.*)/) { $channel_name = get_name_from_uniqid($1); }
             #elsif (/^E (.*)/) { $epg = $1; }
             elsif (/^T (.*)/) { $title    = $1; }
             elsif (/^S (.*)/) { $subtitle = $1; }
             elsif (/^D (.*)/) { $text     = $1; }
             elsif (/^X 1 [^ ]* (.*)/) {
openSUSE Build Service is sponsored by