This repository was archived by the owner on Apr 12, 2025. It is now read-only.
File tree Expand file tree Collapse file tree 1 file changed +0
-45
lines changed
Expand file tree Collapse file tree 1 file changed +0
-45
lines changed Original file line number Diff line number Diff 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]
6318impl Transform for LibraryInterleaveTransform {
6419 async fn transform_mediacontainer (
You can’t perform that action at this time.
0 commit comments