Fixed LCSC provider

LCSC has changed its search API, so it was broken. Fixes issue #1018
This commit is contained in:
Jan Böhmer 2025-09-06 19:22:59 +02:00
parent 9b17efc12c
commit 065ef9f8ae

View file

@ -123,11 +123,11 @@ class LCSCProvider implements InfoProviderInterface
*/
private function queryByTerm(string $term): array
{
$response = $this->lcscClient->request('GET', self::ENDPOINT_URL . "/search/global", [
$response = $this->lcscClient->request('POST', self::ENDPOINT_URL . "/search/v2/global", [
'headers' => [
'Cookie' => new Cookie('currencyCode', $this->settings->currency)
],
'query' => [
'json' => [
'keyword' => $term,
],
]);