mirror of
https://github.com/lifegpc/pixiv_downloader.git
synced 2026-07-08 01:32:41 +08:00
add retry interval
This commit is contained in:
@@ -31,7 +31,7 @@ impl PixivData {
|
||||
}
|
||||
|
||||
/// Read data from JSON object.
|
||||
/// The object is from https://www.pixiv.net/artworks/<id>
|
||||
/// The object is from `https://www.pixiv.net/artworks/<id>`
|
||||
/// * `value` - The JSON object
|
||||
/// * `allow_overwrite` - Allow overwrite the data existing.
|
||||
pub fn from_web_page_data(&mut self, value: &JsonValue, allow_overwrite: bool) {
|
||||
|
||||
@@ -135,3 +135,15 @@ impl ToJson for String {
|
||||
Some(JsonValue::String(self.to_string()))
|
||||
}
|
||||
}
|
||||
|
||||
impl ToJson for JsonValue {
|
||||
fn to_json(&self) -> Option<JsonValue> {
|
||||
Some(self.clone())
|
||||
}
|
||||
}
|
||||
|
||||
impl ToJson for &JsonValue {
|
||||
fn to_json(&self) -> Option<JsonValue> {
|
||||
Some((*self).clone())
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user