Skip to content

Commit c97f125

Browse files
authored
Update library_interleave.rs
1 parent 0d78deb commit c97f125

File tree

1 file changed

+0
-45
lines changed

1 file changed

+0
-45
lines changed

src/transform/library_interleave.rs

-45
Original file line numberDiff line numberDiff line change
@@ -12,53 +12,8 @@ pub struct LibraryInterleaveTransform {
1212
pub collection_ids: Vec<u32>,
1313
pub offset: i32,
1414
pub limit: i32,
15-
// pub remove_watched: bool,
1615
}
1716

18-
// #[async_recursion]
19-
// pub async fn load_collection_children(
20-
// id: u32,
21-
// offset: i32,
22-
// limit: i32,
23-
// original_limit: i32,
24-
// client: PlexClient,
25-
// ) -> anyhow::Result<MediaContainerWrapper<MediaContainer>> {
26-
// let config: Config = Config::figment().extract().unwrap();
27-
// let mut c = client
28-
// .get_collection_children(id, Some(offset), Some(limit))
29-
// .await?;
30-
31-
// if !config.include_watched {
32-
// c.media_container.children_mut().retain(|x| !x.is_watched());
33-
34-
// let children_lenght = c.media_container.children_mut().len() as i32;
35-
// // dbg!(children_lenght);
36-
// // dbg!(limit);
37-
// // dbg!(c.media_container.total_size.unwrap());
38-
// // dbg!(offset);
39-
// // dbg!(limit);
40-
// // dbg!(children_lenght);
41-
// // dbg!(c.media_container.total_size);
42-
// // dbg!("-------");
43-
// let total_size = c.media_container.total_size.unwrap();
44-
// if children_lenght < original_limit
45-
// && total_size > offset + limit && offset < total_size
46-
// {
47-
// //dbg!("recursive");
48-
// // self.clone().load_collection_children();
49-
// // load more
50-
// return load_collection_children(
51-
// id,
52-
// offset,
53-
// limit + 10,
54-
// original_limit,
55-
// client.clone(),
56-
// ).await;
57-
// }
58-
// }
59-
// Ok(c)
60-
// }
61-
6217
#[async_trait]
6318
impl Transform for LibraryInterleaveTransform {
6419
async fn transform_mediacontainer(

0 commit comments

Comments
 (0)