The SmartCast function in FeedBurner is powerful and easy to use, I can do a quick podcast using any blog platform, instead of using other software. But, it's so dumb to put in the generated XML, without asking, this:
</item>
<language>en-us</language>
So, iTunes and others podcast indexers thinks that my podcast is in english language. I tried to use yahoo pipes to change that one to "it-it", but, since it is after the last item tag, it is ignored by yahoo pipes.
There is a way to make yah开发者_如何学编程oo pipes to get text from an url and then make a simple string substitution?
I solved in this way, with an asp.net page
HttpWebRequest request = (HttpWebRequest)HttpWebRequest.Create(url);
request.UserAgent = "iTunes/7.4.1";
WebResponse response = request.GetResponse();
Stream stream = response.GetResponseStream();
StreamReader reader = new StreamReader(stream);
string htmlText = reader.ReadToEnd();
Literal1.Text = htmlText.Replace("<language>en-us</language>", "<language>it-it</language>");
by the way, an even better solution is to edit the original feed to include the language, as stated here
精彩评论