Commit c97f125 1 parent 0d78deb commit c97f125 Copy full SHA for c97f125
File tree 1 file changed +0
-45
lines changed
1 file changed +0
-45
lines changed Original file line number Diff line number Diff line change @@ -12,53 +12,8 @@ pub struct LibraryInterleaveTransform {
12
12
pub collection_ids : Vec < u32 > ,
13
13
pub offset : i32 ,
14
14
pub limit : i32 ,
15
- // pub remove_watched: bool,
16
15
}
17
16
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
-
62
17
#[ async_trait]
63
18
impl Transform for LibraryInterleaveTransform {
64
19
async fn transform_mediacontainer (
You can’t perform that action at this time.
0 commit comments