mirror of
https://github.com/Einundzwanzig-Podcast/einundzwanzig.space.git
synced 2025-12-13 16:26:50 +00:00
Update general V4V
This commit is contained in:
@@ -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",
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user