Provide copyright field in RSS feed #2676
I'm working on enhancing Nikola to support publishing a podcast RSS feed. Most of this work is going into a "postcast" plugin I'm working on, and will submit or publish eventually; but some of what I'm trying to do requires support in Nikola itself.
This PR aims to support providing a copyright field in RSS feeds as recommended by iTunes connect.
Other related PRs I'm working on:
I'd also be interested in direction for where and how to publish a plugin, when that's ready.
@Kwpolska I think I've addressed your concerns. Let me know how this looks now. (I'm happy to squash the commits, too, if that's useful.)
edit: It appears that codacy doesn't follow how config variables become translatable? Or did I do something wrong? (It appears to work in my environment.)
The test for equivalency to True is intentionally functional: it allows you to override the configured copyright by providing one explicitly as an argument. edit: With the benefit of sleep, an `if copyright_ is None` idiom is probably clearer here. Did that in stead.
I was using True before to decide whether RSS_COPYRIGHT* should be read from config; but None is probably more idiomatic, and still supports specifying an explicit value as an argument.