mirror of
https://github.com/rembo10/headphones.git
synced 2026-05-02 09:49:36 +01: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'
|
torrent_name = torrent_folder_name + '.torrent'
|
||||||
download_path = os.path.join(headphones.TORRENTBLACKHOLE_DIR, torrent_name)
|
download_path = os.path.join(headphones.TORRENTBLACKHOLE_DIR, torrent_name)
|
||||||
try:
|
try:
|
||||||
f = open(download_path, 'w')
|
f = open(download_path, 'wb')
|
||||||
f.write(data)
|
f.write(data)
|
||||||
f.close()
|
f.close()
|
||||||
logger.info('File saved to: %s' % torrent_name)
|
logger.info('File saved to: %s' % torrent_name)
|
||||||
|
|||||||
Reference in New Issue
Block a user