mirror of
https://codeberg.org/scip/leo.git
synced 2025-12-16 04:01:04 +01:00
fixed http404, updated copylefts
This commit is contained in:
34
Org.pm
34
Org.pm
@@ -1,13 +1,13 @@
|
||||
#
|
||||
# Copyleft (l) 2000-2014 Thomas Linden <tom@daemon.de>.
|
||||
# 2014 Thomas von Dein <tom@vondein.org>.
|
||||
# Copyleft (l) 2000-2016 Thomas v.D. <tlinden@cpan.org>.
|
||||
#
|
||||
# leo may be
|
||||
# used and distributed under the terms of the GNU General Public License.
|
||||
# All other brand and product names are trademarks, registered trademarks
|
||||
# or service marks of their respective holders.
|
||||
|
||||
package WWW::Dict::Leo::Org;
|
||||
$WWW::Dict::Leo::Org::VERSION = 1.39;
|
||||
$WWW::Dict::Leo::Org::VERSION = 1.40;
|
||||
|
||||
use strict;
|
||||
use warnings;
|
||||
@@ -211,20 +211,18 @@ Accept-Language: en_US, en\r\n);
|
||||
croak "proxy auth required or access denied!\n";
|
||||
}
|
||||
else {
|
||||
croak "got HTTP error $err!\n";
|
||||
if ($site =~ /Leider konnten wir zu Ihrem Suchbegriff/ ||
|
||||
$site =~ /found no matches for your search/
|
||||
) {
|
||||
return ();
|
||||
}
|
||||
else {
|
||||
croak "got HTTP error $err!\n";
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
if ($site =~ /produced\s+no\s+results\s+for\s+the\s+selected/
|
||||
|| $site =~ /Die\s+Suche\s+nach.*lieferte\skeine/) {
|
||||
return ();
|
||||
}
|
||||
|
||||
#$site =~ s/(<table[^>]*>)/\n$1\n/g;
|
||||
#$site =~ s/(<\/table[^>]*>)/\n$1\n/g;
|
||||
#print $site;
|
||||
|
||||
my @request = (
|
||||
{
|
||||
id => 2,
|
||||
@@ -526,16 +524,14 @@ L<leo>
|
||||
|
||||
=head1 COPYRIGHT
|
||||
|
||||
WWW::Dict::Leo::Org -
|
||||
Copyright (c) 2007-2014 by Thomas Linden
|
||||
Copyright (c) 2014 by Thomas von Dein
|
||||
WWW::Dict::Leo::Org - Copyright (c) 2007-2016 by Thomas v.D.
|
||||
|
||||
L<http://dict.leo.org/> -
|
||||
Copyright (c) 1995-2014 LEO Dictionary Team.
|
||||
Copyright (c) 1995-2016 LEO Dictionary Team.
|
||||
|
||||
=head1 AUTHOR
|
||||
|
||||
Thomas Linden <tlinden@cpan.org>
|
||||
Thomas v.D. <tlinden@cpan.org>
|
||||
|
||||
=head1 HOW TO REPORT BUGS
|
||||
|
||||
@@ -545,6 +541,6 @@ Please don't forget to add debugging output!
|
||||
|
||||
=head1 VERSION
|
||||
|
||||
1.39
|
||||
1.40
|
||||
|
||||
=cut
|
||||
|
||||
10
README
10
README
@@ -36,17 +36,13 @@ HISTORY
|
||||
|
||||
COPYRIGHT
|
||||
|
||||
WWW::Dict::Leo::Org
|
||||
Copyright (c) 2007-2014 by Thomas Linden <tom@daemon.de>
|
||||
|
||||
leo
|
||||
Copyright (c) 2000-2014 by Thomas Linden <tom@daemon.de>
|
||||
WWW::Dict::Leo::Org + leo
|
||||
Copyright (c) 2007-2016 by Thomas v.D. <tlinden@cpan.org>
|
||||
|
||||
http://dict.leo.org/
|
||||
Copyright (c) 1995-2014 LEO Dictionary Team.
|
||||
Copyright (c) 1995-2016 LEO Dictionary Team.
|
||||
|
||||
The search results returned by leo are based on the work of the people
|
||||
at LEO.org. Thanks for the great work.
|
||||
|
||||
|
||||
Thomas Linden.
|
||||
|
||||
14
leo
14
leo
@@ -10,12 +10,12 @@
|
||||
#
|
||||
# $Id: leo,v 1.33 2008/04/22 22:23:39 scip Exp $
|
||||
#
|
||||
# Copyleft (l) 2000-2014 by Thomas Linden <tom@daemon.de>. leo may be
|
||||
# Copyleft (l) 2000-2016 by Thomas v.D. <tlinden@cpan.org>. leo may be
|
||||
# used and distributed under the terms of the GNU General Public License.
|
||||
# All other brand and product names are trademarks, registered trademarks
|
||||
# or service marks of their respective holders.
|
||||
|
||||
use lib qw(blib/lib);
|
||||
#use lib qw(blib/lib);
|
||||
#use Org;
|
||||
|
||||
use utf8;
|
||||
@@ -298,8 +298,8 @@ foreach my $section (@match) {
|
||||
|
||||
print "$copy_c" if $highlight;
|
||||
print "\n Fetched by leo $version via http://dict.leo.org/";
|
||||
print "\n Copyright (C) LEO Dictionary Team 1995-2014";
|
||||
print "\n [leo] GPL Copyleft Thomas Linden 2000-2014\n\n";
|
||||
print "\n Copyright (C) LEO Dictionary Team 1995-2016";
|
||||
print "\n [leo] GPL Copyleft Thomas v.D. 2000-2016\n\n";
|
||||
print "$default_c" if $highlight;
|
||||
|
||||
|
||||
@@ -589,7 +589,7 @@ the password will be read from STDIN.
|
||||
|
||||
=head1 AUTHOR
|
||||
|
||||
Thomas Linden <tom@daemon.de>.
|
||||
Thomas v.D. <tlinden@cpan.org>
|
||||
|
||||
|
||||
=head1 BUGS
|
||||
@@ -607,9 +607,9 @@ to me, thanks.
|
||||
|
||||
=head1 COPYRIGHT
|
||||
|
||||
B<leo> copyleft 2000-2014 Thomas Linden. All rights reserved.
|
||||
B<leo> copyleft 2000-2016 Thomas v.D.. All rights reserved.
|
||||
|
||||
http://dict.leo.org/ copyright (c) 1995-2014 LEO Dictionary Team.
|
||||
http://dict.leo.org/ copyright (c) 1995-2016 LEO Dictionary Team.
|
||||
|
||||
|
||||
The search results returned by B<leo> are based on the work
|
||||
|
||||
Reference in New Issue
Block a user