'));
$html = substr($html, 0, index($html, ""));
if ( $savenexturl ne "" )
{
$html .= $self->RecupSolution($savenexturl);
}
}
else
{
$html = '';
if ( $savenexturl ne "" )
{
$html .= $self->RecupSolution($savenexturl);
}
}
return "" . $html . "";
}
sub getSearchUrl
{
my ($self, $word) = @_;
return 'http://www.jeuxvideo.fr/r/'.$word.'/';
}
sub getItemUrl
{
my ($self, $url) = @_;
my $found = index($url,"tpfplatformtpf");
if ( $found >= 0 )
{
$self->{url_plateforme} = substr($url, $found +length('tpfplatformtpf'),length($url)- $found -length('tpfplatformtpf'));
$url = substr($url, 0,$found);
}
$self->{url_screenshot} = $url . 'image-photo/';
$self->{url_tips} = $url . 'astuce-code/';
$self->{url_tips} = $url . 'soluce/';
return $url;
}
sub getName
{
return 'jeuxvideo.fr';
}
sub getAuthor
{
return 'Tian';
}
sub getLang
{
return 'FR';
}
sub getCharset
{
my $self = shift;
return "ISO-8859-1";
}
sub isPreferred
{
return 1;
}
}
1;