def rss_warnings():
 rss = RSS()
 rss.channel.title = 'SABnzbd Warnings'
 rss.channel.description = 'Overview of warnings/errors'
 rss.channel.link = 'http://sabnzbd.org/'
 rss.channel.language = 'en'
 for warn in sabnzbd.GUIHANDLER.content():
  item = Item()
  item.title = warn
  rss.addItem(item)
 rss.channel.lastBuildDate = std_time(time.time())
 rss.channel.pubDate = rss.channel.lastBuildDate
 return rss.write()

def rss_warnings ( ) : rss = RSS ( ) rss . channel . title = 'SABnzbd Warnings' rss . channel . description = 'Overview of warnings/errors' rss . channel . link = 'http://sabnzbd.org/' rss . channel . language = 'en' for warn in sabnzbd . GUIHANDLER . content ( ) : item = Item ( ) item . title = warn rss . addItem ( item ) rss . channel . lastBuildDate = std_time ( time . time ( ) ) rss . channel . pubDate = rss . channel . lastBuildDate return rss . write ( )
return an rss feed with last warnings/errors .