Skip to content
Snippets Groups Projects
Commit 9fe482a3 authored by deuce's avatar deuce
Browse files

Add links from ecWeb integration (not yet checked in, but working, honest!)

parent 5adcb26f
No related branches found
No related tags found
No related merge requests found
......@@ -83,6 +83,11 @@ if (opts.To == undefined) {
exit(1);
}
if (opts.EpisodeLink == undefined) {
log("EpisodeLink undefined in modopts.ini.");
exit(1);
}
base = new MsgBase(opts.Sub);
if (base == null) {
log('Unable to create "'+opts.Sub+'" MsgBase object.');
......@@ -155,12 +160,11 @@ for (i=hdrs.length - 1; i >= 0; i--) {
item_type = item_headers['Content-Type'][0].replace(/^\s*(.*?)\s*/, "$1");
item = '\t\t<item>\n';
item += '\t\t\t<title>'+encode_xml(item_info.title)+'</title>\n';
// TODO: HTML integration required here for link
item += '\t\t\t<link>'+encode_xml(opts.Link)+'</link>\n';
item += '\t\t\t<link>'+encode_xml(opts.EpisodeLink+parseInt(i+1))+'</link>\n';
item += '\t\t\t<description>'+encode_xml(item_info.description)+'</description>\n';
// TODO: author?
// TODO: category?
// TODO: HTML integration required here for <comments> tag.
item += '\t\t\t<comments>'+encode_xml(opts.EpisodeLink+parseInt(i+1))+'</comments>\n';
item += '\t\t\t<enclosure url="'+encode_xml(item_info.enclosure)+'" length="'+item_length+'" type="'+item_type+'" />\n';
item += '\t\t\t<guid isPermaLink="false">'+encode_xml(item_info.guid)+'</guid>\n';
item += '\t\t\t<pubDate>'+encode_xml(item_info.pubDate)+'</pubDate>\n';
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment