problem with percent encoding

5 views
Skip to first unread message

Irregular

unread,
Jun 1, 2009, 3:53:21 PM6/1/09
to rssdler
rssdler can't fetch torrent file, because it's replacing % with %25:

20090601.04:08 DEBUG unQuoteReQuote
http://torrents.speedsubs.org/eclipse/%5bEclipse%5d%20Fullmetal%20Alchemist%20Brotherhood%20-%2009%20(1280x720%20h264
)%20%5b3A18C972%5d.mkv.torrent
20090601.04:08 DEBUG checking download<x>
20090601.04:08 DEBUG encoding url
http://torrents.speedsubs.org/eclipse/%255bEclipse%255d%20Fullmetal%20Alchemist%20Brotherhood%20-%2009%20%281280x720%20
h264%29%20%255b3A18C972%255d.mkv.torrent
20090601.04:08 DEBUG grabbing page at url
http://torrents.speedsubs.org/eclipse/%255bEclipse%255d%20Fullmetal%20Alchemist%20Brotherhood%20-%2009%20%28128
0x720%20h264%29%20%255b3A18C972%255d.mkv.torrent
20090601.04:08 CRITICAL Traceback (most recent call last):
File "/usr/lib/python2.5/site-packages/rssdler.py", line 768, in
downloadFile
try: data = downloader(link)
File "/usr/lib/python2.5/site-packages/rssdler.py", line 593, in
urllib2RetrievePage
return urllib2.urlopen(urllib2.Request(url, headers=dict(th)))
File "/usr/lib/python2.5/urllib2.py", line 124, in urlopen
return _opener.open(url, data)
File "/usr/lib/python2.5/urllib2.py", line 387, in open
response = meth(req, response)
File "/usr/lib/python2.5/urllib2.py", line 498, in http_response
'http', request, response, code, msg, hdrs)
File "/usr/lib/python2.5/urllib2.py", line 425, in error
return self._call_chain(*args)
File "/usr/lib/python2.5/urllib2.py", line 360, in _call_chain
result = func(*args)
File "/usr/lib/python2.5/urllib2.py", line 506, in
http_error_default
raise HTTPError(req.get_full_url(), code, msg, hdrs, fp)
HTTPError: HTTP Error 404: Not Found

error grabbing url:
http://torrents.speedsubs.org/eclipse/%255bEclipse%255d%20Fullmetal%20Alchemist%20Brotherhood%20-%2009%20%281280x720%20h264%29%20%255b3A
18C972%255d.mkv.torrent
20090601.04:08 DEBUG adding to failedDown:
http://torrents.speedsubs.org/eclipse/%255bEclipse%255d%20Fullmetal%20Alchemist%20Brotherhood%20-%2009%20%2812
80x720%20h264%29%20%255b3A18C972%255d.mkv.torrent


It's same in 0.4.0a and in 0.4.1a1.
Gentoo Linux, Python 2.5.4.
Reply all
Reply to author
Forward
0 new messages