2 of 2
2
Magpie not working?
Posted: 07 January 2008 01:54 PM   [ Ignore ]   [ # 19 ]  
Administrator
Avatar
RankRankRankRankRankRankRankRank
Total Posts:  40175
Joined  05-14-2004

Out of curiosity, if you create an entirely new test template with your magpie code, does it get the latest songs?  Is your RSS feed updating in a normal reader like Google’s news-reader, or whatever reader you use?

 Signature 
Profile
MSG
 
 
Posted: 07 January 2008 01:57 PM   [ Ignore ]   [ # 20 ]  
Lab Assistant
Avatar
RankRank
Total Posts:  149
Joined  12-13-2006

well, this is a barebones test page that I created for Robin, I just tried another test page and it’s still only picking up the 2 songs that appeared hours ago right after I had first removed the cache. I’ll add the feed to google reader to confirm feed works correctly. It is updating when you view the feed directly but I’ll confirm with reader.

Profile
 
 
Posted: 07 January 2008 02:06 PM   [ Ignore ]   [ # 21 ]  
Administrator
Avatar
RankRankRankRankRankRankRankRank
Total Posts:  40175
Joined  05-14-2004

Can you either post here or privately message me the URL to the feed?  Whichever you’re comfortable with.  Thanks =)

 Signature 
Profile
MSG
 
 
Posted: 07 January 2008 02:10 PM   [ Ignore ]   [ # 22 ]  
Lab Assistant
Avatar
RankRank
Total Posts:  149
Joined  12-13-2006

Sure no prob. The feed is here. Google Reader has parsed the feed okay but it’s not picking up the very, very latest. It did pick up songs that played from 5 minutes ago or so, so it’s ...seemingly working. Not sure if it will update at intervals though.

Profile
 
 
Posted: 07 January 2008 02:14 PM   [ Ignore ]   [ # 23 ]  
Administrator
Avatar
RankRankRankRankRankRankRankRank
Total Posts:  40175
Joined  05-14-2004

Ok, a new template for me with your RSS feed in Magpie got the latest songs as of right now (with the last one being the Dismemberment Plan); so let’s see what happens.  I got it Newsfire as well.

 Signature 
Profile
MSG
 
 
Posted: 07 January 2008 02:25 PM   [ Ignore ]   [ # 24 ]  
Lab Assistant
Avatar
RankRank
Total Posts:  149
Joined  12-13-2006

Hope you have better luck with it than me!

Profile
 
 
Posted: 07 January 2008 02:36 PM   [ Ignore ]   [ # 25 ]  
Administrator
Avatar
RankRankRankRankRankRankRankRank
Total Posts:  40175
Joined  05-14-2004

Ok, 3 new songs in Newsfire, and can’t get my template to update. I’m going to see if the team has any ideas on this while watching it throughout the day, it may be a time-based restriction from last.fm that we can’t get around, though I can’t imagine that as Newsfire works.

 Signature 
Profile
MSG
 
 
Posted: 07 January 2008 02:37 PM   [ Ignore ]   [ # 26 ]  
Lab Assistant
Avatar
RankRank
Total Posts:  149
Joined  12-13-2006

How weird! I really appreciate the help Lisa, I’ll stay tuned then. Thanks!

Profile
 
 
Posted: 07 January 2008 11:41 PM   [ Ignore ]   [ # 27 ]  
Administrator
Avatar
RankRankRankRankRankRankRankRank
Total Posts:  40175
Joined  05-14-2004

Hi, joey,

Ok, something is odd here.  What I’m going to ask you to do is open /system/plugins/pi.magpie.php and make a one line modification.  That will get it going immediately while we figure out what is really happening and get a permanent fix in.

1) Open up system/plugins/pi.magpie.php

2) Find line 1251.  It’ll look like this

if ( !MAGPIE_CACHE_ON) {

3) Replace it with the following code

if ( !MAGPIE_CACHE_ON || strpos($url, "audioscrobbler.com") !== FALSE) {

Essentially, what we’re doing here is having Magpie skip any caching for last.fm.  I have tested this with my own last.fm RSS feed and it worked, so you should be good to go.


Thank you!

 Signature 
Profile
MSG
 
 
Posted: 07 January 2008 11:57 PM   [ Ignore ]   [ # 28 ]  
Lab Assistant
Avatar
RankRank
Total Posts:  149
Joined  12-13-2006

That seems to do the trick Lisa, thanks so much! There is the very small matter of that funky alt character but I’m sure i can figure that out.

Profile
 
 
Posted: 08 January 2008 01:22 AM   [ Ignore ]   [ # 29 ]  
Lab Assistant
Avatar
RankRank
Total Posts:  149
Joined  12-13-2006

Just for reference the weird html characters from the feed were caused by character encoding not being set to utf-8 (despite specifying this in my xhtml, my server was overriding it). A simple htaccess cleared the problem up and the audioscrobbler feed is still working flawlessly.

Thanks again Lisa and Robin, you both rock!

Profile
 
 
Posted: 09 January 2008 06:24 AM   [ Ignore ]   [ # 30 ]  
Lab Assistant
Avatar
RankRank
Total Posts:  149
Joined  12-13-2006

I know that this problem is fixed but I just learned of another solution, albeit it may not be for everyone but it is extremely simple.

Wigitize parses any feed and creates a widget for you to place on your site and style as you see fit. The only catch is that it’s utilizing a javascript file on their servers but I definitely see this as a useful free web service.

Profile
 
 
Posted: 09 January 2008 11:20 AM   [ Ignore ]   [ # 31 ]  
Administrator
Avatar
RankRankRankRankRankRankRankRank
Total Posts:  40175
Joined  05-14-2004

Thanks for pointing that out, Joey!

I still prefer Magpie; it doesn’t rely on a third-party site, and you can still use tag caching or template caching to make sure it’s not constantly re-fetching the feeds. =)

 Signature 
Profile
MSG
 
 
Posted: 09 August 2008 11:03 PM   [ Ignore ]   [ # 32 ]  
Grad Student
Rank
Total Posts:  39
Joined  02-25-2008
Joey Trimmer - 08 January 2008 01:22 AM

Just for reference the weird html characters from the feed were caused by character encoding not being set to utf-8 (despite specifying this in my xhtml, my server was overriding it). A simple htaccess cleared the problem up and the audioscrobbler feed is still working flawlessly.

Joey, can you explain what you did here to remedy these odd characters. I can’t seem to figure it out.

Profile
 
 
Posted: 10 August 2008 01:55 PM   [ Ignore ]   [ # 33 ]  
Lab Assistant
Avatar
RankRank
Total Posts:  149
Joined  12-13-2006
andculture - 09 August 2008 11:03 PM

Joey, can you explain what you did here to remedy these odd characters. I can’t seem to figure it out.

Hi andculture, no prob! At the top of my .htaccess file I added this line:

AddDefaultCharset utf-8

Hope that works for ya!

Profile
 
 
Posted: 10 August 2008 01:59 PM   [ Ignore ]   [ # 34 ]  
Lab Assistant
Avatar
RankRank
Total Posts:  149
Joined  12-13-2006

To be a little more clear, in my root directory I have a file named .htaccess with that line as my first line. My server was overriding my character encoding that I specified in my XHTML so I had to override my server. This did the trick for me and stopped the funky characters from showing up. I hope it does for you too. smile

Profile
 
 
Posted: 06 October 2009 11:54 AM   [ Ignore ]   [ # 35 ]  
Grad Student
Rank
Total Posts:  94
Joined  06-22-2007

it looks like the Wigitize site is down or maybe the URL in the post is wrong.

I have a similar problem as these folks. Except i am trying to grab a Twitter search RSS feed by injecting a variable into the URL for magpie to grab.

Is this possible or will magpie not accept EE variables?

It is not letting me load the twitter search feed anymore. When i type in the name it works fine, but then when i replace the value with the variable it no longer works.

Profile
 
 
   
2 of 2
2
 
Post Marker Legend
New Topic New posts Hot Topic Hot Topic with new posts New Poll New Poll Moved Topic Moved Topic Sticky Topic Sticky topic
Old Topic No new posts Hot Old Topic Hot Topic with no new posts Old Poll Old Poll Closed Topic Closed Topic Announcement Announcements
Theme
Change Theme
Visitor Statistics
The most visitors ever was 1743, on December 02, 2009 02:47 PM
Total Registered Members: 119463 Total Logged-in Users: 65
Total Topics: 125730 Total Anonymous Users: 32
Total Replies: 661650 Total Guests: 401
Total Posts: 787380    
Members ( View Memberlist )