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

Truncate description for shows with Apple feeds #1092

Merged
merged 14 commits into from
Sep 24, 2024

Conversation

kookster
Copy link
Member

@kookster kookster commented Sep 17, 2024

Fixes most of #1090

The RSS truncate depends there being an apple_config - not necessarily fully publishing yet, just a config exists.
I think that should allow for these legacy shows to regenerate the public RSS with truncated descriptions for Apple to re-ingest before we try to sync episodes. Luckily, probably not that many feeds like this - just need some way to get those old shows working.

  • Truncate the podcast/episode descriptions in the RSS feed
  • Truncate the podcast/episode descriptions before sending to Apple API

@kookster kookster changed the title WIP - Truncate description for shows with Apple feeds Truncate description for shows with Apple feeds Sep 18, 2024
app/models/apple/config.rb Outdated Show resolved Hide resolved
app/helpers/podcasts_helper.rb Outdated Show resolved Hide resolved
app/helpers/podcasts_helper.rb Outdated Show resolved Hide resolved
@@ -31,6 +33,10 @@ def self.model_name
Feed.model_name
end

def publish_feeds
podcast&.publish!
Copy link
Member Author

Choose a reason for hiding this comment

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

As per suggestion, consolidating the "getting ready to publish to Apple" sort of logic in this class.

I wish I could just trigger a publish of the feed without even trying to publish to apple when this first gets created, and before we want to try and sync with apple...maybe I will add a way to do that, but not sure how to decouple those in the current job?

@kookster kookster merged commit d269a3d into main Sep 24, 2024
3 checks passed
@kookster kookster deleted the feat/apple_dd_validations branch September 24, 2024 15:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants