marcus7777 / cards-sha

GNU General Public License v3.0
1 stars 0 forks source link

podcast/rss #13

Open marcus7777 opened 4 days ago

marcus7777 commented 4 days ago
const RSS_URL = `https://anchor.fm/s/664feec4/podcast/rss`;
let doc = {}
let items = []
fetch(RSS_URL)
  .then(response => response.text())
  .then(str => new window.DOMParser().parseFromString(str, "text/xml"))
  .then(data => {
      // main
      console.log(data.querySelectorAll("rss > channel > image > url")[0].textContent)
      // subs
      data.querySelectorAll("rss > channel > item").forEach(item => {
          items.push(item)
      })
  })

used local storage to Mark Ash's of each episode as played

marcus7777 commented 4 days ago

Display cards without saving how?

marcus7777 commented 17 minutes ago

This is in but still buggy