mirror of
https://github.com/FliegendeWurst/KIT-ILIAS-downloader.git
synced 2024-08-28 04:04:18 +00:00
Fix deprecation warning
This commit is contained in:
parent
1f9ab6a07c
commit
cea829b79e
@ -416,7 +416,7 @@ async fn process(ilias: Arc<ILIAS>, path: PathBuf, obj: Object) -> Result<()> {
|
|||||||
query_parameters.push(("cmdMode".into(), "asynch".into()));
|
query_parameters.push(("cmdMode".into(), "asynch".into()));
|
||||||
full_url.query_pairs_mut().clear().extend_pairs(&query_parameters).finish();
|
full_url.query_pairs_mut().clear().extend_pairs(&query_parameters).finish();
|
||||||
log!(1, "Loading {}", full_url);
|
log!(1, "Loading {}", full_url);
|
||||||
let data = ilias.download(&full_url.into_string()).await?;
|
let data = ilias.download(full_url.as_str()).await?;
|
||||||
let html = data.text().await?;
|
let html = data.text().await?;
|
||||||
let html = Html::parse_fragment(&html);
|
let html = Html::parse_fragment(&html);
|
||||||
for row in html.select(&video_tr) {
|
for row in html.select(&video_tr) {
|
||||||
@ -1321,7 +1321,7 @@ impl URL {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
Ok(URL {
|
Ok(URL {
|
||||||
url: url.into_string(),
|
url: url.into(),
|
||||||
baseClass,
|
baseClass,
|
||||||
cmdClass,
|
cmdClass,
|
||||||
cmdNode,
|
cmdNode,
|
||||||
|
Loading…
Reference in New Issue
Block a user