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

utils::print do not use get_url anymore (to much overload)

parent 453d35da
Aucune branche associée trouvée
Aucune étiquette associée trouvée
Aucune requête de fusion associée trouvée
...@@ -24,14 +24,6 @@ sub print ...@@ -24,14 +24,6 @@ sub print
{ {
my ($content) = @_; my ($content) = @_;
if (defined($content->{external_id}) and defined($content->{site}))
{
my $site = 'PlayBot::sites::'.$content->{site};
eval "require $site";
eval { $content->{url} = $site->get_url($content->{external_id}) };
# TOOD: log if $@
}
my $msg = YELLOW.'['.$content->{'id'}.'] '.GREEN.$content->{'title'}; my $msg = YELLOW.'['.$content->{'id'}.'] '.GREEN.$content->{'title'};
if (defined $content->{'author'}) if (defined $content->{'author'})
......
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