mirror of
https://framagit.org/veretcle/tootube.git
synced 2025-07-20 12:31:19 +02:00
💄: make clippy happy
This commit is contained in:
@@ -238,7 +238,7 @@ impl PeerTube {
|
||||
|
||||
let req = self
|
||||
.client
|
||||
.post(&format!("{}/users/token", self.base_url))
|
||||
.post(format!("{}/users/token", self.base_url))
|
||||
.form(¶ms)
|
||||
.send()
|
||||
.await?
|
||||
@@ -348,7 +348,7 @@ impl PeerTube {
|
||||
|
||||
while let Ok(mut local_pl) = self
|
||||
.client
|
||||
.get(&format!(
|
||||
.get(format!(
|
||||
"{}/video-playlists?count={}&playlistType=1&start={}",
|
||||
self.base_url, inc, start
|
||||
))
|
||||
@@ -380,7 +380,7 @@ impl PeerTube {
|
||||
|
||||
let pl_created = self
|
||||
.client
|
||||
.post(&format!("{}/video-playlists", self.base_url))
|
||||
.post(format!("{}/video-playlists", self.base_url))
|
||||
.multipart(form)
|
||||
.send()
|
||||
.await?
|
||||
@@ -402,7 +402,7 @@ impl PeerTube {
|
||||
|
||||
let res = self
|
||||
.client
|
||||
.post(&format!(
|
||||
.post(format!(
|
||||
"{}/video-playlists/{}/videos",
|
||||
self.base_url, pl_uuid
|
||||
))
|
||||
@@ -432,7 +432,7 @@ impl PeerTube {
|
||||
|
||||
while let Ok(l_vid) = self
|
||||
.client
|
||||
.get(&format!(
|
||||
.get(format!(
|
||||
"{}/video-playlists/{}/videos?start={}&count={}",
|
||||
&self.base_url, &uuid, start, inc
|
||||
))
|
||||
|
@@ -248,7 +248,7 @@ impl YouTube {
|
||||
|
||||
let res = self
|
||||
.client
|
||||
.post(&format!(
|
||||
.post(format!(
|
||||
"https://www.googleapis.com/upload/youtube/v3/thumbnails/set?videoId={}&uploadType=media",
|
||||
video_id
|
||||
))
|
||||
@@ -268,7 +268,7 @@ impl YouTube {
|
||||
let mut playlists: Vec<String> = vec![];
|
||||
|
||||
while let Ok(local_pl) = self.client
|
||||
.get(&format!(
|
||||
.get(format!(
|
||||
"https://www.googleapis.com/youtube/v3/playlists?part=snippet&mine=true&pageToken={}",
|
||||
page_token
|
||||
))
|
||||
|
Reference in New Issue
Block a user