It is currently April 12th, 2021, 4:29 am

Rainmeter crashing

Get help with installing and using Rainmeter.
tixucipu
Posts: 1
Joined: March 3rd, 2021, 7:38 am

Rainmeter crashing

Post by tixucipu »

Hey guys. I recently made a skin that fetches lyrics from musixmatch with webparser and displays them on the desktop. The only problem is, when I switch songs on Spotify BEFORE the lyrics for the previous song are loaded, Rainmeter crashes. Does anyone know if I can change the code to fix that? Here it is:

Code: Select all

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

[MeasureGetLyrics]
Measure=Plugin
Plugin=WebParser
URL=https://www.musixmatch.com/lyrics/[&MeasureArtist]/[&MeasureTrack]
RegExp=(?siU).*lyrics-body">(.*)</span>
DynamicVariables=1

[MeasureLyrics]
Measure=Plugin
Plugin=WebParser
URL=[MeasureGetLyrics]
StringIndex=1

[MeasureTrack]
Measure=Plugin
Plugin=SpotifyPlugin.dll
Type=TrackName
Substitute="":""," ":"-"
OnChangeAction=[!CommandMeasure MeasureGetLyrics Update]

[MeasureArtist]
Measure=Plugin
Plugin=SpotifyPlugin.dll
Type=ArtistName
Substitute="":""," ":"-"

[MeterText]
Meter=String
MeasureName=MeasureLyrics
FontFace=Montserrat
FontSize=11
ClipString=2
ClipstringH=1000
ClipStringW=1100
AntiAlias=1
StringEffect=BORDER
FontColor=255,255,255,255
nek
Posts: 39
Joined: November 3rd, 2019, 12:00 am

Re: Rainmeter crashing

Post by nek »

tixucipu wrote: March 3rd, 2021, 7:49 am
You can try this:
replace Substitute="":""," ":"-" to Substitute=" ":"-" in the [MeasureTrack] and [MeasureArtist]

I did same things (Rainmeter.exe to crash) before.
> High CPU usage by my typo - Rainmeter Forum
> Substitute - Rainmeter Docs