patrickkfkan / patreon-dl

Patreon Downloader
84 stars 6 forks source link

Add `content.publishDate` field to the content format #12

Closed kazuoteramoto closed 5 months ago

kazuoteramoto commented 6 months ago

This make the date part of the content.publishedAt available as field to use as content directory name format. The format of date follows ISO 8601 (YYYY-MM-DD), the timezone is always UTC.

This helps organize the directories. It can be used like this:

content.dir.name.format = "{content.publishDate}[ - ]?{content.id}[ - ]?{content.name}"
patrickkfkan commented 6 months ago

Thanks for the PR. I'll review it this weekend when I'm less busy and merge it~