Merge pull request #456 from MageMinds/patch-3

Torrent file save file open correction
This commit is contained in:
rembo10
2012-01-25 12:27:30 -08:00

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)