mirror of
https://github.com/Einundzwanzig-Podcast/einundzwanzig.space.git
synced 2025-12-13 16:26:50 +00:00
running filterfrei
introducing category "filterfrei" to einundzwanzig
This commit is contained in:
@@ -55,6 +55,7 @@ const parseEpisode = e => {
|
||||
if (categoryName === 'Buchclub') categoryName = 'Lesestunde'
|
||||
if (categoryName === 'reCATion') categoryName = 'Verschiedenes'
|
||||
if (categoryName === 'NostrTalk') categoryName = 'NostrTalk'
|
||||
if (categoryName === 'FilterFrei') categoryName = 'FilterFrei'
|
||||
const lines = descriptionPlain.trim().split('\n')
|
||||
const firstLine = lines.find(l => l.match(regexBlockzeit)) || lines[0] || ''
|
||||
const blockMatch = firstLine.match(regexBlockzeit)
|
||||
@@ -63,7 +64,7 @@ const parseEpisode = e => {
|
||||
const slug = slugify(`${categoryName} ${number || ''} ${titlePlain}`)
|
||||
const date = new Date(e.pubDate)
|
||||
const img = e['itunes:image'].__attr.href
|
||||
const image = ['interview', 'lesestunde', 'on-tour', 'nostrtalk', 'verschiedenes'].includes(category)
|
||||
const image = ['interview', 'lesestunde', 'on-tour', 'nostrtalk', 'filterfrei', 'verschiedenes'].includes(category)
|
||||
? img
|
||||
: `/img/cover/${category}.png`
|
||||
const duration = e['itunes:duration']
|
||||
|
||||
@@ -19,6 +19,7 @@ const categories = {
|
||||
'der-weg': 'Der Weg',
|
||||
'on-tour': 'On Tour',
|
||||
'nostrtalk': 'NostrTalk',
|
||||
'filterfrei': 'FilterFrei',
|
||||
'verschiedenes': 'Verschiedenes'
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user