EllisLab text mark
Advanced Search
     
Magpie RSS always shows the same recent entry?
Posted: 31 May 2012 12:56 AM   [ Ignore ]
Joined: 2010-04-28
230 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}
    
<img class="musical-note" src="/images/_ui/musical-note.png" alt="Musical Note" title="Musical Note" />Played <a href="{link}" target="_blank" title="{title}">{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

 Signature 

http://digitalformula.net/
@digitalformula
ExpressionEngine 2.2.1 build 20110705

 
Posted: 01 June 2012 10:52 AM   [ Ignore ]   [ # 1 ]   [ Rating: 0 ]
Avatar
Joined: 2011-11-25
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,

 Signature 

Recent version: EE 2.5.4 | Forum Module 3.1.10 | MSM 2.1.4 | 2.x Bug Tracker | Version Upgrade

 
Posted: 02 June 2012 06:51 AM   [ Ignore ]   [ # 2 ]   [ Rating: 0 ]
Joined: 2010-04-28
230 posts
Shane Eckert - 01 June 2012 10:52 AM

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.  smile

 Signature 

http://digitalformula.net/
@digitalformula
ExpressionEngine 2.2.1 build 20110705

 
Posted: 03 June 2012 07:55 AM   [ Ignore ]   [ # 3 ]   [ Rating: 0 ]
Joined: 2010-04-28
230 posts
Shane Eckert - 01 June 2012 10:52 AM

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.  :(

 Signature 

http://digitalformula.net/
@digitalformula
ExpressionEngine 2.2.1 build 20110705

 
Posted: 05 June 2012 04:29 PM   [ Ignore ]   [ # 4 ]   [ Rating: 0 ]
Avatar
Joined: 2011-11-25
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,

 Signature 

Recent version: EE 2.5.4 | Forum Module 3.1.10 | MSM 2.1.4 | 2.x Bug Tracker | Version Upgrade

 
Posted: 07 June 2012 07:16 AM   [ Ignore ]   [ # 5 ]   [ Rating: 0 ]
Joined: 2010-04-28
230 posts
Shane Eckert - 05 June 2012 04:29 PM

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?

 Signature 

http://digitalformula.net/
@digitalformula
ExpressionEngine 2.2.1 build 20110705

 
Posted: 11 June 2012 01:13 PM   [ Ignore ]   [ # 6 ]   [ Rating: 0 ]
Avatar
Joined: 2011-11-25
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,

 Signature 

Recent version: EE 2.5.4 | Forum Module 3.1.10 | MSM 2.1.4 | 2.x Bug Tracker | Version Upgrade