Take a look at https://github.com/epiccoleman/tharmas/blob/main/schooner/do... for an example if you like.
Apparently I haven't pushed, shelfmark used to be `calibre-automated-book-downloader`
Reply on news.ycombinator.com