Skip to content

Tankōbon / main/services/nfo

main/services/nfo ​

Reads the .nfo file that can sit next to a comic (same name, .nfo extension) and turns it into the metadata of the book. The file is user-supplied text, so nothing in it is trusted: it is read through a size cap, tags are matched flatly (no XML parser, hence no entities beyond the five predefined ones, no DTD, no external reference), every value is cleaned and bounded, and a value that doesn't fit its field is dropped.

Variables ​

Functions ​