re-add api initializing

This commit is contained in:
aisuneko 2021-07-10 20:43:29 +08:00
parent c172937fcb
commit 263370524c
No known key found for this signature in database
GPG Key ID: D546015BE70DC955
1 changed files with 1 additions and 2 deletions

View File

@ -13,7 +13,7 @@ from ncm.constants import headers
# load the config first
config.load_config()
#api = CloudApi()
api = CloudApi()
def download_hot_songs(artist_id):
@ -70,7 +70,6 @@ def main():
args = parser.parse_args()
if args.user_agent:
headers.update({'User-Agent':args.user_agent})
#api = CloudApi()
if args.song_id:
download_song_by_id(get_parse_id(args.song_id), config.DOWNLOAD_DIR)
elif args.song_ids: