mirror of
https://github.com/rembo10/headphones.git
synced 2026-09-10 00:32:52 +01:00
Compare commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
abac9b5a15 | ||
|
|
ace2b4f26a | ||
|
|
ebba115443 |
@@ -1,5 +1,13 @@
|
|||||||
# Changelog
|
# Changelog
|
||||||
|
|
||||||
|
## v0.6.3
|
||||||
|
Released 26 May 2024
|
||||||
|
|
||||||
|
Highlights:
|
||||||
|
* Hotfix for searcher not returning results
|
||||||
|
|
||||||
|
The full list of commits can be found [here](https://github.com/rembo10/headphones/compare/v0.6.2...v0.6.3).
|
||||||
|
|
||||||
## v0.6.2
|
## v0.6.2
|
||||||
Released 26 May 2024
|
Released 26 May 2024
|
||||||
|
|
||||||
|
|||||||
+9
-15
@@ -58,7 +58,7 @@ from headphones import (
|
|||||||
rutracker,
|
rutracker,
|
||||||
soulseek,
|
soulseek,
|
||||||
transmission,
|
transmission,
|
||||||
utorrent,
|
utorrent
|
||||||
)
|
)
|
||||||
|
|
||||||
# Magnet to torrent services, for Black hole. Stolen from CouchPotato.
|
# Magnet to torrent services, for Black hole. Stolen from CouchPotato.
|
||||||
@@ -329,26 +329,21 @@ def do_sorted_search(album, new, losslessOnly, choose_specific_download=False):
|
|||||||
|
|
||||||
else:
|
else:
|
||||||
|
|
||||||
nzb_results = None
|
nzb_results = []
|
||||||
torrent_results = None
|
torrent_results = []
|
||||||
bandcamp_results = None
|
bandcamp_results = []
|
||||||
|
|
||||||
if NZB_PROVIDERS and NZB_DOWNLOADERS:
|
if NZB_PROVIDERS and NZB_DOWNLOADERS:
|
||||||
nzb_results = searchNZB(album, new, losslessOnly, albumlength, choose_specific_download)
|
nzb_results = searchNZB(album, new, losslessOnly,
|
||||||
|
albumlength, choose_specific_download)
|
||||||
|
|
||||||
if TORRENT_PROVIDERS:
|
if TORRENT_PROVIDERS:
|
||||||
torrent_results = searchTorrent(album, new, losslessOnly, albumlength,
|
torrent_results = searchTorrent(album, new, losslessOnly,
|
||||||
choose_specific_download)
|
albumlength, choose_specific_download)
|
||||||
|
|
||||||
if headphones.CONFIG.BANDCAMP:
|
if headphones.CONFIG.BANDCAMP:
|
||||||
bandcamp_results = searchBandcamp(album, new, albumlength)
|
bandcamp_results = searchBandcamp(album, new, albumlength)
|
||||||
|
|
||||||
if not nzb_results:
|
|
||||||
nzb_results = []
|
|
||||||
|
|
||||||
if not torrent_results:
|
|
||||||
torrent_results = []
|
|
||||||
|
|
||||||
results = nzb_results + torrent_results + bandcamp_results
|
results = nzb_results + torrent_results + bandcamp_results
|
||||||
|
|
||||||
if choose_specific_download:
|
if choose_specific_download:
|
||||||
@@ -370,7 +365,6 @@ def do_sorted_search(album, new, losslessOnly, choose_specific_download=False):
|
|||||||
(data, result) = preprocess(sorted_search_results)
|
(data, result) = preprocess(sorted_search_results)
|
||||||
|
|
||||||
if data and result:
|
if data and result:
|
||||||
#print(f'going to send stuff to downloader. data: {data}, album: {album}')
|
|
||||||
send_to_downloader(data, result, album)
|
send_to_downloader(data, result, album)
|
||||||
|
|
||||||
|
|
||||||
@@ -876,11 +870,11 @@ def send_to_downloader(data, result, album):
|
|||||||
except Exception as e:
|
except Exception as e:
|
||||||
logger.error('Couldn\'t write NZB file: %s', e)
|
logger.error('Couldn\'t write NZB file: %s', e)
|
||||||
return
|
return
|
||||||
|
|
||||||
elif kind == 'bandcamp':
|
elif kind == 'bandcamp':
|
||||||
folder_name = bandcamp.download(album, result)
|
folder_name = bandcamp.download(album, result)
|
||||||
logger.info("Setting folder_name to: {}".format(folder_name))
|
logger.info("Setting folder_name to: {}".format(folder_name))
|
||||||
|
|
||||||
|
|
||||||
elif kind == 'soulseek':
|
elif kind == 'soulseek':
|
||||||
soulseek.download(user=result.user, filelist=result.files)
|
soulseek.download(user=result.user, filelist=result.files)
|
||||||
folder_name = result.folder
|
folder_name = result.folder
|
||||||
|
|||||||
Reference in New Issue
Block a user