Episodes:
Loading episodes…
[tcb-script] (function(){ /* ============================ CONFIG ============================ */ const CONFIG = { apiKey: 'AIzaSyCegkvGG1by2tS7rQC-Uqhpm5oh0eU6WJU', playlistId: 'PL0QNVt2niJnFVIalZU3w8_va1mve6cNiv', newestFirst: true, maxEpisodes: 0, buttonLabel: 'Watch Now' }; /* =============================================================== */ const statusEl = document.getElementById('jbr-pod-status'); const itemsEl = document.getElementById('jbr-pod-items'); const headphoneSVG = '<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2.2" ' + 'stroke-linecap="round" stroke-linejoin="round" aria-hidden="true">' + '<path d="M3 18v-6a9 9 0 0 1 18 0v6"></path>' + '<path d="M21 19a2 2 0 0 1-2 2h-1a1 1 0 0 1-1-1v-3a1 1 0 0 1 1-1h3z"></path>' + '<path d="M3 19a2 2 0 0 0 2 2h1a1 1 0 0 0 1-1v-3a1 1 0 0 0-1-1H3z"></path></svg>'; function showStatus(msg, isError){ statusEl.textContent = msg; statusEl.hidden = false; statusEl.classList.toggle('jbr-pod__status–error', !!isError); } function hideStatus(){ statusEl.hidden = true; } function bestThumb(t){ if(!t) return ''; return (t.maxres || t.standard || t.high || t.medium || t.default || {}).url || ''; } function firstLine(text){ if(!text) return ''; return text.split('n').map(s => s.trim()).find(s => s.length > 0) || ''; } function fmtDate(iso){ if(!iso) return ''; const d = new Date(iso); if(isNaN(d)) return ''; return d.toLocaleDateString('en-US', { year:'numeric', month:'long', day:'numeric' }); } function escapeHtml(s){ return String(s).replace(/[&<>"']/g, c => ({'&':'&','<':'<','>':'>','"':'"',"'":'''}[c])); } async function fetchAllItems(){ let items = [], pageToken = '', guard = 0; do{ const url = 'https://www.googleapis.com/youtube/v3/playlistItems' + '?part=snippet,contentDetails&maxResults=50' + '&playlistId=' + encodeURIComponent(CONFIG.playlistId) + '&key=' + encodeURIComponent(CONFIG.apiKey) + (pageToken ? '&pageToken=' + pageToken : ''); const res = await fetch(url); if(!res.ok){ let detail = ''; try { detail = (await res.json()).error.message; } catch(e){} throw new Error(detail || ('Request failed (' + res.status + ')')); } const data = await res.json(); items = items.concat(data.items || []); pageToken = data.nextPageToken || ''; } while(pageToken && ++guard < 20); return items; } function buildCard(item){ const sn = item.snippet || {}; const cd = item.contentDetails || {}; const vid = cd.videoId || (sn.resourceId && sn.resourceId.videoId) || ''; if(!vid) return null; const title = sn.title || ''; if(title === 'Private video' || title === 'Deleted video') return null; const watchUrl = 'https://www.youtube.com/watch?v=' + vid; const thumb = bestThumb(sn.thumbnails); const subtitle = firstLine(sn.description); const date = fmtDate(cd.videoPublishedAt || sn.publishedAt); const a = document.createElement('a'); a.className = 'jbr-card'; a.href = watchUrl; a.target = '_blank'; a.rel = 'noopener'; a.setAttribute('aria-label', 'Watch: ' + title); a.innerHTML = '<span class="jbr-card__thumb">' + (thumb ? '<img loading="lazy" src="' + escapeHtml(thumb) + '" alt="' + escapeHtml(title) + ' thumbnail">' : '') + '</span>' + '<span class="jbr-card__body">' + '<span class="jbr-card__title">' + escapeHtml(title) + '</span>' + (subtitle ? '<span class="jbr-card__subtitle">' + escapeHtml(subtitle) + '</span>' : '') + (date ? '<span class="jbr-card__date">' + escapeHtml(date) + '</span>' : '') + '</span>' + '<span class="jbr-card__btn">' + headphoneSVG + escapeHtml(CONFIG.buttonLabel) + '</span>'; return a; } async function init(){ try{ let items = (await fetchAllItems()).filter(it => { const t = (it.snippet && it.snippet.title) || ''; return t && t !== 'Private video' && t !== 'Deleted video'; }); items.sort((a,b) => { const da = new Date((a.contentDetails||{}).videoPublishedAt || a.snippet.publishedAt); const db = new Date((b.contentDetails||{}).videoPublishedAt || b.snippet.publishedAt); return CONFIG.newestFirst ? db – da : da – db; }); if(CONFIG.maxEpisodes > 0) items = items.slice(0, CONFIG.maxEpisodes); if(!items.length){ showStatus('No episodes found in this playlist yet.'); return; } const frag = document.createDocumentFragment(); items.forEach(it => { const c = buildCard(it); if(c) frag.appendChild(c); }); itemsEl.appendChild(frag); hideStatus(); }catch(err){ showStatus('Could not load episodes: ' + err.message, true); } } init(); })(); [/tcb-script]
Past Episodes
[tcb-script async="" src="https://pagead2.googlesyndication.com/pagead/js/adsbygoogle.js?client=ca-pub-1351364187104626" crossorigin="anonymous"][/tcb-script]
[tcb-script] (adsbygoogle = window.adsbygoogle || []).push({}); [/tcb-script]
Guest & venue inquiries
Be part of the show
The JBR Podcast is where music and life connect. If you have a story worth hearing, or a room worth recording in, James would like to hear from you.
get notified!
Want to stay in the loop? Sign up to get notified about new episodes and all the behind-the-scenes action.
[tcb-script src="https://rogalmail.com/f/10/embed.js" async=""][/tcb-script]
where music & life connect
”
Donate Now:
Fuel the Music
[tcb-script src="https://www.paypalobjects.com/donate/sdk/donate-sdk.js" charset="UTF-8"][/tcb-script]
[tcb-script] PayPal.Donation.Button({ env:'production', hosted_button_id:'3DMFDKC3UD2P6', image: { src:'https://www.paypalobjects.com/en_US/i/btn/btn_donateCC_LG.gif', alt:'Donate with PayPal button', title:'PayPal – The safer, easier way to pay online!', } }).render('#donate-button'); [/tcb-script]
































