docbrown/spec/support/fixtures/podcasts
Daniel Uber 913ca720a8
Don't create podcast episodes without any media (#17449)
* Don't create podcast episodes without a media_url

There is an early return from add_media_url to prevent using an empty
enclosure_url, which avoids errors in
`GetMediaUrl.call(a_blank_value)`, however there's also a not null
constraint on podcast_episodes.media_url in the database, which causes
upsert to raise an error.

Returning early here avoids the error (which had halted the worker).

See also
https://app.honeybadger.io/projects/66984/faults/80833402

This error happens regularly, 96 times per day in DEV, it looks like at least
one podcast feed_url is for an rss feed filtered by /tag/podcast/,
(and at least one post was tagged "podcast" but didn't include any
media to get).

My understanding is at worst we'll ignore the error silently.

* Add test cases

given a blog post (not a podcast episode, no media url), don't raise
any error, don't create any episode.

Included codepunk.io feed that was showing this issue initially.
2022-04-27 11:21:03 -05:00
..
arresteddevops.xml Don't check url and create podcast episode when there's no enclosure url (#3460) 2019-07-12 12:54:14 -04:00
awayfromthekeyboard.rss Moved podcast fixtures to their own folder (#3343) [ci skip] 2019-07-01 12:37:28 -04:00
codepunk.rss Don't create podcast episodes without any media (#17449) 2022-04-27 11:21:03 -05:00
design_takoy.rss Produce a meaningful slug from podcast episode title (#17184) 2022-04-08 16:30:16 -05:00
developertea.rss Moved podcast fixtures to their own folder (#3343) [ci skip] 2019-07-01 12:37:28 -04:00