feat!: add channel_videos_tab, channel_videos_order,
remove channel_shorts, channel_livestreams fix: parsing video types and short durations
This commit is contained in:
parent
7e5cff719a
commit
3a75ed8610
20 changed files with 444 additions and 152 deletions
|
|
@ -10,7 +10,7 @@ use rustypipe::{
|
|||
client::{ClientType, RustyPipe},
|
||||
param::{
|
||||
search_filter::{self, ItemType, SearchFilter},
|
||||
Country,
|
||||
ChannelVideoTab, Country,
|
||||
},
|
||||
report::{Report, Reporter},
|
||||
};
|
||||
|
|
@ -305,7 +305,7 @@ async fn channel_shorts() {
|
|||
|
||||
let rp = rp_testfile(&json_path);
|
||||
rp.query()
|
||||
.channel_shorts("UCh8gHdtzO2tXd593_bjErWg")
|
||||
.channel_videos_tab("UCh8gHdtzO2tXd593_bjErWg", ChannelVideoTab::Shorts)
|
||||
.await
|
||||
.unwrap();
|
||||
}
|
||||
|
|
@ -318,7 +318,7 @@ async fn channel_livestreams() {
|
|||
|
||||
let rp = rp_testfile(&json_path);
|
||||
rp.query()
|
||||
.channel_livestreams("UC2DjFE7Xf11URZqWBigcVOQ")
|
||||
.channel_videos_tab("UC2DjFE7Xf11URZqWBigcVOQ", ChannelVideoTab::Live)
|
||||
.await
|
||||
.unwrap();
|
||||
}
|
||||
|
|
|
|||
Reference in a new issue