Added support for i.redd.it and self posts. Moved pattern interpolation out of fetch module.
This commit is contained in:
@@ -28,7 +28,7 @@ Path patterns dictate where and how a file will be saved. Various variables and
|
||||
* `$itemDescription`: The description of the individual image or video
|
||||
* `$itemDate`: The submission date of the individual image or video, formatted by the `dateformat` configuration described below
|
||||
* `$itemIndex`: The index of the individual image or video in an album, offset by the `indexOffset` configuration described below
|
||||
* `$ext`: The extension of the file. Must practically always be included.
|
||||
* `$ext`: The extension of the file. Must typically be included, but may be omitted for self (text) posts on Unix systems
|
||||
|
||||
### Date format
|
||||
Affects the representation of `$postDate`, `$albumDate` and `$itemDate` and defaults to `YYYYMMDD`. See [this documentation](https://date-fns.org/v1.29.0/docs/format) for an overview of all available tokens.
|
||||
@@ -37,4 +37,4 @@ Affects the representation of `$postDate`, `$albumDate` and `$itemDate` and defa
|
||||
Arrays start at 0, but as to not tire myself out debating the matter, you may offset it my any numerical value you like. Affects the `$itemIndex` variable for album items.
|
||||
|
||||
### Slash substitute
|
||||
The patterns are Unix file paths, and a `/` therefore indicates a new directory. You may freely use directories in your paths, but titles or descriptions may contain a `/` that is not supposed to create a new directory. All instances of `/` in a variable value will be replaced with the configured slash substitute.
|
||||
The patterns represent Unix file paths, and a `/` therefore indicates a new directory. You may freely use directories in your paths, but titles or descriptions may contain a `/` that is not supposed to create a new directory. All instances of `/` in a variable value will be replaced with the configured slash substitute.
|
||||
|
||||
Reference in New Issue
Block a user