(?siU).*<div class=\"listRows \">.*<div class=\"promoItem .*\">.*
<a.*href=\"(.*)\".*onclick=\"show_waiting\(\);\".*onmouseup=\"trackLink\('View Details: (.*)','ROW1_LISTROW'\)\".*<span class=\"broadcastChannel\">(.*)</span>
The problem was in that bolded part which was
<a href before. In the actual HTML, there are a ton of spaces after the "a" and before the "href" for some reason, so I added .* to skip the spaces.
It returns:
01=> /vod/content/SKYENTERTAINMENT/content/videoId/9ecec1b77543e210VgnVCM1000002c04170a________/content/default/videoDetailsPage.do
02=> Ep 8 House of Mirrors
03=> Sky1
If you are planning to click on that link and go to it, you will need to put the site info on the front of it, as it is a "relative" link.
You want to end up sending:
"
http://skyplayer.sky.com/vod/content/SKYENTERTAINMENT/content/videoId/9ecec1b77543e210VgnVCM1000002c04170a________/content/default/videoDetailsPage.do"
So you will need to append "
http://skyplayer.sky.com" to the front. This little sample seems to work:
Code: Select all
[Rainmeter]
DynamicWindowSize=1
Update=1000
[MeasureSky]
Measure=Plugin
Plugin=Plugins\WebParser.dll
URL=http://skyplayer.sky.com/vod/content/Showcase/Browse_Showcase/Just_Added/content/default/promoPage.do
RegExp="(?siU).*<div class=\"listRows \">.*<div class=\"promoItem .*\">.*<a.*href=\"(.*)\".*onclick=\"show_waiting\(\);\".*onmouseup=\"trackLink\('View Details: (.*)','ROW1_LISTROW'\)\".*<span class=\"broadcastChannel\">(.*)</span>"
[MeasureLink]
Measure=Plugin
Plugin=Plugins\WebParser.dll
URL=[MeasureSky]
StringIndex=1
[MeasureName]
Measure=Plugin
Plugin=Plugins\WebParser.dll
URL=[MeasureSky]
StringIndex=2
[MeasureStation]
Measure=Plugin
Plugin=Plugins\WebParser.dll
URL=[MeasureSky]
StringIndex=3
[MeterInfo]
Meter=String
MeasureName=MeasureName
MeasureName2=MeasureStation
X=0
Y=0
FontSize=12
FontColor=255,255,255,255
SolidColor=0,0,0,1
AntiAlias=1
Text=Show: %1 | Station: %2
LeftMouseUpAction=!Execute ["http://skyplayer.sky.com[MeasureLink]"]
P.S. You actually don't have to escape quotes " in a RegExp. These are the reserved characters for Regular Expression that need to be escaped:
[ ] \ ^ $ . | ? * + ( ) { }