Skip to content

Commit

Permalink
Need to escape : for podtrac
Browse files Browse the repository at this point in the history
  • Loading branch information
jonhoo committed May 12, 2024
1 parent 615dac9 commit feb0ae5
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion _layouts/default.html
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ <h1>
{%- include util.html -%}
{%- if episode.file -%}
<div id="player">
<audio src="https://dts.podtrac.com/redirect.mp3/{{ episode.file | replace_first: "https://", "" }}" controls></audio>
<audio src="https://dts.podtrac.com/redirect.mp3/{{ episode.file | replace_first: "https://", "" | replace: ":", "%3A" }}" controls></audio>
</div>
{%- endif -%}
<div id="wrapper">
Expand Down
2 changes: 1 addition & 1 deletion pages/podcast.rss
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ permalink: "/podcast.rss"
<description><![CDATA[ {{ post.content | strip_html }} ]]></description>
<content:encoded><![CDATA[ {{ post.content }} ]]></content:encoded>

<enclosure url="https://dts.podtrac.com/redirect.mp3/{{ post.file | replace_first: "https://", "" }}" length="{{ post.length }}" type="audio/mpeg"/>
<enclosure url="https://dts.podtrac.com/redirect.mp3/{{ post.file | replace_first: "https://", "" | replace: ":", "%3A" }}" length="{{ post.length }}" type="audio/mpeg"/>
<itunes:duration>{{ post.duration }}</itunes:duration>
</item>
{% endfor %}
Expand Down

0 comments on commit feb0ae5

Please sign in to comment.