fix: fix episode document parser
This commit is contained in:
parent
da3661c0bf
commit
dc3ed4b02c
|
@ -33,7 +33,7 @@ export const PodcastEpisodeDataType: UnbodyDataTypeConfig<
|
||||||
|
|
||||||
const name = original.path[original.path.length - 1]
|
const name = original.path[original.path.length - 1]
|
||||||
const [ep, date, ...rest] = name.split('-')
|
const [ep, date, ...rest] = name.split('-')
|
||||||
const slug = rest.join('-')
|
const slug = original.slug.slice(`${ep}-${date}-`.length)
|
||||||
|
|
||||||
const today = new Date()
|
const today = new Date()
|
||||||
today.setHours(0, 0, 0, 0)
|
today.setHours(0, 0, 0, 0)
|
||||||
|
|
Loading…
Reference in New Issue