user-2171
26-05-2018, 06:02 PM
Are there any characters (or character sequences) that are guaranteed not to be included in the metadata fields output by listformat? For example, angle brackets, ampersands, or something that's guaranteed to be escaped?
I'd like to use something as a separator, so that it can be easily machine-parsed, like that shown below. However, if there's any chance the separator could appear within a field, it could mess up the parsing.
I'd like to use something as a separator, so that it can be easily machine-parsed, like that shown below. However, if there's any chance the separator could appear within a field, it could mess up the parsing.
Code:
flypig@delphinus:~$ get-iplayer --nocopyright --type=radio questions \
--listformat "<pid>|<name>|<duration>"
Matches:
b0b01xnk|Any Questions?|3000
b0b0xllc|Any Questions?|3000
b0b1tmbb|Any Questions?|3000
b0b2mrxy|Any Questions?|3000
b0b3g001|Any Questions?|3000
w3cswthd|World Questions|3240
INFO: 6 matching programmes