Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Postprocessing metadata extension #477

Closed
werid opened this issue Nov 15, 2019 · 2 comments
Closed

Postprocessing metadata extension #477

werid opened this issue Nov 15, 2019 · 2 comments

Comments

@werid
Copy link

werid commented Nov 15, 2019

hi,

i'm extracting metadata like this:

"postprocessors": [{  
    "name": "metadata",  
    "mode": "custom",  
    "extension": "txt",  
    "format": "date: {date}\ncreator: {creator[vanity]}\ntitle: {title}\n\n{content}"  
}]  

The extension gets added to filename, it doesn't replace the original extension, so you get example.jpg.txt instead of example.txt

Is this possible to do somehow?

@mikf
Copy link
Owner

mikf commented Nov 15, 2019

Not possible with just the metadata post processor module. I'll see if I can come up with an appropriate option or something.

In the meantime, you could run a (shell) command with an exec post processor and rename the metadata file with that.

@mikf
Copy link
Owner

mikf commented Dec 1, 2019

a412531 adds a extension-format option that lets you specify a (format) string that completely replaces the old extension. In your case, you'd have to just replace "extension" with "extension-format".

And, by the way, "format" is now called "content-format", but the old name still works. 26d2334

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants