From 3b821a43d60ac77ca84d0406a018d62d2cadfde0 Mon Sep 17 00:00:00 2001 From: Lionel Young Date: Thu, 1 Jan 2015 19:28:36 -0800 Subject: [PATCH] Update readme.md for podcast example Show the user how to create an entry with an enclosure --- readme.md | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/readme.md b/readme.md index 9991cc6..c50732e 100644 --- a/readme.md +++ b/readme.md @@ -142,6 +142,12 @@ To produce a podcast simply load the `podcast` extension:: ... >>> fg.podcast.itunes_category('Technology', 'Podcasting') ... + >>> fe = fg.add_entry() + >>> fe.id('http://lernfunk.de/media/654321/1/file.mp3') + >>> fe.title('The First Episode') + >>> fe.description('Enjoy our first episode.') + >>> fe.enclosure('http://lernfunk.de/media/654321/1/file.mp3', 0, 'audio/mpeg') + ... >>> fg.rss_str(pretty=True) >>> fg.rss_file('podcast.xml')