File vdradmin-3.6.10-better-filenames.diff of Package vdradmin-am

--- a/vdradmind.pl 2021-01-04 14:52:07.000000000 +0100
+++ b/vdradmind.pl 2023-05-14 08:32:25.389863820 +0200
@@ -4875,6 +4875,13 @@
         $this_event->{stop}     = $this->{stop} + ($CONFIG{TM_MARGIN_END} * 60);
         $this_event->{dor}      = $this->{dor};
         $this_event->{title}    = $this->{title};
+        if ($this->{subtitle} ne "") {
+                $this_event->{title}    = $this->{title}." - ".$this->{subtitle};
+        } elsif (length($this->{summary})<100) {
+                $this_event->{title}    = $this->{title}." - ".$this->{summary};
+        }
+        my $ILLEGAL_CHR = qr/[\/\|\\\r\n\t\013\*\"\?\<\:\>]/;
+        $this_event->{title} =~ s/$ILLEGAL_CHR/_/g;
         if ($FEATURES{EPGSEARCH}) {
             $this_event->{tool}      = $TOOL_EPGSEARCH;
             $this_event->{at_epg}    = 1;
openSUSE Build Service is sponsored by