Fixed feed URL gen pt 2
This commit is contained in:
6
index.js
6
index.js
@@ -150,9 +150,9 @@ function getMetar(icao) {
|
|||||||
* @returns {RSS} RSS Feed with populated items
|
* @returns {RSS} RSS Feed with populated items
|
||||||
*/
|
*/
|
||||||
function generateFeed(service, icao, items, outputPath) {
|
function generateFeed(service, icao, items, outputPath) {
|
||||||
let feedURL = rssBaseURL;
|
let feedURL = new URL(rssBaseURL);
|
||||||
feedURL.pathname = feedURL.pathname.concat(outputPath);
|
feedURL.pathname = path.join(feedURL.pathname, outputPath, "rss.xml");
|
||||||
|
|
||||||
let feedOptions = {
|
let feedOptions = {
|
||||||
title: icao + " " + service,
|
title: icao + " " + service,
|
||||||
description: service + " feed for " + icao + " Airport",
|
description: service + " feed for " + icao + " Airport",
|
||||||
|
|||||||
Reference in New Issue
Block a user