web client support retry

This commit is contained in:
2022-03-08 18:06:53 +08:00
parent e408e26430
commit cf4c419f47
8 changed files with 206 additions and 124 deletions

View File

@@ -7,5 +7,6 @@ pub fn get_settings_list() -> Vec<SettingDes> {
SettingDes::new("refresh_tokens", gettext("Pixiv's refresh tokens. Used to login."), JsonValueType::Str, None).unwrap(),
SettingDes::new("cookies", gettext("The location of cookies file. Used for web API."), JsonValueType::Str, None).unwrap(),
SettingDes::new("language", gettext("The language of translated tags."), JsonValueType::Str, None).unwrap(),
SettingDes::new("retry", gettext("Max retry count if request failed."), JsonValueType::Number, None).unwrap(),
]
}