1
0
mirror of https://github.com/vichan-devel/vichan.git synced 2024-11-12 01:50:48 +01:00

Add yandex images as image identification option (#430)

* Add yandex images as image identification option

* Update image_identification.html

* Fix indentation

Co-authored-by: Fred Brennan <copypaste@kittens.ph>
This commit is contained in:
haruhianon609 2022-08-29 14:37:40 +00:00 committed by GitHub
parent 1e19e75bf5
commit 0f94915fdf
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 4 additions and 1 deletions

View File

@ -852,6 +852,7 @@
$config['image_identification_imgops'] = true; $config['image_identification_imgops'] = true;
$config['image_identification_exif'] = true; $config['image_identification_exif'] = true;
$config['image_identification_google'] = true; $config['image_identification_google'] = true;
$config['image_identification_yandex'] = true;
// Anime/manga search engine. // Anime/manga search engine.
$config['image_identification_iqdb'] = false; $config['image_identification_iqdb'] = false;

View File

@ -1,5 +1,4 @@
{% if file.thumb != 'file' and config.image_identification %} {% if file.thumb != 'file' and config.image_identification %}
<span class='image_id'> <span class='image_id'>
{% if config.image_identification_imgops %} {% if config.image_identification_imgops %}
<a href="http://imgops.com/{{ config.domain }}{{ config.uri_img }}{{ file.file }}" target="_blank">ImgOps</a> <a href="http://imgops.com/{{ config.domain }}{{ config.uri_img }}{{ file.file }}" target="_blank">ImgOps</a>
@ -13,5 +12,8 @@
{% if config.image_identification_iqdb %} {% if config.image_identification_iqdb %}
<a href="http://iqdb.org/?url={{ config.domain }}{{ config.uri_img }}{{ file.file }}" target="_blank">iqdb</a> <a href="http://iqdb.org/?url={{ config.domain }}{{ config.uri_img }}{{ file.file }}" target="_blank">iqdb</a>
{% endif %} {% endif %}
{% if config.image_identification_yandex %}
<a rel="noreferrer" href="https://yandex.com/images/search?url={{ config.domain }}{{ config.uri_img }}{{ file.file }}&rpt=imagelike" target="_blank">Yandex</a>
{% endif %}
</span> </span>
{% endif %} {% endif %}