• 1
  • 3
  • 4
  • 5(current)
  • 6
  • 7
  • 9
[REQUEST] RSS Reader Script Addon for Dharma?
#61
smuto Wrote:2 questions
- can u add 'media:thumbnail'? - maybe something like this
PHP Code:
item.image itemXML.getElementsByTagName('media:thumbnail')[0].attributes['url'].nodeValue 
I 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?

& one extra for set id

- is possible to give id instead of specify source, something like this
XBMC.RunScript(script.rssclient,guiless,feed=id="1",limit=15)

smuto
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ćWink

smuto Wrote:ps. it's definitely working like a charm

Image

my edits of confluence skin
Home.xml
IncludesHomeRecentlyAdded.xml/
nice Smile

fillidill Wrote:Hi grajen, you've made great progress since my last visit!

I've been playing around with the help of your documentation and everything works as it should for me except for the image thumb.

I can't seem to get it to work, nothing shows at all. I use Dharma RC1 if that is a problem. Could you please help me figure out what I'm doing wrong?
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?
Reply
#62
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)
Do not PM or e-mail Team-Kodi members directly asking for support.
Always read the Forum rules, Kodi online-manual, FAQ, Help and Search the forum before posting.
Reply
#63
ronie Wrote: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)
thanks for bringing this issue to my attention
Reply
#64
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?

Could You provide me what RSS source are You using so I can check it?

I am actually just using your default rss-feed (http://pipes.yahoo.com/pipes/pipe.run?_i...render=rss).

I guess I must be doing something wrong. Huh
Reply
#65
fillidill Wrote:I am actually just using your default rss-feed (http://pipes.yahoo.com/pipes/pipe.run?_i...render=rss).

I guess I must be doing something wrong. Huh
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.
Reply
#66
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.
Reply
#67
blacklist Wrote: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.
do You have
Code:
if len(item.image) == 0:
                    self.ReadIMG(item, item.description)
at line 862

and images aren't working?
Reply
#68
It's working now! I were correct, I did something wrong. ;D
Reply
#69
grajen3 Wrote:do You have
Code:
if len(item.image) == 0:
                    self.ReadIMG(item, item.description)
at line 862

and images aren't working?

Ok, got it working now. Was a silly mistake on my side. Tongue

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!!!
Reply
#70
Multiple feeds done. To add few feeds just use
Code:
XBMC.RunScript(script.rssclient,guiless,feed=url1,feed=url2,feed=url3,limit=15)
By default it sort items by date, later i'll add customizable parameter to select criteria for sorting.

https://github.com/pieh/script.rssclient
Reply
#71
Ok, one more request, because you are so damn good... Tongue

http://www.celebutopia.net/forum/externa...orumids=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?
Reply
#72
surely doable, i'll try to do it tomorrow afternoon
Reply
#73
grajen3 Wrote:surely doable, i'll try to do it tomorrow afternoon

Awesome, thank you Sir!
Reply
#74
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>
<onclick>SetProperty(RSS.Channel,$INFO[Window.Property(RSS.3.Channel)])</onclick>
<onclick>SetProperty(RSS.Media,$INFO[Window.Property(RSS.3.Media)])</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>
It will automaticly assign all properties RSS.id.Property to RSS.Property

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 Tongue

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">
      <posx>1040</posx>
      <posy>50</posy>
      <width>200</width>
      <height>310</height>
      <visible>true</visible>
      <imagepath>$INFO[Window.Property([b]RSS.MultiImagePath[/b])]</imagepath>
      <timeperimage>2000</timeperimage>
      <fadetime>1000</fadetime>
      <pauseatend>5000</pauseatend>
      <randomize>true</randomize>
      <loop>yes</loop>
      <aspectratio scalediffuse="false" align="left" aligny="top">keep</aspectratio>
      <visible>IntegerGreaterThan(Window.Property(RSS.ImageCount),1)</visible>
</control>
I had some initial tests on this and it seems to be working (we must remember that caching images take some time so it's possible that if You will display MultiImageControl before any of items are cached then simply nothing will be there - You will have to redisplay MultiImageControl)

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>

and/or

<visible>IntegerGreaterThan(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?_i...render=rss
Reply
#75
grajen3 Wrote: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>
<onclick>SetProperty(RSS.Channel,$INFO[Window.Property(RSS.3.Channel)])</onclick>
<onclick>SetProperty(RSS.Media,$INFO[Window.Property(RSS.3.Media)])</onclick>

when using SetProperty(), it's safer to put quotes around the infolabel:
Code:
SetProperty(RSS.Channel,&quot;$INFO[Window.Property(RSS.3.Channel)]&quot;)

without quotes, the SetProperty() fuction doesn't work if the string returned by the infolabel contains a ',' (comma).
Do not PM or e-mail Team-Kodi members directly asking for support.
Always read the Forum rules, Kodi online-manual, FAQ, Help and Search the forum before posting.
Reply
  • 1
  • 3
  • 4
  • 5(current)
  • 6
  • 7
  • 9

Logout Mark Read Team Forum Stats Members Help
[REQUEST] RSS Reader Script Addon for Dharma?1