Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

2.1.6 #188

Merged
merged 2 commits into from
Mar 16, 2024
Merged

2.1.6 #188

Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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"
}
}
}
Loading