mirror of
https://github.com/rembo10/headphones.git
synced 2026-07-21 08:24:00 +01:00
Fire off a searcher thread when adding albums with Mark All Albums as Wanted option is set
This commit is contained in:
@@ -338,6 +338,11 @@ def addArtisttoDB(artistid, extrasonly=False):
|
|||||||
|
|
||||||
if headphones.AUTOWANT_ALL:
|
if headphones.AUTOWANT_ALL:
|
||||||
newValueDict['Status'] = "Wanted"
|
newValueDict['Status'] = "Wanted"
|
||||||
|
|
||||||
|
#start a search for the album
|
||||||
|
import searcher
|
||||||
|
searcher.searchforalbum(albumid=rg['id'])
|
||||||
|
|
||||||
elif album['ReleaseDate'] > helpers.today() and headphones.AUTOWANT_UPCOMING:
|
elif album['ReleaseDate'] > helpers.today() and headphones.AUTOWANT_UPCOMING:
|
||||||
newValueDict['Status'] = "Wanted"
|
newValueDict['Status'] = "Wanted"
|
||||||
else:
|
else:
|
||||||
@@ -522,7 +527,7 @@ def addReleaseById(rid):
|
|||||||
|
|
||||||
#start a search for the album
|
#start a search for the album
|
||||||
import searcher
|
import searcher
|
||||||
searcher.searchNZB(rgid, False)
|
searcher.searchforalbum(rgid, False)
|
||||||
elif not rg_exists and not release_dict:
|
elif not rg_exists and not release_dict:
|
||||||
logger.error("ReleaseGroup does not exist in the database and did not get a valid response from MB. Skipping release.")
|
logger.error("ReleaseGroup does not exist in the database and did not get a valid response from MB. Skipping release.")
|
||||||
return
|
return
|
||||||
|
|||||||
Reference in New Issue
Block a user