#NEWLINE# @ classmethod #NEWLINE# def cachekey( cls , query ) : #NEWLINE# #INDENT# 'Return the cachekey for a query.' #NEWLINE# cachekey = query . artist #NEWLINE# if ( cls . type == 'album' ) : #NEWLINE# #INDENT# cachekey += query . album #NEWLINE# #UNINDENT# return ( query . dapr . name . lower ( ) , query . type , cachekey . replace ( ' ' , '' ) )