It is currently March 28th, 2024, 11:47 am

Tumblr PNG Download

Get help with creating, editing & fixing problems with skins
Post Reply
LostMyPassport
Posts: 4
Joined: September 18th, 2017, 5:32 am

Tumblr PNG Download

Post 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
mak_kawa
Posts: 908
Joined: December 30th, 2015, 9:47 am

Re: Tumblr PNG Download

Post by mak_kawa »

In [MeasureDownloadImage] section, Plugin expression is incorrect. Plugin-WebParser should be Plugin=WebParser.
LostMyPassport
Posts: 4
Joined: September 18th, 2017, 5:32 am

Re: Tumblr PNG Download

Post by LostMyPassport »

You know, at this point, I should stop coding so late.

I appreciate it though! :)
Post Reply