summaryrefslogtreecommitdiff
path: root/source/rssmeta.d
diff options
context:
space:
mode:
authorGeorge Abbott <george@gabbott.dev>2023-10-12 23:45:24 +0100
committerGeorge Abbott <george@gabbott.dev>2023-10-12 23:45:24 +0100
commit9f74c84c22e75103c5661b4876fde2ce45f9c712 (patch)
tree4dd002ad8262c5aa4ffa0fe26b5cb36b595e7762 /source/rssmeta.d
parentc91061498ca9137c0bb2e65765ab15c1439941fd (diff)
Replace RssInfo with RssMetaHEADmaster
Diffstat (limited to 'source/rssmeta.d')
-rw-r--r--source/rssmeta.d13
1 files changed, 11 insertions, 2 deletions
diff --git a/source/rssmeta.d b/source/rssmeta.d
index 864503c..d190c69 100644
--- a/source/rssmeta.d
+++ b/source/rssmeta.d
@@ -17,8 +17,11 @@ struct RssMeta
{
this.metafile = metafile;
- if (metafile[-4:] == ".json") {}
- else if (metafile[-4:] == ".xml") {}
+ if (metafile[-4:] == ".json")
+ {
+ // NOTE: implement XML first, then JSON after.
+ }
+ else if (metafile[-4:] == ".xml") { /* TODO: implement parsing RssMeta */ }
else
{
writeln("Cannot deduce whether metafile is json or xml. Please" ~
@@ -36,4 +39,10 @@ struct RssMeta
string link_of(string filename) const { return ""; }
string pubdate_of(string filename) const { return ""; }
string guid_of(string filename) const { return ""; }
+
+ // TODO: implement all these.
+ string title_of_feed() const { return ""; }
+ string desc_of_feed() const { return ""; }
+ string language_of_feed() const { return ""; }
+ string link_of_feed() const { return ""; }
}