Handle reCATion episodes

This commit is contained in:
Dennis Reimann
2023-11-16 13:55:56 +01:00
parent a564b928dc
commit b20ad80390

View File

@@ -51,6 +51,7 @@ const parseEpisode = e => {
if (categoryName === 'Der-Weg') categoryName = 'Der Weg'
if (categoryName === 'On-Tour') categoryName = 'On Tour'
if (categoryName === 'Buchclub') categoryName = 'Lesestunde'
if (categoryName === 'reCATion') categoryName = 'Verschiedenes'
const firstLine = description.split('\n')[0]
const blockMatch = firstLine.match(/Blockzeit\s(\d+)/)
const block = blockMatch ? parseInt(blockMatch[1]) : null