Update headphones/searcher.py

This commit is contained in:
MageMinds
2012-01-25 15:20:20 -05:00
parent 0d217f8936
commit be37f6c063

View File

@@ -868,7 +868,7 @@ def searchTorrent(albumid=None, new=False):
torrent_name = torrent_folder_name + '.torrent'
download_path = os.path.join(headphones.TORRENTBLACKHOLE_DIR, torrent_name)
try:
f = open(download_path, 'w')
f = open(download_path, 'wb')
f.write(data)
f.close()
logger.info('File saved to: %s' % torrent_name)