dev comment all yandex search
Test Workflow / test (push) Successful in 4s

This commit is contained in:
vladp
2026-03-16 15:46:19 +07:00
parent a1669826b5
commit 18c07b427c
2 changed files with 33 additions and 30 deletions
@@ -56,15 +56,15 @@ public class MonitoringSearchService {
try {
tariffInfoService.writeOffTokens(monitoring.getUserId(), tariffMonitoring.getTokens());
String yandexResponse = searchImageService.searchReverseByPublicUrl(
monitoring.getFile(), "yandex_reverse_image", "visual_matches");
// String yandexResponse = searchImageService.searchReverseByPublicUrl(
// monitoring.getFile(), "yandex_reverse_image", "visual_matches");
List<YandexSearchResponse.ImageResult> yandexImages =
searchImageService.getAllImagesWithoutPagination(yandexResponse, "visual_matches");
for (YandexSearchResponse.ImageResult imageResult : yandexImages) {
violationService.processViolation(imageResult, monitoring.getFile(), null);
}
// List<YandexSearchResponse.ImageResult> yandexImages =
// searchImageService.getAllImagesWithoutPagination(yandexResponse, "visual_matches");
//
// for (YandexSearchResponse.ImageResult imageResult : yandexImages) {
// violationService.processViolation(imageResult, monitoring.getFile(), null);
// }
try {
String googleResponse = searchImageService.searchReverseByPublicUrl(