1
0
Fork 0

Add delay parameter to avoid hitting rate limits

This commit is contained in:
mrsobakin 2024-08-13 22:27:58 +05:00
parent 9c01b5733b
commit ae9d49426a
No known key found for this signature in database
GPG key ID: 325CBF665E4FFD6E
4 changed files with 23 additions and 5 deletions

View file

@ -22,6 +22,7 @@ CONFIG_PATH = _get_config_file()
@dataclass
class LyricsDlConfig:
order: list[str] = field(default_factory=lambda: ["kugou", "youtube"])
delay: float | None = 10
providers_configs: dict[str, dict] = field(default_factory=lambda: {})
@classmethod