Skip to content

Commit

Permalink
Merge pull request #188 from hermanho/dev
Browse files Browse the repository at this point in the history
2.1.6
  • Loading branch information
hermanho authored Mar 16, 2024
2 parents e29354d + 798b409 commit 673fb08
Show file tree
Hide file tree
Showing 4 changed files with 22 additions and 15 deletions.
8 changes: 6 additions & 2 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,11 @@
# MMM-GooglePhotos Change Log

**`[2.1.6] - 2024/03/16`**
- Fixed: [#187](https://github.com/hermanho/MMM-GooglePhotos/issues/187) fix pageSize parameter
- Fixed: update follow-redirects to 1.15.6 [CVE-2024-28849](https://github.com/advisories/GHSA-cxjh-pqwp-8mfp)

**`[2.1.5] - 2024/03/08`**
- Added: Allow regular expression ([RE2 engine](https://github.com/google/re2)) in album names ([#179](https://github.com/hermanho/MMM-GooglePhotos/issues/179))
- Added: Allow regular expression ([RE2 engine](https://github.com/google/re2)) in album names [#179](https://github.com/hermanho/MMM-GooglePhotos/issues/179)

**`[2.1.4] - 2024/01/28`**
- Changed: Update README.md and INSTALL.md
Expand All @@ -15,7 +19,7 @@
- Changed: Use native async await instead of promise syntax.
- Changed: Photo index will be included in logging and fine tune the logging data and messages.
- Removed: remove generate_token.js (v1)
- Fixed: #170 fix photo showing when GPHOTO_PREVIOUS is triggered
- Fixed: [#170](https://github.com/hermanho/MMM-GooglePhotos/issues/170) fix photo showing when GPHOTO_PREVIOUS is triggered

**`[2.1.1] - 2023/07/17`**

Expand Down
4 changes: 2 additions & 2 deletions GPhotos.js
Original file line number Diff line number Diff line change
Expand Up @@ -238,7 +238,7 @@ class GPhotos {
* @param {string} pageToken
* @returns {Promise<MediaItem[]>} MediaItem
*/
const getImage = async (pageSize = 100, pageToken = "") => {
const getImage = async (pageSize = 50, pageToken = "") => {
// this.log("Indexing photos now. total: ", list.length);
try {
let data = {
Expand All @@ -263,7 +263,7 @@ class GPhotos {
} else {
if (response.data.nextPageToken) {
await sleep(500);
return getImage(50, response.data.nextPageToken);
return getImage(pageSize, response.data.nextPageToken);
} else {
return list; // all found but lesser than maxNum
}
Expand Down
18 changes: 9 additions & 9 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

7 changes: 5 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "mmm-googlephotos",
"version": "2.1.5",
"version": "2.1.6",
"description": "MagicMirror² module to display your photos from Google Photos",
"license": "MIT",
"author": "[email protected]",
Expand Down Expand Up @@ -36,5 +36,8 @@
},
"engines": {
"node": ">=18"
},
"resolutions": {
"follow-redirects": "^1.15.6"
}
}
}

0 comments on commit 673fb08

Please sign in to comment.