Skip to content

Commit b50e392

Browse files
fix: adjust description of --download-limit flag
1 parent 3930c13 commit b50e392

File tree

3 files changed

+2
-3
lines changed

3 files changed

+2
-3
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ The `patreon-crawler` supports the following command line flags.
4444
| `--creator <creator-id>` | The creator ID to download media from. You can find this in the URL when visiting a creators page: `patreon.com/c/<creator-id>/...` |
4545
| `--cookie <cookie-string>` | The cookie from the Patreon website to authenticate against the Patreon API |
4646
| `--download-dir <directory>` | The base directory to download media to. All files will be located in `<download-dir>/<creator>` |
47-
| `--download-limit <number>` | The maximum number of media files to download. |
47+
| `--download-limit <number>` | The maximum number of posts to download. |
4848
| `--download-inaccessible-media` | Whether to download media that is inaccessible (blurred images) |
4949
| `--grouping <none \| by-post>` | The strategy for grouping post media into folders. <br>`none` - Puts all media into the same folder (per creator)<br>`by-post` - Creates a folder for each post, containing its media |
5050

crawling/crawl_creator.go

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@ import (
88
)
99

1010
func CrawlCreator(apiClient *api.Client, creatorID string, downloadDir string, downloadInaccessibleMedia bool, groupingStrategy GroupingStrategy, downloadLimit int) error {
11-
1211
creatorDownloadDir := fmt.Sprintf("%s/%s", downloadDir, sanitizeFilename(creatorID))
1312

1413
fmt.Printf("Downloading posts from %s to %s\n", creatorID, creatorDownloadDir)

main.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ func init() {
2727
flag.StringVar(&argCreatorID, "creator", "", "The creator ID to crawl")
2828
flag.StringVar(&argCookie, "cookie", "", "The cookie to use for authentication")
2929
flag.StringVar(&argDownloadDir, "download-dir", "", "The directory to download posts to")
30-
flag.IntVar(&argDownloadLimit, "download-limit", 0, "The maximum number of media files to download")
30+
flag.IntVar(&argDownloadLimit, "download-limit", 0, "The maximum number of posts to download")
3131
flag.BoolVar(&argDownloadInaccessibleMedia, "download-inaccessible-media", false, "Whether to download inaccessible media")
3232
flag.StringVar(&argGroupingStrategy, "grouping", "none", "The grouping strategy to use. Must be one of: none, by-post")
3333
flag.Parse()

0 commit comments

Comments
 (0)