Skip to content

Commit 73a4714

Browse files
committed
publish without spotify
1 parent be09de9 commit 73a4714

File tree

2 files changed

+5
-3
lines changed

2 files changed

+5
-3
lines changed

apps/codingcatdev/scripts/podcast-dev-to.js

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,6 @@ for await (const file of g) {
3333
fm?.slug &&
3434
fm?.title &&
3535
fm?.cover &&
36-
fm?.spotify &&
3736
fm?.youtube &&
3837
fm?.published === 'published' &&
3938
new Date(fm?.start) < new Date() &&
@@ -58,7 +57,11 @@ Original: https://codingcat.dev/${TYPE}/${fm.slug}
5857
5958
{% youtube ${fm?.youtube?.replace('live', 'embed')} %}
6059
61-
{% spotify spotify:episode:${fm?.spotify?.split('/')?.at(-1)?.split('?')?.at(0)} %}
60+
${
61+
fm?.spotify
62+
? '{% spotify spotify:episode:' + fm?.spotify?.split('/')?.at(-1)?.split('?')?.at(0) + ' %}'
63+
: ''
64+
}
6265
6366
${content}`
6467
}

apps/codingcatdev/scripts/podcast-hashnode.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,6 @@ for await (const file of g) {
5858
fm?.slug &&
5959
fm?.title &&
6060
fm?.cover &&
61-
fm?.spotify &&
6261
fm?.youtube &&
6362
fm?.published === 'published' &&
6463
new Date(fm?.start) < new Date() &&

0 commit comments

Comments
 (0)