Skip to content

Commit

Permalink
Enable season 13 playlists
Browse files Browse the repository at this point in the history
  • Loading branch information
danivovich committed Oct 17, 2024
1 parent 997f10a commit 77bfed5
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 24 deletions.
40 changes: 20 additions & 20 deletions podcast/elixir-wizards/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ <h1>Elixir Wizards Podcast</h1>
<p><em> Listen to our latest episode:</em></p>

<div class="podcast-audio-container">
<iframe style="margin-bottom:20px" src="https://player.fireside.fm/v2/IAs5ixts/latest?theme=dark" width="960" height="200" frameborder="0" scrolling="no"></iframe>
<iframe style="margin-bottom:20px" src="https://player.fireside.fm/v2/IAs5ixts/latest?theme=light" width="960" height="200" frameborder="0" scrolling="no"></iframe>
</div>

<p>Elixir Wizards is an interview-format podcast, focused on engineers who use the Elixir programming language.
Expand Down Expand Up @@ -135,22 +135,22 @@ <h2><a href="/podcast/elixir-wizards/season-one">Season One: Elixir in Productio
<footer class="footer">
{% include footer-common.html %}
</footer>
<script>
const loadVideo = (iframe) => {
const cid = "UCs0l7lELt6hwxKCvS9IEK7Q";
const channelURL = encodeURIComponent(`https://www.youtube.com/feeds/videos.xml?channel_id=${cid}`)
const reqURL = `https://api.rss2json.com/v1/api.json?rss_url=${channelURL}`;

fetch(reqURL)
.then(response => response.json())
.then(result => {
const link = result.items[0].link;
const id = link.substr(link.indexOf("=") + 1);
iframe.setAttribute("src", `https://youtube.com/embed/${id}?controls=0&autoplay=1`);
})
.catch(error => console.log('error', error));
}

const iframe = document.getElementById('latestVideoEmbed');
loadVideo(iframe);
</script>
<script>
const loadVideo = (iframe) => {
const cid = "UCs0l7lELt6hwxKCvS9IEK7Q";
const channelURL = encodeURIComponent(`https://www.youtube.com/feeds/videos.xml?channel_id=${cid}`)
const reqURL = `https://api.rss2json.com/v1/api.json?rss_url=${channelURL}`;

fetch(reqURL)
.then(response => response.json())
.then(result => {
const link = result.items[0].link;
const id = link.substr(link.indexOf("=") + 1);
iframe.setAttribute("src", `https://youtube.com/embed/${id}?controls=0&autoplay=0`);
})
.catch(error => console.log('error', error));
}

const iframe = document.getElementById('latestVideoEmbed');
loadVideo(iframe);
</script>
4 changes: 0 additions & 4 deletions podcast/elixir-wizards/season-thirteen.html
Original file line number Diff line number Diff line change
Expand Up @@ -34,20 +34,16 @@ <h1>Season Thirteen: The Creators' Lab</h1>
<!-- main body content -->
<div class="content-page-wrapper">
<section class="section content-block podcast" id="s13">
<!---
<h3>Watch The Season on YouTube!</h3>
<div class="podcast-video-container">
<iframe width="960" height="540" src="https://www.youtube.com/embed/videoseries?si=sNAQArc1df9pBdY4&amp;list=PLTDLmInI9YaCsuwYteNR6V82Tdxq1AHVQ" title="YouTube video player" frameborder="0" allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share" referrerpolicy="strict-origin-when-cross-origin" allowfullscreen></iframe>
</div>
--->
{% include season-episodes.html season='Season 13' %}
<br/><br/>
<!---
<h3>Audio Only YouTube Playlist</h3>
<div class="podcast-video-container">
<iframe width="960" height="540" src="https://www.youtube.com/embed/videoseries?si=q0xpsFVH0XNnA11p&amp;list=PLTDLmInI9YaBAODGFqwuRBXoF6Ozj_rV_" title="YouTube video player" frameborder="0" allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share" referrerpolicy="strict-origin-when-cross-origin" allowfullscreen></iframe>
</div>
--->
</section>

<section>
Expand Down

0 comments on commit 77bfed5

Please sign in to comment.