def rsstest(self): rssHtml, allright = Podcast.f_urlToString("http://feeds.feedburner.com/wrint/wrint", self.getShowError()) #rssHtml = Podcast.f_urlToString("http://www.dradio.de/rss/podcast/sendungen/breitband") if allright: rss = RSS20.RSS20(self.getShowError()) rssobject = rss.getRSSObject(rssHtml) rss.debugItem2(rssobject)
def addPodcastByURL(self, _url): name = "" try: rss = RSS20.RSS20(self.mConfig[self.STR_showError]) rssString, isRSSstringOK = Podcast.f_urlToString(_url, self.mConfig[self.STR_showError]) if isRSSstringOK: rssBody = rss.getRSSObject(rssString) name = Podcast.getCastNameByRSS(rssBody) except (KeyboardInterrupt, SystemExit): raise except: raise if isRSSstringOK: self.addPodcast(name, _url)