zuloociti.blogg.se

Rainmeter feed reader
Rainmeter feed reader









rainmeter feed reader

Local Timestamp = SELF:GetOption ('Timestamp', '%I.%M %p on %d %B %Y') Local MaxShowItems = SELF:GetNumberOption('MaxShowItems', nil) Local MinShowItems = SELF:GetNumberOption('MinShowItems', nil) Local CombineFeeds = SELF:GetNumberOption('CombineFeeds', 0) Items: %d (%d new, %d unread).'):format(f, Feed.MeasureName, Feed.Title, Feed.Type, #Feed, Feed.New, Feed.Unread)) Item.Unread = (InputTime - Item.Pull < LimitUnread) and Item.Unread or 0 Item.New = (InputTime - Item.Pull < LimitNew) and Item.New or 0 LIMIT NEW/UNREAD STATES AND RECALCULATE TOTAL content has not changed, then the error is still present, If the previous refresh encountered an error, and the marks the old item as a duplicate for deletion.Įlseif (MaxKeepItems = 1) and (#Feed > MaxKeepItems) then as well as the publication and event dates (if expected). preexisting item, it keeps the old unread state and retrieval date, If it recognizes one of the new items as matching a and checks it against each item that has been discovered in the live This process scans each item that already exists in the feed table, Item.Event, Item.AllDay = IdentifyDate(Item.Event, Type.ParseEvent) Item.Date = IdentifyDate(Item.Date, Type.ParseDate) If not Item.Link then Item.Link = Feed.Link end Item.ID = IdentifyTag(RawItem, Type.ItemID) or Item.Link or Item.Title or Item.Desc or Item.Date or Item.Event Item.Event = IdentifyTag(RawItem, Type.ItemEvent) Item.Date = IdentifyTag(RawItem, Type.ItemDate) Item.Desc = IdentifyTag(RawItem, Type.ItemDesc) Item.Link = IdentifyTag(RawItem, Type.ItemLink) %s'):format(f, Feed.MeasureName, ))įeed.Title = IdentifyTag(Feed.Raw, ) SendFeedback(('Error parsing #%d (from %s).

If (not Feed.Raw) or (Feed.Raw = '') thenĭescription = 'Waiting for data from WebParser.',įeed.Raw = Feed.Raw:gsub('', EncodeCharacterReference)ĭescription = 'Could not identify a valid feed format.',

Local LimitUnread = SELF:GetNumberOption('LimitUnread', 0) * 60 Local LimitNew = SELF:GetNumberOption('LimitNew', 5) * 60 Local MaxKeepItems = SELF:GetNumberOption('MaxKeepItems', 0) Local KeepOldItems = SELF:GetNumberOption('KeepOldItems', 0) (once per minute) unless explicitly set.

#RAINMETER FEED READER UPDATE#

script, it defaults to an update divider of 60 Since frequent updating is not necessary with this SKIN:Bang('!SetOption', Script, 'UpdateDivider', 60) Local UpdateDivider = SELF:GetNumberOption('UpdateDivider') Local AllMeasureNames = SELF:GetOption('MeasureName', '')įor MeasureName in AllMeasureNames:gmatch('+') do feed number within a specific function. Lower-case "f" refers to the local "working" Capital "F" always refers to the global "real" feed debug messages from the current session.į = F or tonumber(SKIN:GetVariable('CurrentFeed', 1)) "Feedback" is a chronology of success, error and one or more feeds, sorted by user preference. "Display" is a dynamic table containing items from "Feeds" is the master database of all feeds' items An RSS/Atom feed reader utility for Rainmeter desktop widgets.











Rainmeter feed reader