Slyyxp/BugsPy

album art not available

Closed this issue · 1 comments

https://music.bugs.co.kr/album/130004

some albums not have album cover.

changed some to prevent error

def download_cover(imgs, cover_path):
	if utils.exist_check(cover_path):
		pass
	else:
		logger_bugs.info("Downloading cover artwork.")
		cover_url = imgs[config.prefs['cover_size']]
		r = requests.get(cover_url)
		if r:
			r.raise_for_status()
			with open(cover_path, 'wb') as f:
				f.write(r.content)
		else:
			cover_path = ""

Closed with 6803c36