It is currently September 29th, 2023, 12:58 pm
Reader
-
- Rainmeter Sage
- Posts: 889
- Joined: September 6th, 2011, 6:34 am
Re: Reader
I just noticed, when parsing the rainmeter forum rss feed, the script does not strip the cdata tags in the item title.
Have more fun creating skins with Sublime Text 2 and the Rainmeter Package!
-
- Developer
- Posts: 1721
- Joined: July 25th, 2009, 4:47 am
Re: Reader
You're right, the script itself doesn't do that. I've just been using Substitute="<![CDATA[":"","]]>":"" on the WebParser. I'll move it to the script, though; it's a common enough tag that adding the Substitute by hand would be annoying.MerlinTheRed wrote:I just noticed, when parsing the rainmeter forum rss feed, the script does not strip the cdata tags in the item title.
Re: Reader
just an idea:
how about adding
to avoid line breaks. some feeds have them, for example:
http://www.shanghaidaily.com/rss/latest/
how about adding
Code: Select all
Substitute="#CRLF#":" "
http://www.shanghaidaily.com/rss/latest/
-
- Developer
- Posts: 1721
- Joined: July 25th, 2009, 4:47 am
Re: Reader
Added on the script side. Thanks for pointing this out. :)Alex Becherer wrote:just an idea:
how about addingto avoid line breaks. some feeds have them, for example:Code: Select all
Substitute="#CRLF#":" "
http://www.shanghaidaily.com/rss/latest/
Re: Reader
another thing to add to WebParserSubstitute (to avoid the display of question marks for non-breaking space with some fonts):
important: the ini has to be Unicode encoded.
else there will be Substitute="?":""
please see this thread for more info: http://rainmeter.net/forum/viewtopic.php?f=5&t=13639
Code: Select all
Substitute="":""
else there will be Substitute="?":""
please see this thread for more info: http://rainmeter.net/forum/viewtopic.php?f=5&t=13639
-
- Developer
- Posts: 1721
- Joined: July 25th, 2009, 4:47 am
Re: Reader
I replied to the aforementioned thread. Your solution works for now, but I'm going to try and get this addressed from the Lua side of things.
Re: Reader
the script just stopped working for me with the new Rainmeter version: 2.4 beta (r1673)
i get this error:
i get this error:
other lua scripts work.Script: File not valid in [MeasureReader]
-
- Developer
- Posts: 1721
- Joined: July 25th, 2009, 4:47 am
Re: Reader
What is the complete path of the script file in this instance? (I suspect the issue is related to this.)Alex Becherer wrote:the script just stopped working for me with the new Rainmeter version: 2.4 beta (r1673)
i get this error: other lua scripts work.
Re: Reader
Code: Select all
[MeasureReader]
Measure=Script
ScriptFile="#@#includes\Reader.lua"
MeasureName=MeasureFeed|MeasureFeed2|MeasureFeed3
MinItems=5
MaxItems=5
Code: Select all
C:\Users\Alex\Documents\Rainmeter\Skins\Sphynx\@RESOURCES\Includes\Reader.lua
using the full path in the section does return the same error.
btw: the example EveReader skin in post number 1 of this thread returns the same error.
-
- Developer
- Posts: 1721
- Joined: July 25th, 2009, 4:47 am
Re: Reader
This was indeed a bug in today's beta, and has now been fixed. Grab the updated beta from the homepage. Sorry about that; thanks for reporting. :)