1 # This files contains rules to rewrite Podcast and Episode URLs
2 # All rules should be given in the following format
5 #podcast=1 1 if the rule applies to podcast URLs, otherwise 0
6 #episode=1 1 if the rule applies to episode URLs, otherwise 0
7 #search=regex search-regex that should be replaced
8 #replace=regex string with which the search string should be replace. may contain references
9 #priority=x rules are applied in order of increasing priority
10 #description text describing the rule, possibly mentioning a bug
16 search=feeds2\.feedburner\.com
17 replace=feeds.feedburner.com
19 description=Rewriting for feedburner should happen as "feeds2.feedburner.com" -> "feeds.feedburner.com"
24 search=(?P<unchanged>feedburner\.com.+)\?format=xml
27 description=Feedburner URLs should have their "?format=xml" query string removed
29 [remove-leading-whitespace]
35 description=Remove leading whitespaces
37 [remove-trailing-whitespace]
43 description=Remove trailing whitespaces
48 search=^[^(https?):].+
51 description=Empty any string that doesn't start with either http or https
53 [feedburner-trailing-slash]
56 search=(?P<unchanged>feedburner\.com.+)\/$
59 description=Feedburner URLs sometimes have a trailing slash, which can be removed safely
64 search=^.*[^\x20-\x7E].*$
67 description=Remove URLs with non-ascii characters
72 search=^http://leoville\.tv/podcasts/(?P<podcast>\w+)\.xml$
73 replace=http://leo.am/podcasts/\g<podcast>
75 description=Rewrite URLs of TWiT Podcasts because most users use a URL that is going to break soon (bug 885)
77 [hardcore-history-old-url]
80 search=^http://www\.dancarlin\.com/dchh\.xml$
81 replace=http://feeds.feedburner.com/dancarlin/history
83 description=Rewrite podcast URL of Dan Carlin's Hardcore History because the old URL doesn't work anymore (bug 855)
91 description=All URLs that contain spaces are considered invalid
96 search=http://media.libsyn.com/media/(?P<res>.*)$
97 replace=http://traffic.libsyn.com/\g<res>
99 description=Update new URL for libsy Podcasts (Learn Japanese with Beb and Alex)
104 search=^http://site\.abc\.go\.com/abc/xml/podcastRSS\?(.*&)?feedPublishKey=(?P<key>\d+)(&.*)?$
105 replace=http://a.abc.com/abc/xml/podcastRSS?feedPublishKey=\g<key>
107 description=Merge URLs for ABC Podcasts (bug 977)
112 search=^(?P<protocol>[a-zA-Z])://[-_\w]+(:[^@]+)?@(?P<rest>.+)$
113 replace=\g<protocol>://\g<rest>
115 description=Remove HTTP-Authentication from URLs
120 search=^(?P<unchanged>http://rpod\.ru/personal/.+\.mp[34])\?[0-9a-z]+$
121 replace=\g<unchanged>
128 search=^http://\d+\.media\.collegehumor\.com/(?P<unchanged>.+)$
129 replace=http://1.media.collegehumor.com/\g<unchanged>
136 search=(?i)^http://feeds.feedburner.com/ShotOfJaq$
137 replace=http://shotofjaq.org/feed/
139 description=Merges Shot of Jaq feeds to the URL given on their Website
141 [shot-of-jaq-trailing-slash]
144 search=http://shotofjaq.org/feed$
145 replace=http://shotofjaq.org/feed/
147 description=Add trailing slash to Shot of Jaq feed URL
149 [shot-of-jaq-feedburner]
152 search=(?i)^http://feeds\.feedburner\.com/ShotOfJaqOGG$
153 replace=http://feeds.feedburner.com/ShotOfJaqOgg
155 description=Unify all Feedburner URLs for the Shot of Jaq Ogg feed (seems it doesn't have an shotofjaq.org url)
160 search=(?i)^http://feeds\.feedburner\.com/TEDTalks_video$
161 replace=http://feeds.feedburner.com/tedtalks_video
163 description=Unify all TEDTalks podcasts
168 search=(?i)^http://feeds\.feedburner\.com/TEDTalks_audio$
169 replace=http://feeds.feedburner.com/tedtalks_audio
171 description=Unify all TEDTalks podcasts
176 search=(?i)^http://feeds\.feedburner\.com/TedtalksHD$
177 replace=http://feeds.feedburner.com/tedtalkshd
179 description=Unify all TEDTalks podcasts
181 [mintcast-feedburner]
184 search=(?i)^http://feeds\.feedburner\.com/mintcastpodcast$
185 replace=http://www.mintcast.org/feed/podcast/
187 description=Unify mintCast feeds (bug 1035
192 search=(?i)^http://www.mintcast.org/feed/$
193 replace=http://www.mintcast.org/feed/podcast/
195 description=Unify mintCast feeds (bug 1035
197 [crankygeeks-feedburner]
200 search=(?i)^http://feeds\.feedburner\.com/ziffdavis/crankygeekspodcast$
201 replace=http://feeds.ziffdavis.com/ziffdavis/crankygeekspodcast
203 description=Unify Cranky Geed Podcasts (MP3) (bug 1032
208 search=^http://rssnewsapps\.ziffdavis\.com/audioblogs/crankygeeks/cg\.audio\.xml/?$
209 replace=http://feeds.ziffdavis.com/ziffdavis/crankygeekspodcast
211 description=Unify Cranky Geed Podcasts (MP3) (bug 1032
216 search=^http://feeds\.ziffdavis\.com/ziffdavis/crankygeekspodcast/$
217 replace=http://feeds.ziffdavis.com/ziffdavis/crankygeekspodcast
219 description=Unify Cranky Geed Podcasts (MP3) (bug 1032
224 search=(?i)^http://feeds\.feedburner\.com/ziffdavis/cgh264video$
225 replace=http://feeds.ziffdavis.com/ziffdavis/cgh264video
227 description=Unify Cranky Geed Podcasts (H.264) (bug 1032
229 [crankygeeks-xml-video]
232 search=^http://rssnewsapps\.ziffdavis\.com/audioblogs/crankygeeks/cg\.h\.264\.xml$
233 replace=http://feeds.ziffdavis.com/ziffdavis/cgh264video
235 description=Unify Cranky Geed Podcasts (H.264) (bug 1032
237 [crankygeeks-xml-h264]
240 search=^http://rssnewsapps\.ziffdavis\.com/audioblogs/crankygeeks/cg\.ipod\.xml$
241 replace=http://feeds.ziffdavis.com/ziffdavis/cgipodvideo
243 description=Unify Cranky Geed Podcasts (iPod Video) (bug 1032
245 [crankygeeks-xml-mp4]
248 search=^http://rssnewsapps\.ziffdavis\.com/audioblogs/crankygeeks/cg\.mp4\.xml$
249 replace=http://feeds.ziffdavis.com/ziffdavis/cgipodvideo
251 description=Unify Cranky Geed Podcasts (iPod Video) (bug 1032
256 search=(?i)^http://feeds\.feedburner\.com/ziffdavis/cgipodvideo$
257 replace=http://feeds.ziffdavis.com/ziffdavis/cgipodvideo
259 description=Unify Cranky Geed Podcasts (iPod Video) (bug 1032
264 search=^http://feeds\.ziffdavis\.com/ziffdavis/cgmpeg4video/$
265 replace=http://feeds.ziffdavis.com/ziffdavis/cgipodvideo
267 description=Unify Cranky Geed Podcasts (iPod Video) (bug 1032
269 [crankygeeks-ipod-cgipod-video]
272 search=^http://feeds\.ziffdavis\.com/ziffdavis/cgipodvideo\?format=xml$
273 replace=http://feeds.ziffdavis.com/ziffdavis/cgipodvideo
275 description=Unify Cranky Geed Podcasts (iPod Video) (bug 1032
280 search=^http://rssnewsapps\.ziffdavis\.com/audioblogs/crankygeeks/cg\.wmv\.xml$
281 replace=http://feeds.feedburner.com/ziffdavis/cgwmvvideo
283 description=Unify Cranky Geed Podcasts (WMV) (bug 1032
288 search=^http://noagenda\.podshow\.com/feed$
289 replace=http://www.mevio.com/feeds/noagenda.xml
291 description=Unify No Agend Feeds
296 search=(?i)^http://feeds\.feedburner\.com/EscapePod$
297 replace=http://escapepod.org/feed/
299 description=Unify Escape Pod Feeds
301 [hacker-public-radio]
304 search=http://hackerpublicradio\.org/(?P<res>.*)$
305 replace=http://www.hackerpublicradio.org/\g<res>
307 description=Unify Hacker Public Radio (bug 1090)
312 search=(?i)^http://feeds\.feedburner\.com/HackerMedley$
313 replace=http://hackermedley.org/feed/podcast/
315 description=Unify Hacker Medley Podcast
320 search=.*http://3lib\.ukonline\.co\.uk/sshow/sshowchat\.rss.*
321 replace=http://stevelitchfield.com/sshow/sshowchat.rss
323 description=Rewrite old URL of The Phones Show (by request of Steve Litchfield on 2011-04-01)