feat(opensearch): add abilility to add libremdb as search engine

thanks to @user451421541757324

re https://github.com/zyachel/libremdb/issues/95
This commit is contained in:
zyachel
2025-06-01 14:19:11 +00:00
committed by ngn
parent 0e2117e4c7
commit f92035ed8e
2 changed files with 14 additions and 0 deletions

7
public/opensearch.xml Normal file
View File

@ -0,0 +1,7 @@
<OpenSearchDescription xmlns="http://a9.com/-/spec/opensearch/1.1/">
<ShortName>libremdb</ShortName>
<Description>Search libremdb</Description>
<InputEncoding>UTF-8</InputEncoding>
<Image width="16" height="16" type="image/x-icon">https://libremdb.iket.me/favicon.ico</Image>
<Url type="text/html" method="get" template="https://libremdb.iket.me/find?q={searchTerms}"/>
</OpenSearchDescription>

View File

@ -36,6 +36,13 @@ const Meta = ({
<meta property='og:locale' content='en_US' />
<meta property='og:type' content='video.movie' />
<meta property='og:image' content={url.toString()} />
<link
rel='search'
type='application/opensearchdescription+xml'
href='/opensearch.xml'
title='libremdb'
></link>
</Head>
);
};