From c250a02edf868b47cb7f3532cfe5e2706aba541f Mon Sep 17 00:00:00 2001 From: DebaucheryLibrarian Date: Wed, 11 Sep 2024 05:16:54 +0200 Subject: [PATCH] Fixed avatar property. --- README.md | 4 ++-- src/save/profileDetails.js | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index 6c907fb..08bea93 100644 --- a/README.md +++ b/README.md @@ -37,9 +37,9 @@ reddit-post-dump requires a arbitrarily recent version of Node.js. Before use, d ### Optional parameters * `--users={user1,user2}`: You may fetch posts from multiple users by either supplying a comma-separated list of usernames (no spaces) with `--users`, or by using multiple individual `--user` arguments -* `--limit={number}`: Maximum amount posts per user to fetch content from +* `--limit={number}`: Maximum amount posts per user to fetch content from. Limit is applied after fltering out ignored, cross- and reposts. * `--sort={method}`: How posts should be sorted while fetched. This affects the `$postIndex` variable, and in combination with a `--limit` decides what posts will be included. -* `--ignore={prop1,prop2}`: Ignore submissions that have any of these properties. Supported properties include `pinned`, `stickied`, `hidden`, `over_18`, `spoiler` (protip: any property in the API response can be ignored, if desired). +* `--ignore={prop1,prop2}`: Ignore submissions that have any of these comma-separated properties. Supported properties include `pinned`, `stickied`, `hidden`, `over_18`, `spoiler` (protip: any property in the API response can be ignored, if desired). ### Examples * `node app.js --user=ThePendulum` diff --git a/src/save/profileDetails.js b/src/save/profileDetails.js index e71ce33..41522ba 100644 --- a/src/save/profileDetails.js +++ b/src/save/profileDetails.js @@ -12,7 +12,7 @@ function saveProfileDetails(user) { if(config.library.profile.image) { const image = user.profile ? user.profile.image : user.image; - if(config.library.profile.ignoreAvatar && new urlPattern('http(s)\\://(www.)redditstatic.com/avatars/:id(.:ext)(?:query)').match(image)) { + if(config.library.profile.avoidAvatar && new urlPattern('http(s)\\://(www.)redditstatic.com/avatars/:id(.:ext)(?:query)').match(image)) { console.log('\x1b[33m%s\x1b[0m', `Ignoring standard avatar profile image for '${user.name}'`); return user;