rembo10/headphones — Issue #421: Preprocessing URL error for KAT
Author: xprimnt
Created: 2011-12-17 18:29:58+00:00
State: open

Hey all,

I've tried to trace this back to where it may be wrong, but I give up.

I prefer KAT as a torrent provider, since ISOHunt wasn't working for me either, and MN is horrible. However, throughout the course of the torrent search, it stops in pre-processing. Headphones searches, finds the appropriate torrent, then crashes with a

17-Dec-2011 11:14:29 - INFO :: CP Server Thread-2 : Pre-processing result

with no further log, but a traceback as follows:

Traceback (most recent call last):
File "/Users/Server/ConsoleApps/rembo10-headphones-78dcc52/cherrypy/_cprequest.py", line 645, in respond
response.body = self.handler()
File "/Users/Server/ConsoleApps/rembo10-headphones-78dcc52/cherrypy/lib/encoding.py", line 188, in __call__
self.body = self.oldhandler(*args, **kwargs)
File "/Users/Server/ConsoleApps/rembo10-headphones-78dcc52/cherrypy/_cpdispatch.py", line 29, in __call__
return self.callable(*self.args, **self.kwargs)
File "/Users/Server/ConsoleApps/rembo10-headphones-78dcc52/headphones/webserve.py", line 164, in queueAlbum
searcher.searchforalbum(AlbumID, new)
File "/Users/Server/ConsoleApps/rembo10-headphones-78dcc52/headphones/searcher.py", line 68, in searchforalbum
searchTorrent(albumid, new)
File "/Users/Server/ConsoleApps/rembo10-headphones-78dcc52/headphones/searcher.py", line 836, in searchTorrent
File "/Users/Server/ConsoleApps/rembo10-headphones-78dcc52/headphones/searcher.py", line 873, in preprocesstorrent
elif int(selresult[1]) < int(result[1]):
File "/System/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/urllib2.py", line 124, in urlopen
return _opener.open(url, data, timeout)
File "/System/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/urllib2.py", line 375, in open
protocol = req.get_type()
File "/System/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/urllib2.py", line 241, in get_type
raise ValueError, "unknown url type: %s" % self.__original
ValueError: unknown url type: //www.kat.ph/torrents/chevelle-2009-sci-fi-crimes-t3814497/

All albums do this, and I just can't figure out where the url is requested from, as it needs an http in front of it!

Thanks in advance!