Hello everyone,
I am currently working on a skin that pulls headlines from some news websites. I have made 4, they're all identical but I want them to be independently customizable. So in my UserSettings.inc file I have 8 Variables, News1Link, News1RegExp, News2Link, News2RegExp, etc. for the 4 different skins. This is working as intended.
I also have a settings skin from which people will be able to choose which website the headlines are pulled from. This is where things don't work. I can change the link no problem, but I can't seem to change the RegExp. Here is what my variables look like
Code: Select all
[Variables]
@include=#@#UserSettings.inc
CurrntSkinIndex=1
LinkJT=https://www.japantimes.co.jp/feed/topstories/
RegExpJT=(?siU)<title>(.*)</title>.*<link>(.*)</link>.*<title>(.*)</title>.*<link>(.*)</link>.*<description>.*\[CDATA\[(.*)\].*</description>.*<title>(.*)</title>.*<link>(.*)</link>.*<description>.*\[CDATA\[(.*)\].*</description>.*<title>(.*)</title>.*<link>(.*)</link>.*<description>.*\[CDATA\[(.*)\].*</description>
And this is the action that I've got in my meter :
Code: Select all
LeftMouseUpAction=[!WriteKeyValue Variables News#CurrntSkinIndex#Link "#LinkJT#" "#@#UserSettings.inc"][!WriteKeyValue Variables News#CurrntSkinIndex#RegExp "#RegExpJT#" "#@#UserSettings.inc"][!Refresh]
The second one doesn't work. It doesn't trigger an error, at least nothing that appears in the log. It just stops there, and doesn't refresh. Any idea why that is ?
thanks in advance!