manyixu / rssdler

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

error: unbalanced parenthesis #64

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
I am using rssdler (rssdler-0.4.2.tar.gz) on a Debian i686.
I am trying to use it with thebox.bz torrent site.
I have set it up with Netscape cookies and it connects and downloads the latest 
RSS stream without problems.
But each time it matches I get this error:

######
CRITICAL 2082 Unexpected Error: Traceback (most recent call last):
  File "/usr/lib/python2.5/site-packages/rssdler.py", line 2079, in main
    run()
  File "/usr/lib/python2.5/site-packages/rssdler.py", line 2049, in run
    rssparse(key)
  File "/usr/lib/python2.5/site-packages/rssdler.py", line 1950, in rssparse
    dirDict = checkRegEx(tName, ppage['entries'][i])
  File "/usr/lib/python2.5/site-packages/rssdler.py", line 722, in checkRegEx
    LDown = checkRegExDown(tName, itemNode)
  File "/usr/lib/python2.5/site-packages/rssdler.py", line 749, in checkRegExDown
    if not checkRegExGFalse(tName, itemNode): continue
  File "/usr/lib/python2.5/site-packages/rssdler.py", line 712, in checkRegExGFalse
    getConfig()['threads'][tName]['regExFalse'], re.I)
  File "/usr/lib/python2.5/re.py", line 188, in compile
    return _compile(pattern, flags)
  File "/usr/lib/python2.5/re.py", line 241, in _compile
    raise error, v # invalid expression
error: unbalanced parenthesis

Traceback (most recent call last):
  File "/usr/bin/rssdler", line 13, in <module>
    rssdler._main(sys.argv)
  File "/usr/lib/python2.5/site-packages/rssdler.py", line 2306, in _main
    main()
  File "/usr/lib/python2.5/site-packages/rssdler.py", line 2079, in main
    run()
  File "/usr/lib/python2.5/site-packages/rssdler.py", line 2049, in run
    rssparse(key)
  File "/usr/lib/python2.5/site-packages/rssdler.py", line 1950, in rssparse
    dirDict = checkRegEx(tName, ppage['entries'][i])
  File "/usr/lib/python2.5/site-packages/rssdler.py", line 722, in checkRegEx
    LDown = checkRegExDown(tName, itemNode)
  File "/usr/lib/python2.5/site-packages/rssdler.py", line 749, in checkRegExDown
    if not checkRegExGFalse(tName, itemNode): continue
  File "/usr/lib/python2.5/site-packages/rssdler.py", line 712, in checkRegExGFalse
    getConfig()['threads'][tName]['regExFalse'], re.I)
  File "/usr/lib/python2.5/re.py", line 188, in compile
    return _compile(pattern, flags)
  File "/usr/lib/python2.5/re.py", line 241, in _compile
    raise error, v # invalid expression
sre_constants.error: unbalanced parenthesis
######

My config without the comments:

###config.txt###
[global]
downloadDir = /Public/Torrent/

workingDir = /home/xbox/.rssdler

minSize = 10

# maxSize = None

log = 5
logFile = downloads.log

verbose = 5
cookieFile = /home/xbox/.rssdler/cookies.txt
cookieType = MozillaCookieJar

scanMins = 1
sleepTime = 2
runOnce = True
urllib = True

[thebox]
# just link to the feed
link = http://thebox.bz/rssdd.xml
maxSize = 2048
minSize = 10

directory = /Public/Torrent

regExTrue = \d[^\d]+\d
regExFalse = nrcc)

download1 = ^EastEnders.*PDTV

#download1True = False

download1Dir = /Public/Torrent/EastEnders

download3 = ^Doctors.*PDTV
download3True = False
download3Dir = /Public/Torrent/EastEnders

######

What steps will reproduce the problem?

 I am trying to match the RSS entry of "Doctors (28th February 2011) [PDTV (XviD)].torrent"

  Here is the debug output from 'rssdler -c ~/.rssdler/config.txt -r'

######
DEBUG writing daemonInfo
INFO [Waking up] Mon Feb 28 14:22:51 2011
DEBUG checking working dir, maybe changing dir
INFO Scanning threads
INFO finding new downloads in thread thebox
DEBUG encoding url http://thebox.bz/rssdd.xml
DEBUG testing cookieFile settings
DEBUG attempting to load cookie type: MozillaCookieJar
DEBUG cookies loaded
DEBUG building and installing urllib opener with cookies
DEBUG grabbing page at url http://thebox.bz/rssdd.xml
DEBUG unQuoteReQuote https://thebox.bz/download.php/149343/Outcasts  
s01e06.thebox.hannibal.mkv.torrent
DEBUG checking download<x>
DEBUG unQuoteReQuote 
https://thebox.bz/download.php/149342/Little.Charley.Bear.S01E16.28Feb2011.PDTV.
XviD-WTB.torrent
DEBUG checking download<x>
DEBUG unQuoteReQuote https://thebox.bz/download.php/149341/Nigel Benn V Steve 
Collins II.avi.torrent
DEBUG checking download<x>
DEBUG unQuoteReQuote 
https://thebox.bz/download.php/149340/The.TV.Book.Club.S03E07.WS.PDTV.XviD-thebo
x.Penna.avi.torrent
DEBUG checking download<x>
DEBUG unQuoteReQuote 
https://thebox.bz/download.php/149339/Living.With.Murder.Double.Blow-DSR-newRock
.avi.torrent
DEBUG checking download<x>
DEBUG unQuoteReQuote https://thebox.bz/download.php/149337/Fearne Cotton Radio 
Show  (28th Feb 2011) [Webrip (mp3)].torrent
DEBUG checking download<x>
DEBUG unQuoteReQuote https://thebox.bz/download.php/149336/Buzz and Tell - 
S01E35 [WebRip (Xvid)].avi.torrent
DEBUG checking download<x>
DEBUG unQuoteReQuote https://thebox.bz/download.php/149333/Little Human Planet 
- S01E14 - Animals Around the World.avi.torrent
DEBUG checking download<x>
DEBUG unQuoteReQuote 
https://thebox.bz/download.php/149332/Dancing.On.Ice.S06E08S.HDTV.720p.x264-CiA.
mkv.torrent
DEBUG checking download<x>
DEBUG unQuoteReQuote 
https://thebox.bz/download.php/149331/Dancing.On.Ice.S06E08P.HDTV.720p.x264-CiA.
mkv.torrent
DEBUG checking download<x>
DEBUG unQuoteReQuote https://thebox.bz/download.php/149330/Cookery 
School.s01e21.andyx.tbz.avi.torrent
DEBUG checking download<x>
DEBUG unQuoteReQuote https://thebox.bz/download.php/149329/MKFR2010.torrent
DEBUG checking download<x>
DEBUG unQuoteReQuote https://thebox.bz/download.php/149328/Little Human Planet 
- S01E13 - In the Jungle of Brazil.avi.torrent
DEBUG checking download<x>
DEBUG unQuoteReQuote https://thebox.bz/download.php/149327/House Gift - S03E21 
(28th February 2011).avi.torrent
DEBUG checking download<x>
DEBUG unQuoteReQuote https://thebox.bz/download.php/149325/Classic 
Wrestling.ITVSport.pt1.20110228.andyx.tbz.avi.torrent
DEBUG checking download<x>
DEBUG unQuoteReQuote https://thebox.bz/download.php/149323/The Story of Ireland 
S01E02 (27th February 2011) [PDTV(XviD)] slam159_thebox.avi.torrent
DEBUG checking download<x>
DEBUG unQuoteReQuote https://thebox.bz/download.php/149322/Doctors (28th 
February 2011) [PDTV (XviD)].torrent
DEBUG checking download<x>
DEBUG checking regExFalse on Doctors (28th February 2011) [PDTV (XviD)] (Soaps)
CRITICAL 2082 Unexpected Error: Traceback (most recent call last):
  File "/usr/lib/python2.5/site-packages/rssdler.py", line 2079, in main
    run()
  File "/usr/lib/python2.5/site-packages/rssdler.py", line 2049, in run
    rssparse(key)
  File "/usr/lib/python2.5/site-packages/rssdler.py", line 1950, in rssparse
    dirDict = checkRegEx(tName, ppage['entries'][i])
  File "/usr/lib/python2.5/site-packages/rssdler.py", line 722, in checkRegEx
    LDown = checkRegExDown(tName, itemNode)
  File "/usr/lib/python2.5/site-packages/rssdler.py", line 749, in checkRegExDown
    if not checkRegExGFalse(tName, itemNode): continue
  File "/usr/lib/python2.5/site-packages/rssdler.py", line 712, in checkRegExGFalse
    getConfig()['threads'][tName]['regExFalse'], re.I)
  File "/usr/lib/python2.5/re.py", line 188, in compile
    return _compile(pattern, flags)
  File "/usr/lib/python2.5/re.py", line 241, in _compile
    raise error, v # invalid expression
error: unbalanced parenthesis

Traceback (most recent call last):
  File "/usr/bin/rssdler", line 13, in <module>
    rssdler._main(sys.argv)
  File "/usr/lib/python2.5/site-packages/rssdler.py", line 2306, in _main
    main()
  File "/usr/lib/python2.5/site-packages/rssdler.py", line 2079, in main
    run()
  File "/usr/lib/python2.5/site-packages/rssdler.py", line 2049, in run
    rssparse(key)
  File "/usr/lib/python2.5/site-packages/rssdler.py", line 1950, in rssparse
    dirDict = checkRegEx(tName, ppage['entries'][i])
  File "/usr/lib/python2.5/site-packages/rssdler.py", line 722, in checkRegEx
    LDown = checkRegExDown(tName, itemNode)
  File "/usr/lib/python2.5/site-packages/rssdler.py", line 749, in checkRegExDown
    if not checkRegExGFalse(tName, itemNode): continue
  File "/usr/lib/python2.5/site-packages/rssdler.py", line 712, in checkRegExGFalse
    getConfig()['threads'][tName]['regExFalse'], re.I)
  File "/usr/lib/python2.5/re.py", line 188, in compile
    return _compile(pattern, flags)
  File "/usr/lib/python2.5/re.py", line 241, in _compile
    raise error, v # invalid expression
sre_constants.error: unbalanced parenthesis
######

 If there is not match then I do not get the error.
 It has the same problem if I match on anything from RSS streamed from thebox.bz.

Thanks.

Original issue reported on code.google.com by mother2...@gmail.com on 1 Mar 2011 at 4:22

GoogleCodeExporter commented 8 years ago
[deleted comment]
GoogleCodeExporter commented 8 years ago
Hello,
Were you ever able to fix this issue, or did you end up using a different 
program?
I'm experiencing the same issue.

Best,
Scott

Original comment by scupp...@gmail.com on 19 Aug 2011 at 12:04

GoogleCodeExporter commented 8 years ago
Sorry I know this is kind of an old bug report but it needs to be closed
regExFalse = nrcc)
is your problem ) is a special character it needs to be escaped
read this http://docs.python.org/library/re.html

Original comment by lsell...@gmail.com on 7 Nov 2011 at 8:51