From 8667336c12c59b489f1e96bddbf2590f51dbba43 Mon Sep 17 00:00:00 2001 From: shmyga Date: Thu, 13 Feb 2020 17:47:12 +0300 Subject: [PATCH] [update] (pixabay) update query --- src/haxe/ru/m/puzzlez/source/PixabaySource.hx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/haxe/ru/m/puzzlez/source/PixabaySource.hx b/src/haxe/ru/m/puzzlez/source/PixabaySource.hx index 806a29c..3777ff7 100644 --- a/src/haxe/ru/m/puzzlez/source/PixabaySource.hx +++ b/src/haxe/ru/m/puzzlez/source/PixabaySource.hx @@ -63,7 +63,7 @@ class PixabaySource implements IImageSource { public function getList(?type:PixabayCategory):Promise> { return new JsonLoader() - .GET('${baseUrl}?key=${key}&category=${type}&image_type=${PixabayImageType.PHOTO}') + .GET('${baseUrl}?key=${key}&category=${type}&image_type=${PixabayImageType.PHOTO}&editors_choice=true') .then((response:PixabayResponse) -> { var result = []; for (item in response.hits) { @@ -86,6 +86,6 @@ class PixabaySource implements IImageSource { public function loadImage(id:ImageId, preview:Bool = false):Promise { return getImage(id) - .pipe((data:PixabayImage) -> return new ImageLoader().GET(preview ? data.previewURL : data.largeImageURL)); + .pipe((data:PixabayImage) -> return new ImageLoader().GET(preview ? data.webformatURL : data.largeImageURL)); } }