fix: use visitor data for ordered channel videos

tests: fix tests
This commit is contained in:
ThetaDev 2023-08-15 22:37:55 +02:00
parent dff95d1272
commit 6cf59a167a
6 changed files with 47 additions and 38 deletions

View file

@ -117,10 +117,7 @@ impl RustyPipeQuery {
tab: ChannelVideoTab,
order: ChannelOrder,
) -> Result<Paginator<VideoItem>, Error> {
let visitor_data = match tab {
ChannelVideoTab::Shorts => Some(self.get_visitor_data().await?),
_ => None,
};
let visitor_data = Some(self.get_visitor_data().await?);
self.continuation(
order_ctoken(channel_id.as_ref(), tab, order),