diff options
author | Yorhel <git@yorhel.nl> | 2021-01-10 12:29:52 +0100 |
---|---|---|
committer | Yorhel <git@yorhel.nl> | 2021-01-10 12:29:52 +0100 |
commit | bc87360592b827abd454b3c2fc9697ceb66e0148 (patch) | |
tree | 12169043a46d1be8dc7a71e239a15b523eeb42e0 /lib/VNDB | |
parent | a9812a77315b9d9a77f6be663bb46b0425e3b7bb (diff) |
v2rw: Convert /opensearch.xml description + ancient typo fix
Diffstat (limited to 'lib/VNDB')
-rw-r--r-- | lib/VNDB/Handler/Misc.pm | 20 |
1 files changed, 0 insertions, 20 deletions
diff --git a/lib/VNDB/Handler/Misc.pm b/lib/VNDB/Handler/Misc.pm index 74f9dcfd..cca10ed5 100644 --- a/lib/VNDB/Handler/Misc.pm +++ b/lib/VNDB/Handler/Misc.pm @@ -12,7 +12,6 @@ use VNDB::Types; TUWF::register( qr{nospam}, \&nospam, qr{xml/prefs\.xml}, \&prefs, - qr{opensearch\.xml}, \&opensearch, ); @@ -50,24 +49,5 @@ sub prefs { } -sub opensearch { - my $self = shift; - my $h = $self->reqBaseURI(); - $self->resHeader('Content-Type' => 'application/opensearchdescription+xml'); - xml; - tag 'OpenSearchDescription', - xmlns => 'http://a9.com/-/spec/opensearch/1.1/', 'xmlns:moz' => 'http://www.mozilla.org/2006/browser/search/'; - tag 'ShortName', 'VNDB'; - tag 'LongName', 'VNDB.org visual novel search'; - tag 'Description', 'Search visual vovels on VNDB.org'; - tag 'Image', width => 16, height => 16, type => 'image/x-icon', "$h/favicon.ico"; - tag 'Url', type => 'text/html', method => 'get', template => "$h/v?q={searchTerms}", undef; - tag 'Url', type => 'application/opensearchdescription+xml', rel => 'self', template => "$h/opensearch.xml", undef; - tag 'Query', role => 'example', searchTerms => 'Tsukihime', undef; - tag 'moz:SearchForm', "$h/v"; - end 'OpenSearchDescription'; -} - - 1; |