Skip to content

Configuration

Edit Config class in song.py or songlist.py.

Parameters

ParameterDefaultDescription
COVER_SIZE800Cover size (150/300/500/800)
DOWNLOAD_TIMEOUT30Timeout (seconds)
CREDENTIAL_FILEqqmusic_cred.pklCredential file
MUSIC_DIR./musicDownload directory
SEARCH_RESULTS_COUNT5Search results count
EXTERNAL_API_URLhttps://api.ygking.topExternal API

Examples

High Quality

python
class Config:
    COVER_SIZE = 800
    DOWNLOAD_TIMEOUT = 60

Fast Download

python
class Config:
    COVER_SIZE = 300
    DOWNLOAD_TIMEOUT = 30

Credential Priority

  1. Local file (qqmusic_cred.pkl)
  2. External API (api.ygking.top)

👉 See Usage Guide

For learning and research purposes only