Cant get image from RSS

Hello
I have 1.7.0 cms and cant get image from this rss feed http://www.delfi.lv/rss3.php image attribute delfi:largeImage
Tried
[delfi:largeImage|image]
[delfi:largeImage|image|http://www.delfi.lv/rss3.php]
Tried on 1.7.4 cms

[Title] and [Description] working perfect cant get image:(

I’m not certain, but I don’t think the parser that we use is able to grab those images from feed constructed like that.

Do you have any control over how the feed is formatted or is 3rd party feed?

Hi Peter
Thanks for help
Its 3rd party feed but I could ask them to make necessary changes.
That rss with image should be?

Ideal media rss format would look like this https://ceu.xibo.cloud/mediarss/feed.xml

That will show the images with the default templates in Xibo (the ones with Image overlaid in name)
ie with [Link|image] on the Appearance tab.

ok, I will try to arrange rss feed design like you suggest
have a nice evening

Hello Peter
They made new feed design http://www.delfi.lv/rss/zib_tv.php and now I can get an image with [Link|image]
But is it possible to resize images?
BR

Yes, with .image img in the CSS ie under ‘optional Stylesheet’ on the Ticker appearance tab

for example:
.image img { width:100%;}

The templates provided (image overlaid with the title / image overlaid with the feed content on the left) have that already added as well.

tried to add .image img { width:100%;} but its not worked
tried in (image overlaid with the title) there image was 100% width
then I add <div class="image">[Link|image]</div> to source code and that worked

Good morning Peter
One more question - RSS feed owner would like to display comment count at the end of [Title] something like (47) what would be the best way to do this maybe namespace could be used?
Have a nice day

You should be able to get that with Tag|Namespace

in the way it is currently implemented, ie I believe the comment count is in a tag called ‘tag’,

<item>
<title>
Riskanto klientu izmēšana no Latvijas nerezidentu bankām: kas paveikts
</title>
<description>
Pēdējos pāris gados paveiktais, lai mazinātu riskantus un aizdomīgus darījumus Latvijas bankās, kuru bizness vērsts uz ārvalstu klientu apkalpošanu, izrādījies nepietiekams. Pēc pēdējā mēneša laikā paustajiem ASV brīdinājumiem Latvijai mūsu valsts amatpersonas secinājušas, ka Krievijas un citu NVS valstu klientu apkalpošana Latvijas bankās jāsašaurina daudz straujākos tempos un riskanto ārvalstu klientu naudas apjomiem bankās ātriem soļiem jāsamazinās. Tāpēc bankām jāveido citādi biznesa modeļi un jāmeklē jaunas biznesa nišas vai arī jāliek punkts savam biznesam.
</description>
<enclosure url="https://g3.delphi.lv/images/pix/734x455/wGu24r6g0O4/caulas-uznemumi-atmazgasana-2-49843287.jpg"/>
<tag>59</tag>
</item>

you can get the data from it with:

[tag|http://www.delfi.lv/rss_all/]

tried but count did not appear maybe wrong in code

[Link|image]
 

[Title]

[tag|http://www.delfi.lv/rss_all/]

 
 

[Description]

Hello Peter
I tried to add this feed on 1.8.7 Xibo Spring Signage hosted CMS now I can get comment count but cant get image, here my code

[Link|image]

[Title]([tag|http://www.delfi.lv/rss_all/])

 

[Description]

It could be because your enclosure tag does not have the type specified, perhaps the parser in 1.8 series does not like that.

Would it be possible for you to add the images similar to mentioned earlier https://ceu.xibo.cloud/mediarss/feed.xml

ie each image would have the url and type specified:
<enclosure url="http://ceu.xibo.co.uk/mediarss/image2.jpg" type="image/jpeg"/>

1 Like

hurray they changed the feed and now we can get the image

1 Like