Use Post class attributes in filename-pattern
- Added owner_id and mediaid to Post class properties. - In case of not downloading stories, the attributes of the Post class can now be used in filename-pattern, e.g. {post.owner_id} or {post.mediaid}. Closes #53.
This commit is contained in:
@@ -96,7 +96,8 @@ pattern, the token ``{target}`` is replaced by the target name, and
|
||||
to the target directory. The default is ``--filename-pattern={date}``.
|
||||
The tokens ``{target}`` and ``{profile}`` are replaced like in the
|
||||
dirname pattern. Further, the tokens ``{date}`` and ``{shortcode}`` are
|
||||
defined.
|
||||
defined. Additionally, in case of not downloading stories, the attributes of
|
||||
:class:`.Post` can be used, e.g. ``{post.owner_id}`` or ``{post.mediaid}``.
|
||||
|
||||
For example, encode the poster's profile name in the filenames with:
|
||||
|
||||
|
Reference in New Issue
Block a user