mirror of
https://github.com/rembo10/headphones.git
synced 2026-03-21 20:29:27 +00:00
Update headphones/searcher.py
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user