Skip to content
Extraits de code Groupes Projets
Valider a6225ef2 rédigé par Alexandre Morignot's avatar Alexandre Morignot
Parcourir les fichiers

remove utf8 decoding (fuck that shit)

parent d8fdcedc
Branches
Étiquettes
Aucune requête de fusion associée trouvée
......@@ -16,11 +16,13 @@ sub get {
my $video = $yt->get_video_by_id($id);
my %infos;
$infos{'title'} = decode("Detect", $video->title);
#$infos{'title'} = decode("UTF-8", $video->title);
$infos{'title'} = $video->title;
$infos{'author'} = $video->uploader;
$infos{'url'} = $video->base_uri;
my $context = decode("Detect", $video->description) . ' ' . $infos{'title'};
=cut
my $context = decode("UTF-8", $video->description) . ' ' . $infos{'title'};
my $finder = URI::Find->new( sub { '' } );
# we remove the URI and the punctuation
......@@ -28,6 +30,7 @@ sub get {
$context =~ s/[[:punct:]]/ /g;
$infos{'context'} = $context;
=cut
return %infos;
}
......
0% Chargement en cours ou .
You are about to add 0 people to the discussion. Proceed with caution.
Veuillez vous inscrire ou vous pour commenter