Page 1 of 1

Tumblr PNG Download

Posted: September 18th, 2017, 9:37 am
by LostMyPassport
Hi all,

Running a small skin to download an image from other-wordly (a tumblr page). I point the webparser to a random page on the tumblr (i.e.. http://other-wordly.tumblr.com/random) and apply a regex to find the static url for the image. With that, I run webparser again to download. But when I do, I get the "file cannot be opened" error.

That tells me that the file isn't downloading correctly. After some troubleshooting, I'm sure it's not in the regex, since a dummy MeterString ouputs a valid url for a random tumblr image file.

So...wassup?

Code: Select all

[Rainmeter]
Update=1000
AccurateText=1
DynamicWindowSize=1

[MeasureFindImage]
Measure=Plugin
Plugin=WebParser
UpdateRate=180000
Url=http://other-wordly.tumblr.com/random
RegExp=(?siU)"> <div> <img src="(.*)"
StringIndex=1

[MeasureDownloadImage]
Measure=Plugin
Plugin-WebParser
Url=[MeasureFindImage]
StringIndex=1
Download=1

[MeterDisplayImage]
Meter=IMAGE
MeasureName=MeasureDownloadImage
W=200
PreserveAspectRatio=1

[MeterTest]
Meter=String
MeasureName=MeasureFindImage
FontSize=20

Re: Tumblr PNG Download

Posted: September 18th, 2017, 10:02 am
by mak_kawa
In [MeasureDownloadImage] section, Plugin expression is incorrect. Plugin-WebParser should be Plugin=WebParser.

Re: Tumblr PNG Download

Posted: September 18th, 2017, 10:02 am
by LostMyPassport
You know, at this point, I should stop coding so late.

I appreciate it though! :)