root/trunk/plagger/examples/podcast.yaml

Revision 1053 (checked in by miyagawa, 14 years ago)

add more comments to examples

Line 
1 # synchronize Podcasts from Odeo subscription, download all the
2 # episodes, rewrite enclosure URL and republish as RSS 2.0 podcast
3
4 plugins:
5   # Subscribe to Odeo RSS feed of the user TatsuhikoMiyagawa
6   - module: Subscription::Odeo
7     config:
8       account: TatsuhikoMiyagawa
9
10   # Fix permalinks to the enclosures file (by resolving redirector cruft etc.)
11   - module: Filter::TruePermalink
12
13   # Download enclosures to the local directory
14   - module: Filter::FetchEnclosure
15     config:
16       dir: /home/miyagawa/public_html/podcasts
17
18   # Rewrite downloaded enclosure's URL (file path) by replacing
19   # ".../public_html/" with ".../~miyagawa/"
20   # This way enclosure URL links to your local web server
21   - module: Filter::RewriteEnclosureURL
22     config:
23       rewrite:
24         - local: /home/miyagawa/public_html/
25           url:   http://rock/~miyagawa/
26
27   # Create SmartFeed for the all entries across the feeds
28   - module: SmartFeed::All
29
30   # Create a single unified odeo.xml as RSS 2.0 format
31   - module: Publish::Feed
32     rule:
33       expression: $args->{feed}->id eq 'smartfeed:all'
34     config:
35       dir: /home/miyagawa/public_html/feeds
36       format: RSS
37       filename: odeo.xml
Note: See TracBrowser for help on using the browser.