Skip to content

Commit

Permalink
fix bab sub-title containing newlines
Browse files Browse the repository at this point in the history
  • Loading branch information
beavis69 committed Dec 28, 2020
1 parent e38db3b commit 2e31589
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions tv_grab_fr_telerama
Original file line number Diff line number Diff line change
Expand Up @@ -287,6 +287,9 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
2.5 bug fix :
* more casting see https://github.com/zubrick/tv_grab_fr_telerama/issues/32
2.6 bug fix :
* fix bab sub-title containing newlines.
=cut
use XMLTV::Usage <<END
$0: get French television listings in XMLTV format
Expand All @@ -310,7 +313,7 @@ use warnings;
use strict;

use utf8;
use XMLTV::Version '$Id: tv_grab_fr_telerama,v 2.5 2020/12/09 17:00:00 zubrick Exp $ ';
use XMLTV::Version '$Id: tv_grab_fr_telerama,v 2.6 2020/12/28 09:30:00 zubrick Exp $ ';
#use XMLTV::Capabilities qw/baseline manualconfig cache/;
use XMLTV::Capabilities qw/baseline manualconfig/;
use XMLTV::Description 'France (telerama)';
Expand Down Expand Up @@ -1084,7 +1087,7 @@ sub grab_day_channel($$$$$$) {

$prog{length} = str2time($line->{'horaire'}{'fin'}) - str2time($line->{'horaire'}{'debut'});

$prog{'sub-title'} = [ [ $line->{'soustitre'} ] ] if ($line->{'soustitre'});
$prog{'sub-title'} = [ [ $line->{'soustitre'} =~ s/\r|\n//gr ] ] if ($line->{'soustitre'});

# get genretext from uri
if (!$genretext && defined $line->{'url'}) {
Expand Down

0 comments on commit 2e31589

Please sign in to comment.