Diff of /plugin.audio.podcatcher/feedreader/rss.py [cdde35] .. [c1ac41]  Maximize  Restore

Switch to side-by-side view

--- a/plugin.audio.podcatcher/feedreader/rss.py
+++ b/plugin.audio.podcatcher/feedreader/rss.py
@@ -58,7 +58,10 @@
             enclosureNode = itemNode.getElementsByTagName("enclosure")[0];
           
             feedItem.link = enclosureNode.getAttribute("url");
-            feedItem.size = int(enclosureNode.getAttribute("length"));
+            try:
+              feedItem.size = int(enclosureNode.getAttribute("length"));
+            except:
+              feedItem.size = 0;
           else:
             feedItem.size = 0;
             feedItem.link = self.parseIndirectItem(self.readText(itemNode,"link"));

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:





No, thanks