From c97423299804fb49e1b418e584702ba6914c99b2 Mon Sep 17 00:00:00 2001 From: Loyd Osborne Date: Tue, 3 Dec 2024 22:48:44 -0700 Subject: [PATCH] Commit --- rss/second-date-update/audio/feed.xml | 26 -------------- rss/second-date-update/feed1.xml | 47 +++++++++++++++++++++++++ rss/second-date-update/index.js | 10 ++++-- rss/second-date-update/rss-generator.js | 30 ---------------- rss/second-date-update/tracking.json | 1 - 5 files changed, 55 insertions(+), 59 deletions(-) delete mode 100644 rss/second-date-update/audio/feed.xml create mode 100644 rss/second-date-update/feed1.xml delete mode 100644 rss/second-date-update/rss-generator.js delete mode 100644 rss/second-date-update/tracking.json diff --git a/rss/second-date-update/audio/feed.xml b/rss/second-date-update/audio/feed.xml deleted file mode 100644 index 7333713b4..000000000 --- a/rss/second-date-update/audio/feed.xml +++ /dev/null @@ -1,26 +0,0 @@ - - - <![CDATA[Second Date Update Podcast]]> - - https://www.youtube.com/playlist?list=PLKMH9IkVljS73TegxFya_cM4xmjlLOls2 - RSS for Node - Wed, 04 Dec 2024 05:39:58 GMT - - Wed, 04 Dec 2024 05:39:58 GMT - - - <![CDATA[Eating Sticks | Week 01 (Screener)]]> - - https://api.scyted.tv/rss/second-date-update/audio/Eating%20Sticks%20%EF%BD%9C%20Week%2001%20(Screener).mp3 - https://api.scyted.tv/rss/second-date-update/audio/Eating%20Sticks%20%EF%BD%9C%20Week%2001%20(Screener).mp3 - Wed, 04 Dec 2024 05:39:58 GMT - - - <![CDATA[One Braincell Left | Week 02 (Screener)]]> - - https://api.scyted.tv/rss/second-date-update/audio/One%20Braincell%20Left%20%EF%BD%9C%20Week%2002%20(Screener).mp3 - https://api.scyted.tv/rss/second-date-update/audio/One%20Braincell%20Left%20%EF%BD%9C%20Week%2002%20(Screener).mp3 - Wed, 04 Dec 2024 05:39:58 GMT - - - \ No newline at end of file diff --git a/rss/second-date-update/feed1.xml b/rss/second-date-update/feed1.xml new file mode 100644 index 000000000..9a29802cb --- /dev/null +++ b/rss/second-date-update/feed1.xml @@ -0,0 +1,47 @@ + + + <![CDATA[Personal Listen]]> + + https://www.youtube.com/playlist?list=PLKMH9IkVljS73TegxFya_cM4xmjlLOls2 + + https://cdn.scyted.tv/assets/scytedtv/logos/scytedtv.jpg + Personal Listen + https://www.youtube.com/playlist?list=PLKMH9IkVljS73TegxFya_cM4xmjlLOls2 + + RSS for Node + Wed, 04 Dec 2024 05:48:11 GMT + + + Wed, 04 Dec 2024 05:48:11 GMT + + + + + <![CDATA[Eating Sticks | Week 01 (Screener)]]> + + https://api.scyted.tv/rss/second-date-update/audio/Eating%20Sticks%20%EF%BD%9C%20Week%2001%20(Screener).mp3 + https://api.scyted.tv/rss/second-date-update/audio/Eating%20Sticks%20%EF%BD%9C%20Week%2001%20(Screener).mp3 + + Wed, 04 Dec 2024 05:48:11 GMT + + + + <![CDATA[feed]]> + + https://api.scyted.tv/rss/second-date-update/audio/feed.xml + https://api.scyted.tv/rss/second-date-update/audio/feed.xml + + Wed, 04 Dec 2024 05:48:11 GMT + + + + <![CDATA[One Braincell Left | Week 02 (Screener)]]> + + https://api.scyted.tv/rss/second-date-update/audio/One%20Braincell%20Left%20%EF%BD%9C%20Week%2002%20(Screener).mp3 + https://api.scyted.tv/rss/second-date-update/audio/One%20Braincell%20Left%20%EF%BD%9C%20Week%2002%20(Screener).mp3 + + Wed, 04 Dec 2024 05:48:11 GMT + + + + \ No newline at end of file diff --git a/rss/second-date-update/index.js b/rss/second-date-update/index.js index 4bb270f9c..f600cdc78 100644 --- a/rss/second-date-update/index.js +++ b/rss/second-date-update/index.js @@ -26,12 +26,16 @@ try { // Generate the RSS feed console.log("Generating RSS feed..."); const feed = new RSS({ - title: "Second Date Update Podcast", - description: "Audio from the Second Date Update podcast on YouTube.", + title: "Personal Listen", + description: "A personal podcast feed for Second Date Update episodes.", feed_url: `${baseUrl}/feed.xml`, site_url: playlistUrl, language: "en", pubDate: new Date(), + image_url: "https://cdn.scyted.tv/assets/scytedtv/logos/scytedtv.jpg", + author: "Personal Listen", + managingEditor: "podcasts@scyted.tv (Personal Listen)", + webMaster: "podcasts@scyted.tv (Personal Listen)", }); const files = fs.readdirSync(audioDir); @@ -44,6 +48,8 @@ files.forEach((file) => { title: cleanedTitle, description: cleanedTitle, url: fileUrl, + enclosure: { url: fileUrl, type: "audio/mpeg" }, + author: "Personal Listen", date: new Date(), // Replace with video publish date if available }); }); diff --git a/rss/second-date-update/rss-generator.js b/rss/second-date-update/rss-generator.js deleted file mode 100644 index 96ead1151..000000000 --- a/rss/second-date-update/rss-generator.js +++ /dev/null @@ -1,30 +0,0 @@ -const fs = require('fs'); -const path = require('path'); - -function generateRSS(audioFiles) { - const rssItems = audioFiles.map(file => ` - - ${file.title} - ${file.url} - ${file.url} - ${file.date} - - `).join(''); - - const rssFeed = ` - - - - Second Date Update Podcast - https://api.scyted.tv/rss/second-date-update/audio/ - Second Date Update audio episodes. - ${rssItems} - - - `; - - fs.writeFileSync(path.join(__dirname, 'rss.xml'), rssFeed); - console.log('RSS feed generated!'); -} - -module.exports = { generateRSS }; \ No newline at end of file diff --git a/rss/second-date-update/tracking.json b/rss/second-date-update/tracking.json deleted file mode 100644 index 9e26dfeeb..000000000 --- a/rss/second-date-update/tracking.json +++ /dev/null @@ -1 +0,0 @@ -{} \ No newline at end of file