Visit Our Home Page
 Explored,Designed,Delivered.sm
Welcome, Guest. Please Login or Register (Password Reminder)


Creativyst Forums 
Support & Discussion 
Register Help Search Login  
   
   Creativyst Forums-TOP
   Our Web Packages (scripts, etc)
   JSMFeed Error when calling from Billboard.com
(Moderator: admin)
 Author
Topic: JSMFeed Error when calling from Billboard.com       [Link=226]
Reply Please log in first.
ALJCS
New Member


Posts: 1





Gender:
     
    JSMFeed Error when calling from Billboard.com   (Date posted: 02/23/10 at 13:28:32) Quote Modify Delete

When I run JSMFeed to call Music charts from Billboard.com, my created files are broken. When I look at the file in vim, I see that around line 340 my page has the following code.....

with( countryCharts ) {
/* Meta values
*/
MetaKeys[0] = "MetaTitle";
MetaVals[0] = "Billboard Country Songs Chart";
MetaKeys[1] = "MetaLink";
MetaVals[1] = "http://www.billboard.com/";
MetaKeys[2] = "MetaLinkTitle";
MetaVals[2] = "<A HREF=\"http://www.billboard.com/\" CLASS=\"JSMsg\">Billboard Country Songs Chart</A>";
MetaKeys[3] = "MetaDesc";
MetaVals[3] = "<?xml version=\"1.0\" encoding=\"UTF-8\"?>^M\n<rss version=\"2.0\">^M\n <channel>^M\n <title>Billboard Country Songs Chart</title>^M\n <link>http://www.billboard.com/</link>^M\n <description />^M\n ";

I edit the file removing the ^M links and bringing the code back onto one line and everything works perfectly until the next time I run my script again via cron to update the feed.

Any help with this would be greatly appreciated.

   E-Mail   Ip: Logged
JRepici
Administrator


Posts: 328





Gender:
      JohnRHere2
    Re: JSMFeed Error when calling from Billboard.com   (Date posted: 02/26/10 at 12:29:21) Quote Modify Delete

ALJCS,

Yeah, it's a bug.

It's tripping over the empty <description /> tag.

It is expecting old-school block (<description>...</description>), or no description tag at all. I don't have any ideas for a work-around at this time. While I haven't looked at this stuff for a long time, I would expect that many of the true document standards have probably overcome the need for jsmfeed by now. Have you searched for a pure dynamic html solution?

Sorry again about the bug. This script has been out there for years, and nobody ever found that one. Again though, the Billboard feed is not to blame, it is valid RSS 2.0. It's just a bug in the JSMFeed script that has been hiding all this time.

-djr

P.S. If I think of a work-around, I'll post again here.

   E-Mail   Ip: Logged
Reply Please log in first.
Pages: 1
Jump to:

YaBB Board c 2000
YaBB Programming Team
 



















© Copyright 2002 - 2008 Creativyst, Inc.