How to publish
data element with the exact integer number of bytes in the
value attribute, and any human-readable representation you choose in the contents. Example:
<data class="p-size" value="45678">45.7 KB</data>
Some examples in the wild only include human-readable string approximations, eg
62.2 MB, but these can't be used in places that need the exact number of bytes, eg RSS enclosures.
granary converts podcast h-feeds and h-entries to RSS with enclosures, including iTunes extension elements.
It reads episode size from the
size mf2 properties, and supports both integer bytes and human-readable string approximations. It emits a
<data> tag with both integer bytes and human-readable approximation, as described above. Background discussion.