Remove hard-coded faif.us domain from feed enclosure URLs

This commit is contained in:
Ben Sturmfels 2023-10-13 09:39:01 +11:00
parent 136fecaaf1
commit 1b439b3bd0
Signed by: bsturmfels
GPG key ID: 023C05E2C9C068F0

View file

@ -221,14 +221,14 @@ class CastFeed(CastFeedBase):
class Mp3CastFeed(CastFeed): 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): def item_enclosure_url(self, item):
return "http://faif.us" + item.mp3_path return item.mp3_path
def item_enclosure_length(self, item): def item_enclosure_length(self, item):
return item.mp3_length return item.mp3_length
class OggCastFeed(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): def item_enclosure_url(self, item):
return "http://faif.us" + item.ogg_path return item.ogg_path
def item_enclosure_length(self, item): def item_enclosure_length(self, item):
return item.ogg_length return item.ogg_length