From 1d9ae2a1f6c388632018f59f402a57c82fc80a76 Mon Sep 17 00:00:00 2001 From: Dennis Reimann Date: Fri, 31 May 2024 09:22:21 +0200 Subject: [PATCH] Update general V4V --- content/meta.json | 1 + tasks/fetch_feed.js | 13 ++++++------- 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/content/meta.json b/content/meta.json index 5369bba3ea0..aa253d0cb43 100644 --- a/content/meta.json +++ b/content/meta.json @@ -22,6 +22,7 @@ "publicFeedUrl": "https://einundzwanzig.space/feed.xml", "nostr": "npub1qv02xpsc3lhxxx5x7xswf88w3u7kykft9ea7t78tz7ywxf7mxs9qrxujnc", "nostrTalk": "npub1talku5l4z88dys5eg8zvz8em2qxv8nfxxanjszzdsrmke0ssaekqqxvkq9", + "nodeId": "03a09f56bba3d2c200cc55eda2f1f069564a97c1fb74345e1560e2868a8ab3d7d0", "ticker": [ "Sende uns einen Shoutout: 10.000 Sats und du bist dabei", "\"Hosp oder top!\" ist Spiel des Jahres 2021", diff --git a/tasks/fetch_feed.js b/tasks/fetch_feed.js index 872b66bceee..ba387124d1c 100644 --- a/tasks/fetch_feed.js +++ b/tasks/fetch_feed.js @@ -1,7 +1,7 @@ const { writeFileSync } = require('fs') const { join, resolve } = require('path') const { replacements, slugify, stripHTML, teamWithAliases, participantToId } = require('../helpers') -const { masterFeedUrl, publicFeedUrl } = require('../content/meta.json') +const { masterFeedUrl, publicFeedUrl, nodeId } = require('../content/meta.json') const teamRaw = require('../content/team.json') const request = require('sync-request') const { XMLParser, XMLBuilder, XMLValidator } = require('fast-xml-parser') @@ -113,7 +113,6 @@ const parseEpisode = e => { const feed = parser.parse(xml) const episodes = [] const _noParticipants = [], _noNode = [] - const members = [team.dennis, team.fab, team.gigi, team.markus, team.daniel] // remove invalid tag delete feed.rss.channel.author @@ -124,14 +123,14 @@ const parseEpisode = e => { type: 'lightning', method: 'keysend' }, - 'podcast:valueRecipient': members.map(p => ({ + 'podcast:valueRecipient': [{ __attr: { - name: p.name, + name: 'Einundzwanzig', type: 'node', - split: Math.round(100 / members.length), - ...p.v4v + split: 100, + address: nodeId } - })) + }] } // episodes