ExpressionEngine CMS
Open, Free, Amazing

Thread

This is an archived forum and the content is probably no longer relevant, but is provided here for posterity.

The active forums are here.

Magpie RSS always shows the same recent entry?

May 31, 2012 12:56am

Subscribe [2]
  • #1 / May 31, 2012 12:56am

    digitalformula

    176 posts

    Hi all,

    I’m using Magpie RSS to show the most recent track I’ve played on last.fm - http://ws.audioscrobbler.com/1.0/user/digitalformula/recenttracks.rss is the feed URL, if you want to see that the feed works.

    For some reason, my website always shows the same recent track, no matter what I do.  In the past it has updated, but probably only once or twice a month (and I listen to music more than that).

    I’ve cleared the cache far more than should be necessary, confirmed that the feed URL is correct and tested the feed URL in a browser - it shows everything fine.

    Can anyone suggest why these entries might be cached by EE for so long?

    Here’s my Magpie code (nothing special going on there at all):

    {exp:magpie url="http://ws.audioscrobbler.com/1.0/user/digitalformula/recenttracks.rss" limit="1"}
        {items}
        /images/_ui/musical-note.pngPlayed <a href="http://{link}" title="{title}" target="_blank" rel="noopener">{title}</a>
        {/items}
       {/exp:magpie}

    See http://digitalformula.net if you want to see the problem (top of the page, far right, shows the track name).

    Thanks

  • #2 / Jun 01, 2012 10:52am

    Shane Eckert

    7174 posts

    Hey digitalformula,

    I am sorry to hear you are running into this problem.

    Can you try this tag with another RSS feed and see if that works? It sounds like the feed might be sending some malformed data that Magpie does not know how to process.

    Please let me know what you find!

    Cheers,

  • #3 / Jun 02, 2012 6:51am

    digitalformula

    176 posts

    Hey digitalformula,

    I am sorry to hear you are running into this problem.

    Can you try this tag with another RSS feed and see if that works? It sounds like the feed might be sending some malformed data that Magpie does not know how to process.

    Please let me know what you find!

    Cheers,

    Hi Shane,

    Rather than try another feed, I removed the Magpie plugin and replaced it with the one covered by Wes Baker in the EE blog located at http://ellislab.com/blog/entry/building_a_plugin_replacing_magpie.  Not to say EE is the absolute cause of the issue, but I’d assume that if Last.fm’s feed was sending malformed data, the feed wouldn’t work in any reader with consistent results.

    Now, I haven’t compared Magpie and the new one (they may well be identical since they’re both from EllisLab) but after doing that, the feed on my site has updated and is now showing the most recent track that was scrobbled to Last.fm.

    Thanks for the response.  😊

  • #4 / Jun 03, 2012 7:55am

    digitalformula

    176 posts

    Hey digitalformula,

    I am sorry to hear you are running into this problem.

    Can you try this tag with another RSS feed and see if that works? It sounds like the feed might be sending some malformed data that Magpie does not know how to process.

    Please let me know what you find!

    Cheers,

    Hi again Shane,

    FYI I scrobbled a few more tracks with Last.fm, the feed updated and the correct recent feed entries are being displayed on my website.

    It’s tough to say Magpie isn’t the cause of the original problem, I’d say.  :(

  • #5 / Jun 05, 2012 4:29pm

    Shane Eckert

    7174 posts

    Hey digitalformula,

    The newer version is changed, I know that much.

    So it does sound like a Magpie is the cause of the original problem.

    So are you good to go now?

    Thank you,

  • #6 / Jun 07, 2012 7:16am

    digitalformula

    176 posts

    Hey digitalformula,

    The newer version is changed, I know that much.

    So it does sound like a Magpie is the cause of the original problem.

    So are you good to go now?

    Thank you,

    Yes I’m good to go now but what do you mean by the ‘newer’ version?  Do you mean the version of Magpie that’s in EE 2.5.1 that just got released?

  • #7 / Jun 11, 2012 1:13pm

    Shane Eckert

    7174 posts

    Hey digitalformula,

    Yes, that is what I mean.

    Have a great week!

    If you need anything else, please just let me know by opening a new thread.

    Cheers,

.(JavaScript must be enabled to view this email address)

ExpressionEngine News!

#eecms, #events, #releases