feedburner changing url

Topics: Developer Thread, Feature Request, Suggestion
Jan 26, 2009 at 7:46 AM
Hello
I appreciate very much dasblog. However, a small fix:
Feedburner change his API from feeds to feeds2  - so the code that we have in Siteutilities.cs

public static string GetRssUrl(SiteConfig siteConfig)
        {
            if (siteConfig.FeedBurnerName != null && siteConfig.FeedBurnerName.Length >0)
            {
                return new Uri(new Uri("http://feeds.feedburner.com/"),siteConfig.FeedBurnerName).ToString();
            }
            return new Uri( new Uri(siteConfig.Root),"SyndicationService.asmx/GetRss").ToString();
        }

is no longer available for feedburner. More, all feedburner accounts are transferring to google adsense - and he has another URL transformation
Can you put this URL into site.config file ?

A possible solution :
public static string GetRssUrl(SiteConfig siteConfig)
        {
            if (siteConfig.FeedBurnerName != null && siteConfig.FeedBurnerName.Length >0)
            {
//maintain compatibility
if(siteConfig.FeedBurnerURL == null && siteConfig.FeedBurnerURL.Length == 0)
{
siteConfig.FeedBurnerURL = "http://feeds.feedburner.com/{0}"
}
                return new Uri(new Uri(string.Format(siteConfig.FeedBurnerURL ,siteConfig.FeedBurnerName)).ToString();
            }
            return new Uri( new Uri(siteConfig.Root),"SyndicationService.asmx/GetRss").ToString();
        }


Thank you
Developer
Jan 26, 2009 at 4:42 PM
I agree, this is something that needs to be tweaked, but is not an emergency at this point. If you migrate your FeedBurner account (at www.feedburner.com) to the new Google Feedburner system (at feedburner.google.com) your feed will auto redirect from feeds.feedburner.com to feeds2.feedburner.com, and I expect that any other URL changes they make will continue to be redirected on their end.

On Mon, Jan 26, 2009 at 2:46 AM, ignatandrei <notifications@codeplex.com> wrote:

From: ignatandrei

Hello
I appreciate very much dasblog. However, a small fix:
Feedburner change his API from feeds to feeds2 - so the code that we have in Siteutilities.cs

public static string GetRssUrl(SiteConfig siteConfig)
{
if (siteConfig.FeedBurnerName != null && siteConfig.FeedBurnerName.Length >0)
{
return new Uri(new Uri("http://feeds.feedburner.com/"),siteConfig.FeedBurnerName).ToString();
}
return new Uri( new Uri(siteConfig.Root),"SyndicationService.asmx/GetRss").ToString();
}

is no longer available for feedburner. More, all feedburner accounts are transferring to google adsense - and he has another URL transformation
Can you put this URL into site.config file ?

A possible solution :
public static string GetRssUrl(SiteConfig siteConfig)
{
if (siteConfig.FeedBurnerName != null && siteConfig.FeedBurnerName.Length >0)
{
//maintain compatibility
if(siteConfig.FeedBurnerURL == null && siteConfig.FeedBurnerURL.Length == 0)
{
siteConfig.FeedBurnerURL = "http://feeds.feedburner.com/{0}"
}
return new Uri(new Uri(string.Format(siteConfig.FeedBurnerURL ,siteConfig.FeedBurnerName)).ToString();
}
return new Uri( new Uri(siteConfig.Root),"SyndicationService.asmx/GetRss").ToString();
}


Thank you

Read the full discussion online.

To add a post to this discussion, reply to this email (dasBlog@discussions.codeplex.com)

To start a new discussion for this project, email dasBlog@discussions.codeplex.com

You are receiving this email because you subscribed to this discussion on CodePlex. You can unsubscribe or change your settings on codePlex.com.

Please note: Images and attachments will be removed from emails. Any posts to this discussion will also be available online at codeplex.com




--
-------------------------------------------
Nicholas Schweitzer
nick@nickschweitzer.net

The World According to Nick
http://www.nickschweitzer.net

The Coding Monkey
http://www.thecodingmonkey.net
-------------------------------------------
Jan 28, 2009 at 10:21 AM
First, it is something to be done , because, for NEW blogs that are put into feedburner, the autoredirecting does NOT function!
Please verify that  http://feeds2.feedburner.com/blogpropriu , but http://feeds.feedburner.com/blogpropriu gives an error.
So the NEW installations of dasblog are affected - and I assume that gives to this modification some sort of emergency ...

If you let me know how to integrate modifications into dasblog(I am not expert in collaborating over codeplex) , I can do myself.

Thank you
Andrei
Coordinator
Jan 28, 2009 at 11:55 AM
Thanks for the effort Andrei,

If you could post this as a patch on the source code page here at codeplex, the team could review.
See the header info on TortiseSVN about usage, simple to create a patch.

Cheers
Tom