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
|
let req = self
|
||||||
.client
|
.client
|
||||||
.post(&format!("{}/users/token", self.base_url))
|
.post(format!("{}/users/token", self.base_url))
|
||||||
.form(¶ms)
|
.form(¶ms)
|
||||||
.send()
|
.send()
|
||||||
.await?
|
.await?
|
||||||
@@ -348,7 +348,7 @@ impl PeerTube {
|
|||||||
|
|
||||||
while let Ok(mut local_pl) = self
|
while let Ok(mut local_pl) = self
|
||||||
.client
|
.client
|
||||||
.get(&format!(
|
.get(format!(
|
||||||
"{}/video-playlists?count={}&playlistType=1&start={}",
|
"{}/video-playlists?count={}&playlistType=1&start={}",
|
||||||
self.base_url, inc, start
|
self.base_url, inc, start
|
||||||
))
|
))
|
||||||
@@ -380,7 +380,7 @@ impl PeerTube {
|
|||||||
|
|
||||||
let pl_created = self
|
let pl_created = self
|
||||||
.client
|
.client
|
||||||
.post(&format!("{}/video-playlists", self.base_url))
|
.post(format!("{}/video-playlists", self.base_url))
|
||||||
.multipart(form)
|
.multipart(form)
|
||||||
.send()
|
.send()
|
||||||
.await?
|
.await?
|
||||||
@@ -402,7 +402,7 @@ impl PeerTube {
|
|||||||
|
|
||||||
let res = self
|
let res = self
|
||||||
.client
|
.client
|
||||||
.post(&format!(
|
.post(format!(
|
||||||
"{}/video-playlists/{}/videos",
|
"{}/video-playlists/{}/videos",
|
||||||
self.base_url, pl_uuid
|
self.base_url, pl_uuid
|
||||||
))
|
))
|
||||||
@@ -432,7 +432,7 @@ impl PeerTube {
|
|||||||
|
|
||||||
while let Ok(l_vid) = self
|
while let Ok(l_vid) = self
|
||||||
.client
|
.client
|
||||||
.get(&format!(
|
.get(format!(
|
||||||
"{}/video-playlists/{}/videos?start={}&count={}",
|
"{}/video-playlists/{}/videos?start={}&count={}",
|
||||||
&self.base_url, &uuid, start, inc
|
&self.base_url, &uuid, start, inc
|
||||||
))
|
))
|
||||||
|
@@ -248,7 +248,7 @@ impl YouTube {
|
|||||||
|
|
||||||
let res = self
|
let res = self
|
||||||
.client
|
.client
|
||||||
.post(&format!(
|
.post(format!(
|
||||||
"https://www.googleapis.com/upload/youtube/v3/thumbnails/set?videoId={}&uploadType=media",
|
"https://www.googleapis.com/upload/youtube/v3/thumbnails/set?videoId={}&uploadType=media",
|
||||||
video_id
|
video_id
|
||||||
))
|
))
|
||||||
@@ -268,7 +268,7 @@ impl YouTube {
|
|||||||
let mut playlists: Vec<String> = vec![];
|
let mut playlists: Vec<String> = vec![];
|
||||||
|
|
||||||
while let Ok(local_pl) = self.client
|
while let Ok(local_pl) = self.client
|
||||||
.get(&format!(
|
.get(format!(
|
||||||
"https://www.googleapis.com/youtube/v3/playlists?part=snippet&mine=true&pageToken={}",
|
"https://www.googleapis.com/youtube/v3/playlists?part=snippet&mine=true&pageToken={}",
|
||||||
page_token
|
page_token
|
||||||
))
|
))
|
||||||
|
Reference in New Issue
Block a user