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
|
||||
*/
|
||||
function generateFeed(service, icao, items, outputPath) {
|
||||
let feedURL = rssBaseURL;
|
||||
feedURL.pathname = feedURL.pathname.concat(outputPath);
|
||||
|
||||
let feedURL = new URL(rssBaseURL);
|
||||
feedURL.pathname = path.join(feedURL.pathname, outputPath, "rss.xml");
|
||||
|
||||
let feedOptions = {
|
||||
title: icao + " " + service,
|
||||
description: service + " feed for " + icao + " Airport",
|
||||
|
||||
Reference in New Issue
Block a user