Minor fixes

This commit is contained in:
Dennis Reimann
2022-08-22 17:00:51 +02:00
parent 905516f033
commit 1dfb17006b
2 changed files with 15 additions and 13 deletions

View File

@@ -45,6 +45,7 @@ const parseEpisode = e => {
let [, categoryName = 'News', number, titlePlain] = title.match(/([\w\s]+?)?\s?#(\d+) - (.*)/) || [, , , title]
if (!number) categoryName = 'Verschiedenes'
if (categoryName === 'Der-Weg') categoryName = 'Der Weg'
if (categoryName === 'Buchclub') categoryName = 'Lesestunde'
const firstLine = description.split('\n')[0]
const blockMatch = firstLine.match(/Blockzeit\s(\d+)/)
const block = blockMatch ? parseInt(blockMatch[1]) : null