Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update TODO, add broken initial implementation of podcast, hash app s…
…tate by the library directory
- Loading branch information
1 parent
de801fb
commit 9ffdea0
Showing
4 changed files
with
53 additions
and
13 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,24 @@ | ||
require 'feed_tools' | ||
|
||
class Podcast < Application | ||
def index | ||
render | ||
app = Yikes.instance | ||
|
||
feed = FeedTools::Feed.new | ||
feed.title = "Yikes Video Feed of #{app.state.library}" | ||
feed.author.name = "Yikes" | ||
feed.link = "http://github.com/xpaulbettsx/yikes" | ||
|
||
app.state.get_finished_items.each do |item| | ||
f = FeedTools::FeedItem.new | ||
|
||
f.title = "#{Pathname.new(item.path).basename}" | ||
f.link = "http://foobar.com" | ||
f.content = "I am a test" | ||
|
||
feed.entries << f | ||
end | ||
|
||
render feed.build_xml("rss", 2.0), :layout => false | ||
end | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters