Changeset - 49e3c43299e8
[Not reviewed]
0 2 0
Ben Sturmfels (bsturmfels) - 3 months ago 2024-02-23 04:06:59
ben@sturm.com.au
poddjango: Further lint fixes
2 files changed with 20 insertions and 8 deletions:
0 comments (0 inline, 0 general)
conservancy/podjango/feeds.py
Show inline comments
...
 
@@ -31,6 +31,9 @@ from .models import Cast
 

	
 

	
 
class CastFeedBase(Feed):
 
    def copyright_holder(self): return "Bradley M. Kuhn, Karen M. Sandler"
 
    def copyright_holder(self):
 
        return "Bradley M. Kuhn, Karen M. Sandler"
 

	
 
    def license_no_html(self): return "Licensed under a Creative Commons Attribution-Share Alike 3.0 USA License."
 
    def license_no_html(self):
 
        return "Licensed under a Creative Commons Attribution-Share Alike 3.0 USA License."
 

	
...
 
@@ -134,3 +137,4 @@ def podcast_helper_add_root_elements(self, handler):
 
    years = {}
 
    for ii in self.items: years[ii['year']] = 1
 
    for ii in self.items:
 
        years[ii['year']] = 1
 

	
...
 
@@ -139,3 +143,4 @@ def podcast_helper_add_root_elements(self, handler):
 
    sorted(ll)
 
    for yy in ll: copyrightString += "%d, " % yy 
 
    for yy in ll:
 
        copyrightString += "%d, " % yy
 
    copyrightString += "%s.  %s" % (self.feed['copyrightHolder'], self.feed['copyrightLicense'])
...
 
@@ -158,2 +163,3 @@ def podcast_helper_add_item_elements(self, handler, item):
 

	
 

	
 
# http://www.feedforall.com/itune-tutorial-tags.htm
...
 
@@ -237,5 +243,8 @@ class CastFeed(CastFeedBase):
 
class Mp3CastFeed(CastFeed):
 
    def item_enclosure_mime_type(self): return "audio/mpeg"
 
    def item_enclosure_mime_type(self):
 
        return "audio/mpeg"
 

	
 
    def item_enclosure_url(self, item):
 
        return add_domain(self.current_site.domain, item.mp3_path, self.is_secure)
 

	
 
    def item_enclosure_length(self, item):
...
 
@@ -245,5 +254,8 @@ class Mp3CastFeed(CastFeed):
 
class OggCastFeed(CastFeed):
 
    def item_enclosure_mime_type(self): return "audio/ogg"
 
    def item_enclosure_mime_type(self):
 
        return "audio/ogg"
 

	
 
    def item_enclosure_url(self, item):
 
        return add_domain(self.current_site.domain, item.ogg_path, self.is_secure)
 

	
 
    def item_enclosure_length(self, item):
conservancy/podjango/urls.py
Show inline comments
...
 
@@ -59,4 +59,4 @@ urlpatterns = [
 
if settings.DEBUG:
 
  from django.conf.urls.static import static
 
  urlpatterns += static('/', document_root='podjango/static')
 
    from django.conf.urls.static import static
 
    urlpatterns += static('/', document_root='podjango/static')
 

	
0 comments (0 inline, 0 general)