diff --git a/www/podjango/feeds.py b/www/podjango/feeds.py index 9b6b8d35f42a30fb3bee8c0859d35381833f0dda..1ff7e1b872f6d4ae8351e84a292ab3105f3b23c1 100644 --- a/www/podjango/feeds.py +++ b/www/podjango/feeds.py @@ -151,34 +151,6 @@ def podcast_helper_add_item_elements(self, handler, item): 'fileSize' : item['enclosure'].length, 'type' : item['enclosure'].mime_type}) -class OmnibusFeedType(Rss201rev2Feed): - def root_attributes(self): - attrs = super().root_attributes() - attrs['xmlns:itunes'] = 'http://www.itunes.com/dtds/podcast-1.0.dtd' - attrs['xmlns:atom'] = 'http://www.w3.org/2005/Atom' - attrs['xmlns:media'] = 'http://search.yahoo.com/mrss/' -# attrs['xmlns:dc'] = "http://purl.org/dc/elements/1.1/" - return attrs - - def add_root_elements(self, handler): - super().add_root_elements(handler) - podcast_helper_add_root_elements(self, handler) - - def add_item_elements(self, handler, item): - super().add_item_elements(handler, item) - - # The below is a bit of a cheat, I assume anything in the ominbus - # feed that has an enclosure must be a podcast. Probably not true - # as such in the general case, but enough for this case, I think. - if item['enclosure']: - podcast_helper_add_item_elements(self, handler, item) - else: - # Block things that don't have an enclosure from iTunes in - # case someone uploads this feed there. - handler.addQuickElement("itunes:block", 'Yes') - - - # http://www.feedforall.com/itune-tutorial-tags.htm # http://www.feedforall.com/mediarss.htm class iTunesFeedType(Rss201rev2Feed):