"resource_source": "resource_source", "copy_type": "copy_type", # collect songs "title": "title", "artist": "artist", "album": "album", "album_id": "album_id", # list songs "file_duration": "#duration", "author": "artist", "lrclink": "lyric_url", } public_curl = Curl() def parse_to_dsong(ret, song=None): is_dummy = False if song is None: song = dict() is_dummy = True try: bsong = ret file_list = bsong.pop("file_list", []) if len(file_list) > 0: bfile = file_list[0] bsong.update(bfile)
def __init__(self, username, password): self.cookie_file = utils.get_cookie_file(username) self.curl = Curl(self.cookie_file) self.username = username self.password = password self.__bduss = None