Commits

Ning Sun committed 48893ac

integration with doubanfm plugin

  • Participants
  • Parent commits 253dddc

Comments (0)

Files changed (1)

 		self.starttime = 0
 
 	def find_covers(self, track, limit=-1):
+		## integration with doubanfm plugin
+		if track.get_tag_raw('cover_url') is not None :
+			return [track.get_tag_raw('cover_url')]
 		try:
 			artist = track.get_tag_raw('artist')[0]
 			album = track.get_tag_raw('album')[0]
 		except (AttributeError, TypeError):
 			return []
 			
-		
 		return self.search_covers("%s, %s" %(artist, album), limit)
 
 	def get_cover_data(self, url):