It is currently May 20th, 2024, 8:46 am

Help with RSS feeds

Get help with creating, editing & fixing problems with skins
gillepy
Posts: 3
Joined: April 11th, 2010, 4:42 pm

Help with RSS feeds

Post by gillepy »

hi, i've just started using rainmeter so im still a bit unsure on things, i've started to get my desktop looking how i want it to im just struggling with an RSS feed.

Im using the reader skin from win2019 below is the code:

Code: Select all

; ENIGMA READER
; To change the feed that this skin reads from, the site it links to, and
; the browser it opens with, edit the variables below.

[Rainmeter]
Author=Kaelri@gmail.com
AppVersion=1.0
Update=1000
DynamicWindowSize=1
W=180

;Metadata added by RainBrowser
;http://rainmeter.net/cms/Rainmeter101-EditingSkins

[Metadata]
Name=
Config=
Description=
Instructions=
Version=
Tags=
License=
Variant=
Preview=

;End of added Metadata

[Variables]
URL=http://www.tvrage.com/myweekrss.php?country=UK
Title=TV
Link=http://www.tvrage.com/
Browser=firefox.exe

update.Spd=90
Font=Trebuchet MS
Color1=255, 255, 255, 217
Color2=255, 255, 255, 160
Color3=255, 255, 255, 120
Height1=8
Height2=7
AntiAlias=1
Substitute="&":"&",""":"","&Quot;":"","<br>":"","![CDATA[":"","]]":"","...":"","<":"",">":"","/PRE>":"","PRE>":"","<":""

; ------------------------------------------------------------------------------------------------

[RSS]
Measure=Plugin
Plugin=Plugins\WebParser.dll
Url=#URL#
RegExp="(?siU)<title>(.*)<\/title>(?(?=.*<lastBuildDate>(.*)<\/lastBuildDate>))(?(?=.*<link>(.*)<\/link>.)).*<description>(.*)<\/description>(?:(?:.*<url>(.*)<\/url>)|.*).*<item(?:.*<title>(.*)<\/title>(?(?=.*<pubDate>(.*)<\/pubDate>)).*<link>(.*)<\/link>.*<description>(.*)<\/description>|.*)(?:.*<title>(.*)<\/title>(?(?=.*<pubDate>(.*)<\/pubDate>)).*<link>(.*)<\/link>.*<description>(.*)<\/description>|.*)(?:.*<title>(.*)<\/title>(?(?=.*<pubDate>(.*)<\/pubDate>)).*<link>(.*)<\/link>.*<description>(.*)<\/description>|.*)(?:.*<title>(.*)<\/title>(?(?=.*<pubDate>(.*)<\/pubDate>)).*<link>(.*)<\/link>.*<description>(.*)<\/description>|.*)(?:.*<title>(.*)<\/title>(?(?=.*<pubDate>(.*)<\/pubDate>)).*<link>(.*)<\/link>.*<description>(.*)<\/description>|.*)(?:.*<title>(.*)<\/title>(?(?=.*<pubDate>(.*)<\/pubDate>)).*<link>(.*)<\/link>.*<description>(.*)<\/description>|.*)(?:.*<title>(.*)<\/title>(?(?=.*<pubDate>(.*)<\/pubDate>)).*<link>(.*)<\/link>.*<description>(.*)<\/description>|.*)(?:.*<title>(.*)<\/title>(?(?=.*<pubDate>(.*)<\/pubDate>)).*<link>(.*)<\/link>.*<description>(.*)<\/description>|.*)(?:.*<title>(.*)<\/title>(?(?=.*<pubDate>(.*)<\/pubDate>)).*<link>(.*)<\/link>.*<description>(.*)<\/description>|.*)(?:.*<title>(.*)<\/title>(?(?=.*<pubDate>(.*)<\/pubDate>)).*<link>(.*)<\/link>.*<description>(.*)<\/description>|.*)(?:.*<title>(.*)<\/title>(?(?=.*<pubDate>(.*)<\/pubDate>)).*<link>(.*)<\/link>.*<description>(.*)<\/description>|.*)(?:.*<title>(.*)<\/title>(?(?=.*<pubDate>(.*)<\/pubDate>)).*<link>(.*)<\/link>.*<description>(.*)<\/description>|.*)"
UpdateRate=#update.Spd#
StringIndex=1

[MeasureRSS1]
Measure=Plugin
Plugin=Plugins\WebParser.dll
Url=[RSS]
StringIndex=6
Substitute=#Substitute#

[MeasureLink1]
Measure=Plugin
Plugin=Plugins\WebParser.dll
Url=[RSS]
StringIndex=8
Substitute=#Substitute#

[MeasureRSS2]
Measure=Plugin
Plugin=Plugins\WebParser.dll
Url=[RSS]
StringIndex=10
Substitute=#Substitute#

[MeasureRSS3]
Measure=Plugin
Plugin=Plugins\WebParser.dll
Url=[RSS]
StringIndex=14
Substitute=#Substitute#

[MeasureRSS4]
Measure=Plugin
Plugin=Plugins\WebParser.dll
Url=[RSS]
StringIndex=18
Substitute=#Substitute#

[MeasureRSS5]
Measure=Plugin
Plugin=Plugins\WebParser.dll
Url=[RSS]
StringIndex=22
Substitute=#Substitute#

[MeasureRSS6]
Measure=Plugin
Plugin=Plugins\WebParser.dll
Url=[RSS]
StringIndex=26
Substitute=#Substitute#

[MeasureRSS7]
Measure=Plugin
Plugin=Plugins\WebParser.dll
Url=[RSS]
StringIndex=30
Substitute=#Substitute#

[MeasureRSS8]
Measure=Plugin
Plugin=Plugins\WebParser.dll
Url=[RSS]
StringIndex=34
Substitute=#Substitute#

[MeasureRSS9]
Measure=Plugin
Plugin=Plugins\WebParser.dll
Url=[RSS]
StringIndex=38
Substitute=#Substitute#

[MeasureRSS10]
Measure=Plugin
Plugin=Plugins\WebParser.dll
Url=[RSS]
StringIndex=42
Substitute=#Substitute#

; ------------------------------------------------------------------------------------------------

[Border]
Meter=IMAGE
ImageName=../Separator.png
X=0
Y=0

[Title]
Meter=STRING
MeasureName=RSS
X=2
Y=10
StringStyle=BOLD
FontColor=#Color1#
FontSize=#Height1#
FontFace=#Font#
AntiAlias=1
LeftMouseUpAction=!execute ["#Browser#" "#Link#"]
Text="#Title#"

;[Icon]
;Meter=IMAGE
;ImageName=feediconverylarge.png
;X=155
;Y=5
;W=20
;H=20
;AntiAlias=1
;LeftMouseupAction=!Execute ["#Browser#" "#Link#"]

[Feed 1]
Meter=STRING
MeasureName=MeasureRSS1
MeasureName2=MeasureLink1
X=2
Y=27
H=10
W=180
ClipString=1
StringStyle=NORMAL
FontColor=#Color2#
FontSize=#Height2#
FontFace=#Font#
AntiAlias=1

[Feed 2]
Meter=STRING
MeasureName=MeasureRSS2
X=2
Y=15r
H=10
W=180
ClipString=1
StringStyle=NORMAL
FontColor=#Color3#
FontSize=#Height2#
FontFace=#Font#
AntiAlias=1

[Feed 3]
Meter=STRING
MeasureName=MeasureRSS3
X=2
Y=15r
H=10
W=180
ClipString=1
StringStyle=NORMAL
FontColor=#Color2#
FontSize=#Height2#
FontFace=#Font#
AntiAlias=1

[Feed 4]
Meter=STRING
MeasureName=MeasureRSS4
X=2
Y=15r
H=10
W=180
ClipString=1
StringStyle=NORMAL
FontColor=#Color3#
FontSize=#Height2#
FontFace=#Font#
AntiAlias=1

[Feed 5]
Meter=STRING
MeasureName=MeasureRSS5
X=2
Y=15r
H=10
W=180
ClipString=1
StringStyle=NORMAL
FontColor=#Color2#
FontSize=#Height2#
FontFace=#Font#
AntiAlias=1

[Feed 6]
Meter=STRING
MeasureName=MeasureRSS6
X=2
Y=15r
H=10
W=180
ClipString=1
StringStyle=NORMAL
FontColor=#Color3#
FontSize=#Height2#
FontFace=#Font#
AntiAlias=1

[Feed 7]
Meter=STRING
MeasureName=MeasureRSS7
X=2
Y=15r
H=10
W=180
ClipString=1
StringStyle=NORMAL
FontColor=#Color2#
FontSize=#Height2#
FontFace=#Font#
AntiAlias=1

[Feed 8]
Meter=STRING
MeasureName=MeasureRSS8
X=2
Y=15r
H=10
W=180
ClipString=1
StringStyle=NORMAL
FontColor=#Color3#
FontSize=#Height2#
FontFace=#Font#
AntiAlias=1

[Feed 9]
Meter=STRING
MeasureName=MeasureRSS9
X=2
Y=15r
H=10
W=180
ClipString=1
StringStyle=NORMAL
FontColor=#Color2#
FontSize=#Height2#
FontFace=#Font#
AntiAlias=1

[Feed 10]
Meter=STRING
MeasureName=MeasureRSS10
X=2
Y=15r
H=10
W=180
ClipString=1
StringStyle=NORMAL
FontColor=#Color3#
FontSize=#Height2#
FontFace=#Font#
AntiAlias=1
The feed is from tvrage and i just want to see what up and coming on tv, however its not displaying the titles of all the shows its just showing the date and time.

Can anyone help?

EDIT: im on windows 7 pro 64bit and using rainmeter 1.2
User avatar
Dave_W
Posts: 37
Joined: April 20th, 2009, 10:58 am

Re: Help with RSS feeds

Post by Dave_W »

I'm using a tool called RainRegExp, btw, coded by our very own JSMorley - it's awesome, you can plug in the RSS feed to see how it's set up, and plug in your RegExp statement to see how that statement parses the feed. Can't recommend it highly enough.

Looking at the RSS feed, the issue is that they use the <title> tags for the date/times as well as for the names of the programmes. The RegExp statement isn't set up to work that way, so you're missing a lot of programme titles (although if I'm reading this right, you are getting some).

It's perfectly fixable, but it's some work so before I do it - do you want the dates/times to show up as well?


...incidentally, quite a bit of that tvrage feed is wrong for the UK. I just went off on a wild goose chase because it told me they were showing new episodes of the Big Bang Theory on E4. Also, don't you find it odd that it lists different channels at different times? Or is that a good thing?

Far be it from me to suggest that Rainmeter isn't the answer to everything, because it's awesome, but have you considered using something like this instead?
User avatar
Benjamin Linus
Posts: 163
Joined: July 12th, 2009, 4:05 pm
Location: The Island

Re: Help with RSS feeds

Post by Benjamin Linus »

Hi Gillepy,
I also looked at TVrage's feeds but found them not that good.
You may wanna look at the following sites, simple registration and custom rss feeds.
http://www.episodeworld.com or
http://www.myepisodes.com

Good luck :)
Image