Skip to content

Commit

Permalink
change size video in url
Browse files Browse the repository at this point in the history
  • Loading branch information
Iryna-Vyshniak committed Mar 21, 2023
1 parent 910c449 commit f9b75fc
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/app/08-paginationPixabay.js
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,7 @@ class PixabayApiService {
}

fetchVideos(page) {
const url = `${URL_BASE}?key=${API_KEY}&q=${this.searchQuery}&video_type=all&safesearch=true&min_width=350&min_height=250&page=${page}&per_page=${this.per_page}`;
const url = `${URL_BASE}?key=${API_KEY}&q=${this.searchQuery}&video_type=all&safesearch=true&min_width=450&min_height=350&page=${page}&per_page=${this.per_page}`;

return fetch(url)
.then(response => response.json())
Expand All @@ -127,7 +127,7 @@ class PixabayApiService {

fetchVideosForMainPage(page) {
// page get from library pagination
const url = `${URL_BASE}?key=${API_KEY}&q=sea&video_type=all&safesearch=true&min_width=350&min_height=250&page=${page}&per_page=${this.per_page}`;
const url = `${URL_BASE}?key=${API_KEY}&q=sea&video_type=all&safesearch=true&min_width=450&min_height=350&page=${page}&per_page=${this.per_page}`;

return fetch(url)
.then(response => response.json())
Expand Down

0 comments on commit f9b75fc

Please sign in to comment.