-
Notifications
You must be signed in to change notification settings - Fork 5
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat: improve recent podcast summary #247
Conversation
return "" | ||
} | ||
|
||
return urlString.replace(".mp3", "") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
buzzsprout's webpage for the episode is the same URL as the mp3 itself, without .mp3
.
@@ -81,7 +81,7 @@ describe("scheduled:recently-published", () => { | |||
text: { | |||
type: "mrkdwn", | |||
text: | |||
"> <p>Steve Hicks and Justin Bennett talk about empathy in workplace culture, how to build trust and safety, and the importance of providing space for people.</p>", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Oops! I didn't notice this until after pointing at buzzsprout for this command, but this block wouldn't have displayed very nicely in slack.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks great!
const markdown = turndownService.turndown( | ||
`<blockquote>${content}</blockquote>` | ||
) | ||
return markdown |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nice 💯
@@ -101,14 +105,14 @@ export default class ScheduledRecentlyPublished extends Command { | |||
type: "section", | |||
text: { | |||
type: "mrkdwn", | |||
text: `${title} | <https://podcasts.apple.com/us/podcast/artsy-engineering-radio/id1545870104|Apple Podcasts> | <https://podcasts.google.com/feed/aHR0cHM6Ly9hcnRzeS5naXRodWIuaW8vcG9kY2FzdC54bWw|Google Podcasts> | <https://open.spotify.com/show/0gJYxpqN6P11dbjNw8VT2a?si=L4TWDrQETwuVO6JR1SOZTQ|Spotify>`, | |||
text: `<${webURL}|${title}>`, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
💯
🚀 PR was released in |
1 similar comment
🚀 PR was released in |
🚀 PR was released in |
3 similar comments
🚀 PR was released in |
🚀 PR was released in |
🚀 PR was released in |
Cleans up a few things for the
scheduled:recently-published
task, for the weekly update that gets posted to slack.What the updated blocks look like
(The gray "Artsy Engineering" next to "Jul 8, 2021" is the author of the episode...I think we've not been filling it in on buzzsprout when we upload episodes, and it defaults to our account name.)