I am trying to write a batch script for post_process_cmd and I'm running into issues trying to get at the tags field. When I add a book using the Calibre plugin, there are values in the Tags field. However, trying to use '${tags}' gives me a hash error. I looked around the code and found 'extratags' as well, but that gives me an empty string. Is there a way to get the list of all tags the same way the Calibre plugin writes to the Tags field?
Example URL:
https://www.fanfiction.net/s/4378675/1/
Ini:
[defaults]
post_process_cmd: addbook.bat "${title}" "${author}" "${series}" "${tags}" "${output_filename}"
Error:
Python function terminated unexpectedly
u'tags' (Error Code: 1)
Traceback (most recent call last):
File "site.py", line 132, in main
File "site.py", line 109, in run_entry_point
File "site-packages\calibre\debug.py", line 278, in main
File "calibre_plugins.fanficfare_plugin.__init__", line 140, in cli_main
File "calibre_plugins.fanficfare_plugin.fanficfare.cli" , line 246, in main
File "calibre_plugins.fanficfare_plugin.fanficfare.cli" , line 407, in do_download
File "string.py", line 172, in substitute
File "string.py", line 162, in convert
KeyError: u'tags'