mspieth / rssdler

Automatically exported from code.google.com/p/rssdler
4 stars 0 forks source link

"'%%' must be followed by '%%' or '(', found: %r" % (rest,)) #63

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
Config.txt

[global]
downloadDir = /usr/local/etc/transmission/home/torrents/
workingDir = /usr/local/etc/transmission/home/.rssdler/
minSize = 0
log = 5
logFile = /usr/local/etc/transmission/home/.rssdler/rssdlerlog.txt
scanMins = 180
sleepTime = 0
runOnce = False
urllib = True
umask = 022
cookieFile = None

[BT:Yumekui]
link = http://bt.ktxp.com/rss-search-Yumekui+%E5%8D%8E%E7%9B%9F+rmvb.xml
maxSize = 0
minSize = 0
nosave = False
regextrue = None
regexfalse = None

>rssdler -dc /usr/local/etc/transmission/home/.rssdler/config.txt

What is the expected output? What do you see instead?
> rssdler -kc /usr/local/etc/transmission/home/.rssdler/config.txt
Error in sys.excepthook:
Traceback (most recent call last):
  File "/usr/local/lib/python2.6/site-packages/rssdler.py", line 1701, in setDebug
    if getConfig()['global']['debug'] and _action !='daemon' and sys.stderr.isatty():
  File "/usr/local/lib/python2.6/site-packages/rssdler.py", line 1442, in getConfig
    if not _configInstance: _configInstance = Config(filename)
  File "/usr/local/lib/python2.6/site-packages/rssdler.py", line 1488, in __init__
    self.parse()
  File "/usr/local/lib/python2.6/site-packages/rssdler.py", line 1519, in parse
    , option) )
  File "/usr/local/lib/python2.6/ConfigParser.py", line 546, in get
    return self._interpolate(section, option, value, d)
  File "/usr/local/lib/python2.6/ConfigParser.py", line 614, in _interpolate
    self._interpolate_some(option, L, rawval, section, vars, 1)
  File "/usr/local/lib/python2.6/ConfigParser.py", line 655, in _interpolate_some
    "'%%' must be followed by '%%' or '(', found: %r" % (rest,))
ConfigParser.InterpolationSyntaxError: '%' must be followed by '%' or '(', 
found: '%E5%8D%8E%E7%9B%9F+rmvb.xml'

Original exception was:
Traceback (most recent call last):
  File "/usr/local/bin/rssdler", line 13, in <module>
    rssdler._main(sys.argv)
  File "/usr/local/lib/python2.6/site-packages/rssdler.py", line 2216, in _main
    getConfig(filename=configFile, reload=True)
  File "/usr/local/lib/python2.6/site-packages/rssdler.py", line 1442, in getConfig
    if not _configInstance: _configInstance = Config(filename)
  File "/usr/local/lib/python2.6/site-packages/rssdler.py", line 1488, in __init__
    self.parse()
  File "/usr/local/lib/python2.6/site-packages/rssdler.py", line 1519, in parse
    , option) )
  File "/usr/local/lib/python2.6/ConfigParser.py", line 546, in get
    return self._interpolate(section, option, value, d)
  File "/usr/local/lib/python2.6/ConfigParser.py", line 614, in _interpolate
    self._interpolate_some(option, L, rawval, section, vars, 1)
  File "/usr/local/lib/python2.6/ConfigParser.py", line 655, in _interpolate_some
    "'%%' must be followed by '%%' or '(', found: %r" % (rest,))
ConfigParser.InterpolationSyntaxError: '%' must be followed by '%' or '(', 
found: '%E5%8D%8E%E7%9B%9F+rmvb.xml'

What version of the product are you using? On what operating system?
FreeBSD 8.1-RELEASE
py26-rssdler-0.4.2_4 

Original issue reported on code.google.com by mypretty...@gmail.com on 12 Feb 2011 at 3:43

GoogleCodeExporter commented 8 years ago
[deleted comment]
GoogleCodeExporter commented 8 years ago
please replace your link % to %%
:)  

http://bt.ktxp.com/rss-search-Yumekui+%E5%8D%8E%E7%9B%9F+rmvb.xml
>>>>>>>>>>>>>>>
http://bt.ktxp.com/rss-search-Yumekui+%%E5%%8D%%8E%%E7%%9B%%9F+rmvb.xml

Original comment by mypretty...@gmail.com on 12 Feb 2011 at 4:16