Skip to content

Update media:content as well for auth codes - #913

Merged
kookster merged 1 commit into
mainfrom
fix/media_content_auth
Aug 3, 2026
Merged

Update media:content as well for auth codes#913
kookster merged 1 commit into
mainfrom
fix/media_content_auth

Conversation

@kookster

@kookster kookster commented Aug 3, 2026

Copy link
Copy Markdown
Member

fixes #912

@cavis cavis left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

👍 looks good to me

/<enclosure url="([^"]+)"/g,
`<enclosure url="$1?auth=${auth}"`,
).replace(
/<media:content fileSize="([^"]+)" type="([^"]+)" url="([^"]+)"/g,

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Just double checked prod ... and enclosure_file_size / enclosure_content_type are never nil/blank for any published ep. So this should work.

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

oh good call, I didn't think about that case, ty!

@kookster
kookster merged commit edfc7c0 into main Aug 3, 2026
4 checks passed
@kookster
kookster deleted the fix/media_content_auth branch August 3, 2026 17:25
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.

Also add auth code to media:content, not just enclosure, in the private feeds proxy

2 participants