Commit 4ce57470 authored by Joakim Nylén's avatar Joakim Nylén

UTF8

parent 984ae974
......@@ -17,7 +17,7 @@ use DateTime;
use XML::LibXML;
use Encode qw/encode decode/;
use NonameTV qw/norm ParseXml AddCategory/;
use NonameTV qw/norm normUtf8 ParseXml AddCategory/;
use NonameTV::Log qw/progress error/;
use NonameTV::Importer::BaseOne;
......@@ -102,7 +102,7 @@ sub ImportContent
$title =~ s/^Filmski maraton://;
my ($newtitle, $cat) = ($title =~ /(.*),(.*)/);
if(defined $cat) {
$title = norm($newtitle);
$title = $newtitle;
}
$title =~ s/\((\d+)\)//;
......@@ -159,9 +159,9 @@ sub ImportContent
my $ce = {
channel_id => $chd->{id},
title => norm($title) || norm($org_title),
subtitle => norm($subtitle),
description => norm($desc),
title => normUtf8($title) || normUtf8($org_title),
subtitle => normUtf8($subtitle),
description => normUtf8($desc),
start_time => $start->ymd("-") . " " . $start->hms(":"),
end_time => $end->ymd("-") . " " . $end->hms(":"),
#aspect => $sixteen_nine ? "16:9" : "4:3",
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment