Skip to content
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

Merged
merged 6 commits into from
Jul 15, 2021
Merged

Conversation

pepopowitz
Copy link
Contributor

Cleans up a few things for the scheduled:recently-published task, for the weekly update that gets posted to slack.

  1. Fixes a test that was failing locally due to time zones & blog rss dates not having times
  2. Replaces apple/google podcast URLs with buzzsprout
  3. Links episodes directly to the buzzsprout page
  4. Cleans up the episode description, which I noticed after chore: update artsy engineering radio RSS source #232 was not actually markdown (buzzsprout gives us raw HTML)

What the updated blocks look like

image

(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.)

return ""
}

return urlString.replace(".mp3", "")
Copy link
Contributor Author

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>",
Copy link
Contributor Author

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.

Copy link
Member

@dblandin dblandin left a 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
Copy link
Member

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}>`,
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💯

@dblandin dblandin merged commit bb912bb into main Jul 15, 2021
@dblandin dblandin deleted the pepopowitz/podcast-urls branch July 15, 2021 11:51
@artsyit
Copy link
Contributor

artsyit commented Jul 26, 2021

🚀 PR was released in v0.23.0 🚀

1 similar comment
@artsyit
Copy link
Contributor

artsyit commented Jul 26, 2021

🚀 PR was released in v0.23.0 🚀

@artsyit
Copy link
Contributor

artsyit commented Jul 26, 2021

🚀 PR was released in v0.23.0 🚀

3 similar comments
@artsyit
Copy link
Contributor

artsyit commented Jul 26, 2021

🚀 PR was released in v0.23.0 🚀

@artsyit
Copy link
Contributor

artsyit commented Jul 26, 2021

🚀 PR was released in v0.23.0 🚀

@artsyit
Copy link
Contributor

artsyit commented Jul 26, 2021

🚀 PR was released in v0.23.0 🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants