Thoughts while I work on implementing code to parse this:
I propose the following form for comments on all list files:
## This will be reproduced later-on.
# This will be discarded.
## This will get tacked on to the end.
foo
bar
# This will also be discarded.
foobar
This would be parsed into something of the form:
[
{
"comment": "This will be reproduced later on. This will get tacked on to the end.",
"entry": "foo"
},
{
"comment": null,
"entry": "bar"
},
{
"comment": null,
"entry": "foobar"
}
]
The procedure while parsing should be to accumulate double-hash comments until reaching a line with no comments, and then pushing the structure containing the concatenated double-hash comments and the line with no comments. I think it would be useful to allow people to specify extra info about their buttons, just for fun.
The following forms should be supported for friends.txt entries:
example.com
example.com/BBSS/
https://example.com
https://example.com/BBSS/
Each of these will yield the same actual URL for where to find BBSS-related files. The second and forth forms should be considered special-cases for people operating on webhosts which give subdirectories instead of subdomains, in which case they may contain something like `tilde.example/~foo/BBSS/`.
I'd appreciate any thoughts on these ideas.