Browse Source

FIX supports feed items with no description

boyska 2 years ago
parent
commit
7dae35819b
1 changed files with 1 additions and 1 deletions
  1. 1 1
      player.js

+ 1 - 1
player.js

@@ -277,7 +277,7 @@ async function main() {
                                 s['itunes']['keywords'].split(',').map((k) => `<span>${k}</span>`).join('')
                             }
                             puntata.querySelector(".title").textContent = s.title;
-                            puntata.querySelector(".description").textContent = s.description.substr(0, 150);
+                            puntata.querySelector(".description").textContent = s.describtion ? s.description.substr(0, 150) : "";
                             puntata.querySelector(".play-pause").addEventListener('click', (e) => {
                                 console.log(httpsIze(s.enclosure))
                                 player.changeStreamURLs([httpsIze(s.enclosure)])