Improve Compatibility for Self-Hosted Audio Files in Podcast Block
Nobody has claimed this yet.
Assessment
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Newbie friendliness
- 45/100
Research direction
Start in includes/blocks/podcast/markup.php around lines 29–31, then reproduce the failure by inserting a self-hosted audio URL through the Podcast block’s “Insert from URL” option. Trace how the null attachment_id affects front-end rendering and verify that audio URLs outside the Media Library render correctly without breaking library-backed files.
Written by the indexing model from the issue text.
Description
Is your enhancement related to a problem? Please describe.
As noted by @bacoords:
The podcast block currently fails to render properly on the front-end when audio files are self-hosted and inserted via the "Insert from URL" option. This appears to be due to a null attachment_id being returned for audio files not in the Media Library.
Steps to Reproduce:
- Use the Podcast block to add an audio file.
- Insert an audio file URL manually via "Insert from URL" (bypassing the Media Library).
- Observe that the block does not render on the front-end.
Expected Behavior:
The Podcast block should gracefully handle audio files inserted via "Insert from URL," even when they are not part of the Media Library.
Actual Behavior:
The block fails to render on the front-end, likely due to the conditional check here:
https://github.com/10up/simple-podcasting/blob/develop/includes/blocks/podcast/markup.php#L29C1-L31C2
Additional Context:
- This issue was noticed when transitioning from Offload Media Lite (S3) to a self-hosted setup for MP3s.
- It seems the block is heavily reliant on Media Library metadata, which isn’t available for files inserted via URL.
Suggested Improvement:
Explore ways to make the block more agnostic to file sources. For instance:
- Allow rendering based solely on the provided URL without requiring an attachment_id.
- Improve conditional handling for cases where the attachment_id is null.
Additional Questions:
- Is there a particular reason the block relies on attachment_id?
- Are there specific metadata fields that could be optional or dynamically fetched for self-hosted files?
Designs
No response
Describe alternatives you've considered
No response
Code of Conduct
- I agree to follow this project's Code of Conduct
- Dominant language
- PHP
- Stars
- 221
- Forks
- 32
- Avg merge
- 13m
- Merged PRs (30d)
- 1
Getting set up
- No Dockerfile or Docker Compose file
- No pull request template
- Read the contributing guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from 10up/simple-podcasting
-
type:good-first-issue
Difficulty 1/5 Under an hour Newbie friendliness 88/100
10up/simple-podcasting#369 ·
-
Add Abilities API functionality to pluginPossibly taken @phpbits claimed this 16 days ago. Openhelp wanted
Difficulty 5/5 Over a week Newbie friendliness 25/100
10up/simple-podcasting#387 · 1 assignee ·
-
help wanted
Difficulty 4/5 3-5 days Newbie friendliness 52/100
10up/simple-podcasting#380 ·
-
help wanted
Difficulty 5/5 Over a week Newbie friendliness 35/100
10up/simple-podcasting#375 ·
-
help wanted needs:engineering
Difficulty 5/5 Over a week Newbie friendliness 30/100
10up/simple-podcasting#329 · 2 comments · 1 reaction ·
All issues in 10up/simple-podcasting
Similar issues
-
wpvc
Difficulty 2/5 1-3 hours Newbie friendliness 62/100
10up/autoshare-for-twitter#438 ·
-
wpvc
Difficulty 2/5 1-3 hours Newbie friendliness 62/100
10up/Ad-Refresh-Control#240 ·
-
wpvc
Difficulty 1/5 1-3 hours Newbie friendliness 62/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 82/100
Maintainers usually reply within 1 day
-
Backend bug severity: low
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
RunningJoke/allipunkte#74 ·