config
The config module is accessible via the fmtorrent.master.aggregator module.
Attributes
a CONF
'# the config uses python syntax.. have phun :)\nimport re\n\n# Filters ... They are then associated w/ Channels, see below\nFilter_vtv = "(?P<Show>.*)\\s\\d+x\\d+\\s\\(HDTV\\-TCM\\)*"\n\n# if links found in RSS don\'t point directly to torrents, you can\n# figure out how to guess the torrent url. Here is an example:\ndef getTorrentFromPage(pageUrl):\n import re\n return re.sub(\'http\\://foo\\.com/torrent/(\\d+)\',\n r\'http://foo.com/get_torrent/\x01\', pageUrl)\n\n# Please no ?!*# or things like this in channel names\n# urls can refer to full RSS path (if you know it) .. or not :)\nChannels = { \'Alias\' : (\'http://www.mininova.org/rss.xml?sub=118\', \'1d\', [Filter_vtv,], getTorrentFromPage),\n # ...\n }\n# explanation: here we update Alias feeds every day. And we apply the VTV filter to\n# its content, because we only want VTV releases ...\n# Got the trick ? :)\n# warning: refresh rates have to respect the\n# rule (nd:mh:om) .. colon is mandatory\n\n# directory storing old feeds by channel\nCacheDir = "%(home)s/cache"\n\nEncoding = "iso8859-1"\n\n# keywords white-list -- stores a list of strings.\n# Use it when you want to filter content of RSS feeds\n# example:\n# WhiteListKeywords = [ \'foo\', \'bar\', \'python\' ]\nWhiteListKeywords = [ ]\n\n# keywords black-list -- stores a list of strings that you don\'t want to see\n# If any RSS feed item matches one of those keywords, it won\'t be showed to you\n# example:\n# BlackListKeywords = [ \'porn\', \'p0rn\', \'java\' ]\nBlackListKeywords = [ ]\n\n'
Classes
See the source for more information.