This repository was archived by the owner on Apr 12, 2025. It is now read-only.
File tree 2 files changed +11
-4
lines changed
2 files changed +11
-4
lines changed Original file line number Diff line number Diff line change @@ -16,7 +16,7 @@ Remix your plex hubs
16
16
- Force maximum quality.
17
17
- Auto select version based on resolution of the client.
18
18
- Fallback to different version if selected version is video transcoding.
19
- - Works on every client/app not only plex web!
19
+ - Works on every client not only plex web!
20
20
- Plays nice with PMM (and without).
21
21
22
22
## How does it work
Original file line number Diff line number Diff line change @@ -250,8 +250,7 @@ impl Filter for HubRestrictionsFilter {
250
250
251
251
if !config. hub_restrictions {
252
252
return true ;
253
- }
254
-
253
+ }
255
254
256
255
if item. is_hub ( ) && !item. is_collection_hub ( ) {
257
256
return true ;
@@ -260,7 +259,11 @@ impl Filter for HubRestrictionsFilter {
260
259
if !item. is_hub ( ) {
261
260
return true ;
262
261
}
263
-
262
+
263
+ if !item. size . unwrap ( ) == 0 {
264
+ return false ;
265
+ }
266
+
264
267
let section_id: i64 = item. library_section_id . unwrap_or_else ( || {
265
268
item. clone ( )
266
269
. children ( )
@@ -270,6 +273,10 @@ impl Filter for HubRestrictionsFilter {
270
273
. expect ( "Missing Library section id" )
271
274
} ) ;
272
275
276
+ //let section_id: i64 = item.library_section_id.unwrap_or_else(|| {
277
+ // item.hub_identifier.clone().unwrap().split('.').unwrap().2.parse().unwrap()
278
+ //});
279
+
273
280
//let start = Instant::now();
274
281
let mut custom_collections = plex_client
275
282
. clone ( )
You can’t perform that action at this time.
0 commit comments