try formatting itunes feed
This commit is contained in:
1 parent
49cc36ef31
commit
ea3ff90349
3 files changed
+73
-6
No files matched your search
@@ -7,12 +7,14 @@ local hotmixes = autoload("hotmixes")
|
||||
local function RSShandler(self)
|
||||
|
||||
local path = config.get().mount .. self.titles.url
|
||||
local latest_path, latest_name = hotmixes.utils.these_latest( path )
|
||||
local latest_path, latest_name, latest_size, latest_date = hotmixes.utils.rss_latest( path )
|
||||
|
||||
local host = self.req.parsed_url.scheme .. '://' .. self.req.parsed_url.host
|
||||
self.datapath = host .. '/data/' .. self.titles.url .. '/'
|
||||
self.latestpath = latest_path
|
||||
self.latestname = latest_name
|
||||
self.latestsize = latest_size
|
||||
self.latestdate = latest_date
|
||||
|
||||
return { content_type = "application/rss+xml", layout = require "views.rss" }
|
||||
end
|
||||
|
||||
Reference in new issue
Block a user