Changeset - bf64250aa38b
[Not reviewed]
2 1 0
Ben Sturmfels (bsturmfels) - 6 months ago 2023-10-10 11:05:38
ben@sturm.com.au
podjango: Remove unused code and templates
3 files changed with 0 insertions and 49 deletions:
0 comments (0 inline, 0 general)
www/podjango/feeds.py
Show inline comments
...
 
@@ -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):
www/podjango/templates/podjango/feeds/omnibus_description.html
Show inline comments
 
deleted file
www/podjango/templates/podjango/feeds/omnibus_title.html
Show inline comments
 
deleted file
0 comments (0 inline, 0 general)