jabba_29 Wrote:Any ideas?
Thanks in advance..
J
Can we see your RssFeeds.xml file?
MDPauley
Senior Member Posts: 264 Joined: Mar 2004 Reputation: 0 Location: Centreville, Va |
2009-10-19 15:07
Post: #41
jabba_29 Wrote:Any ideas? Can we see your RssFeeds.xml file? XBMC 9.11 Ubuntu 9.10 Acer Aspire Revo AR1600-U910H Sony Blu-ray Remote for PlayStation 3 HP MediaSmart EX490 |
| find quote |
jabba_29
Member+ Joined: Oct 2009 Reputation: 2 Location: Finland |
2009-10-19 16:33
Post: #42
Code: <?xml version="1.0" encoding="UTF-8" standalone="yes"?>The commented out feed is a php script that opens the rss.asp with curl. Again, these work on my PC, but not on my XBMC. I am using MiniMeedia skin for what it's worth. |
| find quote |
craigey1
Junior Member Posts: 40 Joined: Aug 2008 Reputation: 0 |
2009-10-19 18:05
Post: #43
jabba_29 Wrote:I have used the code above (well modified a bit, but started with the original) Can you post your modified code? I had problems on my xbox after modifying the code too much. |
| find quote |
jabba_29
Member+ Joined: Oct 2009 Reputation: 2 Location: Finland |
2009-10-19 18:32
Post: #44
Code: <?xml version="1.0" encoding="utf-8"?>and I have taken out <description> but this displays in readers on my PC no problems. |
| find quote |
craigey1
Junior Member Posts: 40 Joined: Aug 2008 Reputation: 0 |
2009-10-19 21:31
Post: #45
I had the same issue when I removed the description. I found the description slowed down the script, so removed it & found that although I could still see the feed in IE. The xbox didn't display anything after the Newly added shows.
All I can suggest is adding the description back in & see if that works again. Perhaps you could just add a string such as "a" in the description tags, rather then grabing the data in the DB. |
| find quote |
jabba_29
Member+ Joined: Oct 2009 Reputation: 2 Location: Finland |
2009-10-20 11:45
Post: #46
Just to let you know the outcome. I have got this fixed - sort of.
I think that this was something to do with 'bom' perhaps and unwanted characters being saved when I saved the copy/paste for the first time. The final code that I have on my XBMC is as follows, modified for my needs. Note that this still only works remotely from another PC. rss.asp [HTML]<?xml version="1.0" encoding="utf-8"?> <rss version="2.0" xml:base="http://localhost:8080/" xmlns c="http://purl.org/dc/elements/1.1/"><channel> <title>Recently Added TV Shows</title> <link>http://localhost:8080/rss.asp</link> <description>Newly added shows</description> <language>en</language> <% var setHeader; var Response; var resetHeader; setHeader = xbmcAPI("setresponseformat(webheader;false;webfooter;false;opentag;<tag>;closetag;</tag>;openRecord;<item>;closeRecord;</item>;openField;\n;closeField;\n;closefinaltag;false)"); Response = xbmcAPI("QueryVideoDatabase(SELECT '\n<title>',strTitle,' - \"', C00,'\"</title>\n<description>New episode</description>\n' FROM episodeview ORDER BY idEpisode DESC Limit 6)"); write(Response); resetHeader = xbmcAPI("SetResponseFormat()"); %> </channel> </rss>[/HTML] To get this to work, I then open the file with php on my PC's server with curl and strip out most things and format to compliant RSS again. Thought I would post it for prosperity, hope it helps someone in the future: rss.php PHP Code: <?php
|
| find quote |
MDPauley
Senior Member Posts: 264 Joined: Mar 2004 Reputation: 0 Location: Centreville, Va |
2009-10-20 13:47
Post: #47
jabba_29 Wrote:rss.php If you want to use php to create the feed there are much easier ways to do it. 1) Have php access the .db file directly 2) curl the httpapi directly from php (the main way create my feed). I have sample code for the second option somewhere, I'll see if I can dig it up and share it... XBMC 9.11 Ubuntu 9.10 Acer Aspire Revo AR1600-U910H Sony Blu-ray Remote for PlayStation 3 HP MediaSmart EX490 |
| find quote |
jabba_29
Member+ Joined: Oct 2009 Reputation: 2 Location: Finland |
2009-10-20 15:12
Post: #48
MPauley73 Wrote:If you want to use php to create the feed there are much easier ways to do it.That would be great ... although this method will do for the time being... |
| find quote |
>>X<<
Alaska Group Joined: Jun 2009 Location: On a farm trying to catch a fox |
2010-01-20 22:30
Post: #49
I installed this today and had some problems basically only "kizer's" scripts worked which were minus movie year adding year the same as other scripts resulted in nothing again not sure if this is a problem with later builds or just windows who knows
Anyway had a look in my db with SQLite browser just to better understand things and now have a working script with what I want eg : movie (Year) and TVShowTitle (Season X - Episode X), just thought I'd add to the mix Assumes port 80 is being used RssFeeds.xml Code: <?xml version="1.0" encoding="UTF-8" standalone="yes"?>movies.asp Code: <?xml version="1.0" encoding="utf-8"?>tv.asp Code: <?xml version="1.0" encoding="utf-8"?>
(This post was last modified: 2010-01-20 22:34 by >>X<<.)
|
| find quote |