Disable last.fm getSimilar

This commit is contained in:
rembo10
2022-02-08 19:37:33 +05:30
parent 9ca87e23b2
commit f4d60226b3
2 changed files with 5 additions and 4 deletions

View File

@@ -63,12 +63,12 @@ def request_lastfm(method, **kwargs):
def getSimilar():
myDB = db.DBConnection()
results = myDB.select("SELECT ArtistID from artists ORDER BY HaveTracks DESC")
results = myDB.select("SELECT ArtistID from artists ORDER BY HaveTracks DESC LIMIT 10")
logger.info("Fetching similar artists from Last.FM for tag cloud")
artistlist = []
for result in results[:12]:
for result in results:
data = request_lastfm("artist.getsimilar", mbid=result["ArtistId"])
if data and "similarartists" in data:

View File

@@ -442,8 +442,9 @@ def libraryScan(dir=None, append=False, ArtistID=None, ArtistName=None,
# if not append:
# update_album_status()
if not append and not artistScan:
lastfm.getSimilar()
# TODO: Fix last.fm api calls
#if not append and not artistScan:
#lastfm.getSimilar()
if ArtistName:
logger.info('Scanning complete for artist: %s', ArtistName)