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): diff --git a/www/podjango/templates/podjango/feeds/omnibus_description.html b/www/podjango/templates/podjango/feeds/omnibus_description.html deleted file mode 100644 index 2edf925f464c3823283578f82ae5da6a0af370fa..0000000000000000000000000000000000000000 --- a/www/podjango/templates/podjango/feeds/omnibus_description.html +++ /dev/null @@ -1,16 +0,0 @@ - - - - - -{% ifequal obj.omnibus_type "news" %} -

A news item from SFLC.

-{% endifequal %} -{% ifequal obj.omnibus_type "podcast" %} -

An episode of the Software Freedom Law Show.

-{% endifequal %} -{% ifequal obj.omnibus_type "event" %} -

An upcoming event related to the SFLC .

-{% endifequal %} -{% include obj.omnibus_feed_description_template %} diff --git a/www/podjango/templates/podjango/feeds/omnibus_title.html b/www/podjango/templates/podjango/feeds/omnibus_title.html deleted file mode 100644 index 66cec083b323716b62289372823a26762277064d..0000000000000000000000000000000000000000 --- a/www/podjango/templates/podjango/feeds/omnibus_title.html +++ /dev/null @@ -1,5 +0,0 @@ - - - -{% include obj.omnibus_feed_title_template %}