Fixed feed URL gen pt 2

This commit is contained in:
2026-04-13 17:44:26 -05:00
parent bbdc066a3b
commit 138bf60a83

View File

@@ -150,8 +150,8 @@ 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,