fix: fix episode document parser

This commit is contained in:
Hossein Mehrabi 2023-08-29 17:56:32 +03:30
parent da3661c0bf
commit dc3ed4b02c
No known key found for this signature in database
GPG Key ID: 45C04964191AFAA1
1 changed files with 1 additions and 1 deletions

View File

@ -33,7 +33,7 @@ export const PodcastEpisodeDataType: UnbodyDataTypeConfig<
const name = original.path[original.path.length - 1]
const [ep, date, ...rest] = name.split('-')
const slug = rest.join('-')
const slug = original.slug.slice(`${ep}-${date}-`.length)
const today = new Date()
today.setHours(0, 0, 0, 0)