From dc3ed4b02cdaff1db468c839458683a0320bcd0b Mon Sep 17 00:00:00 2001 From: Hossein Mehrabi Date: Tue, 29 Aug 2023 17:56:32 +0330 Subject: [PATCH] fix: fix episode document parser --- .../unbody/dataTypes/PodcastEpisodeDocument.dataType.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/services/unbody/dataTypes/PodcastEpisodeDocument.dataType.ts b/src/services/unbody/dataTypes/PodcastEpisodeDocument.dataType.ts index 85cc0c9..1077360 100644 --- a/src/services/unbody/dataTypes/PodcastEpisodeDocument.dataType.ts +++ b/src/services/unbody/dataTypes/PodcastEpisodeDocument.dataType.ts @@ -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)