[REQUEST] RSS Reader Script Addon for Dharma? - Printable Version +- Kodi Community Forum (https://forum.kodi.tv) +-- Forum: Support (https://forum.kodi.tv/forumdisplay.php?fid=33) +--- Forum: Add-on Support (https://forum.kodi.tv/forumdisplay.php?fid=27) +---- Forum: Program Add-ons (https://forum.kodi.tv/forumdisplay.php?fid=151) +---- Thread: [REQUEST] RSS Reader Script Addon for Dharma? (/showthread.php?tid=81720) |
- pieh - 2010-12-10 smuto Wrote:2 questionsI will do remake whole parsing section. I will add it. smuto Wrote:- if i wanted more than one channel to window (Like Home Window), can u set Property?I don't really understand what do You mean. Could You write me PM with some details or example? (po polsku, bo po co się męczyć smuto Wrote:ps. it's definitely working like a charmnice fillidill Wrote:Hi grajen, you've made great progress since my last visit!Well script isn't perfect. Also keep in mind that first time You read messages XBMC need some time to download and cache image before showing it. Could You list Your RSS sources so I could check them? Could You provide me what RSS source are You using so I can check it? - ronie - 2010-12-11 issue: the script reverts to the default feed after 30 minutes. cause: the 'feed' and 'limit' options are not passed to the script here: Code: napis = 'AlarmClock(RSS_CHECK,XBMC.RunScript(script.rssclient,guiless),%d,True)' % ((next_update+60) / 60.0) - pieh - 2010-12-11 ronie Wrote:issue:thanks for bringing this issue to my attention - fillidill - 2010-12-11 grajen3 Wrote:Well script isn't perfect. Also keep in mind that first time You read messages XBMC need some time to download and cache image before showing it. Could You list Your RSS sources so I could check them? I am actually just using your default rss-feed (http://pipes.yahoo.com/pipes/pipe.run?_id=9c377c68a206d6ae8f2889db97f10084&_render=rss). I guess I must be doing something wrong. - pieh - 2010-12-12 fillidill Wrote:I am actually just using your default rss-feed (http://pipes.yahoo.com/pipes/pipe.run?_id=9c377c68a206d6ae8f2889db97f10084&_render=rss).Are You using newest version? Download it from here: https://github.com/pieh/script.rssclient. For now use it only with Confluence skin (don't have time to maintain windows for more skins). Also, You can send me screenshot and log via PM. - blacklist - 2010-12-12 Grajen - I just upgraded to the latest script (with images enable) - do I need to do anything specific to display them? They don't seem to be showing up, but I may be doing something incorrectly. NBlacklist. - pieh - 2010-12-13 blacklist Wrote:Grajen -do You have Code: if len(item.image) == 0: and images aren't working? - fillidill - 2010-12-13 It's working now! I were correct, I did something wrong. ;D - blacklist - 2010-12-15 grajen3 Wrote:do You have Ok, got it working now. Was a silly mistake on my side. I was wondering if there might be a way to push multiple feeds to the guiless version? I'm thinking having 2-3 rss feeds aggregated together and sorted by post time and date. Thanks for all the amazing work you have done with this!!! - pieh - 2010-12-15 Multiple feeds done. To add few feeds just use Code: XBMC.RunScript(script.rssclient,guiless,feed=url1,feed=url2,feed=url3,limit=15) https://github.com/pieh/script.rssclient - blacklist - 2010-12-15 Ok, one more request, because you are so damn good... http://www.celebutopia.net/forum/external.php?forumids=12 This feed returns multiple images... can you return them all to the skin? Maybe need to return an imageCount and then Image1, Image2, etc? - pieh - 2010-12-15 surely doable, i'll try to do it tomorrow afternoon - blacklist - 2010-12-15 grajen3 Wrote:surely doable, i'll try to do it tomorrow afternoon Awesome, thank you Sir! - pieh - 2010-12-17 ok, did some work: Helping script to set Properties When defining list's static content we use (more or less) Code: <onclick>SetProperty(RSS.Date,$INFO[Window.Property(RSS.3.Date)])</onclick> It won't work with multiple image really well I think so I decided to make helping script and now skinner can just use: Code: <onclick>XBMC.RunScript($INFO[Window.Property(SettingScript)],id=3)</onclick> Note: It's not fastest method, but it can help to get it started instead of writing 20ty 'onclick' or 'onfocus' attributes to each item in list's content - later I will do some utility to automaticly generate that Image caching For now it's in testing phase, to enable it You need to define additional parameter when running script: Code: XBMC.RunScript(script.rssclient,guiless,feed=url,[b]imagecaching=true[/b],limit=15) It means that script will automaticly cache images from feeds to script specific directory (special://masterprofile/thumbnails/RSS/hashed_url_of_channel/hashed_url_of_item/hashed_url_of_image - maybe i'll change it a little later) and therefore we can use MultiImageControl to present all images: Code: <control type="multiimage"> This also enables running xbmc's builtin slideshow Code: SlideShow(dir [,recursive, [not]random]) Another way to use multiple images is to use RSS.Image.1, RSS.Image.2 etc to display single images. In addition to RSS.ImageCount property it will let skinners do different layout for different amount of pictures by setting visibility condition to Code: <visible>StringCompare(Window.Property(RSS.ImageCount),X)</visible> --EDIT: preview: http://www.youtube.com/watch?v=oe9OD9goC6Q multiimage control in right top corner, 4 example images below and slideshow rss feed: http://pipes.yahoo.com/pipes/pipe.run?_id=5a24572a18610d68960eb7157888f834&_render=rss - ronie - 2010-12-19 grajen3 Wrote:ok, did some work: when using SetProperty(), it's safer to put quotes around the infolabel: Code: SetProperty(RSS.Channel,"$INFO[Window.Property(RSS.3.Channel)]") without quotes, the SetProperty() fuction doesn't work if the string returned by the infolabel contains a ',' (comma). |