Error 403 from Google Calendar? Upgrade to the new Google Calendar support. See here for details. close
Welcome, Guest
Please Login or Register.    Lost Password?

Minor improvement to RSS addon, Part 2
(1 viewing) (1) Guest
Go to bottomPage: 1
TOPIC: Minor improvement to RSS addon, Part 2
#15849
Minor improvement to RSS addon, Part 2 3 Years, 4 Months ago  
rainy,

i am really sorry to do this, but i completely forgot that i had some more code to give to you for the rss.lua file. hopefully you can just copy and paste what i have. you can blame slashdot for most of these fixes.

just add the following to the
-- Clean the data
s = string.gsub(s, "&(.-);", ... part of the rss.lua file.

Code:


      elseif (str == "tilde") then return "~"
      elseif (str == "sbquo") then return ""
      elseif (str == "dbquo") then return ""
      elseif (str == "dagger") then return ""
      elseif (str == "Dagger") then return ""
      elseif (str == "lsaquo") then return ""
      elseif (str == "lsquo") then return ""
      elseif (str == "rsquo") then return ""
      elseif (str == "ldquo") then return ""
      elseif (str == "rdquo") then return ""
      elseif (str == "ndash") then return ""
      elseif (str == "mdash") then return ""
      elseif (str == "trade") then return ""
      elseif (str == "rsaquo") then return ""
      elseif (str == "oline") then return "‾"
      elseif (str == "spades") then return "♠"
      elseif (str == "clubs") then return "♣"
      elseif (str == "diams") then return "♦"
      elseif (str == "hearts") then return "♥"
      elseif (str == "larr") then return "←"
      elseif (str == "rarr") then return "→"
      elseif (str == "uarr") then return "↑"
      elseif (str == "darr") then return "↓"



thanks again. hopefully that will be the last of it.
bugreporter
Senior Boarder
Posts: 58
graphgraph
User Offline Click here to see the profile of this user
The administrator has disabled public write access.
Rainlendar Pro v2.13 b139 64 bit
Pro (paid/registered user)
Windows 8.1 With Update x64
 
#15850
Re:Minor improvement to RSS addon, Part 2 3 Years, 4 Months ago  
hmmm... although i put the actual characters into the code there, it doesn't appear that your forum supports the last 8 characters. go here HTML Codes to get them. they are the eight at the bottom. i tried to make sure to include everything you didn't already have that had a 'friendly' code.
bugreporter
Senior Boarder
Posts: 58
graphgraph
User Offline Click here to see the profile of this user
Last Edit: 2011/08/19 22:27 By bugreporter.
The administrator has disabled public write access.
Rainlendar Pro v2.13 b139 64 bit
Pro (paid/registered user)
Windows 8.1 With Update x64
 
#15851
Re:Minor improvement to RSS addon, Part 2 3 Years, 4 Months ago  
not sure why but the mdash doesn't appear to be working. there is a slashdot.org article (from the feed slashdot feed) on Friday, August 19, 2011 7:54 PM that continues to display the — after i added the change in my rss.lua. no clue what is going on... maybe the widget itself doesn't like to display that kind of dash?
bugreporter
Senior Boarder
Posts: 58
graphgraph
User Offline Click here to see the profile of this user
The administrator has disabled public write access.
Rainlendar Pro v2.13 b139 64 bit
Pro (paid/registered user)
Windows 8.1 With Update x64
 
#15852
Re:Minor improvement to RSS addon, Part 2 3 Years, 4 Months ago  
The slashdot feed is encoded twice which is the reason some of the coded characters are not shown. I did some changes to the script so it should work better now.
Rainy
Moderator
Posts: 6092
graph
User Offline Click here to see the profile of this user
The administrator has disabled public write access.
 
Go to topPage: 1
get the latest posts directly to your desktop