Roku Developer Program

Join our online forum to talk to Roku developers and fellow channel creators. Ask questions, share tips with the community, and find helpful resources.
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
squirreltown
Roku Guru

Read RSS from feed not file?

Trying to modify the DeviantArt example in the SDK.

Have made an RSS feed from my website (art images) with PHP from mySQL DB. http://www.peterhammond.com/web/rss/. Going there in a browser renders an XML file with the proper info. If I copy the text from that page and paste into a file "rss.xml" and link to that in "mediarsstoolkit.brs" Here:

photolist=m.GetPhotoListFromFeed("http://www.peterhammond.com/web/rss/rss.xml") it works just fine.

trying to link directly to the RSS feed doesnt work :
photolist=m.GetPhotoListFromFeed("http://www.peterhammond.com/web/rss/")
photolist=m.GetPhotoListFromFeed("http://www.peterhammond.com/web/rss/index.php")

What am I missing? I thought i could link to a feed, not only a file thats sitting there already. Apologies if I am clueless about something, i really only know enough to modify others work.

thanks
Kinetics Screensavers
0 Kudos
2 REPLIES 2
squirreltown
Roku Guru

Re: Read RSS from feed not file?

Ok I have figured out how to write my RSS feed to a file rss.xml when rss/index.php is loaded, so the Roku channel can be linked to rss.xml and now displays the images fine from the PHP output.

What i still dont get is that i thought this was supposed to be automatic - the Roku channel gets the rss.xml file but in doing so it doesn't cause the rss.xml file to be updated,i still have to do that manually by loading index.php the file that creates the RSS feed and re-create the rss.xml file. So if i change image slot #23 in the mySQL DB the website pulls the new list as normal but since the rss.xml file needs to be updated by invoking index.php it wont be current until i manually do it.


Someone out there knows this, help me out please
Thanks
Kinetics Screensavers
0 Kudos
squirreltown
Roku Guru

Re: Read RSS from feed not file?

OK got it figured out, the roku wanted a certain format different from what the browser wanted so i am finally able to link the channel to */rss/ and it pulls the updated feed. Sheeesh, not knowing anything can really slow you down.

Next - how can i pause that music with the * button
Kinetics Screensavers
0 Kudos