Skip to content
This repository was archived by the owner on Apr 12, 2025. It is now read-only.

Commit 6bad60f

Browse files
committed
fix: #138
1 parent 85fbe10 commit 6bad60f

File tree

2 files changed

+11
-4
lines changed

2 files changed

+11
-4
lines changed

README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ Remix your plex hubs
1616
- Force maximum quality.
1717
- Auto select version based on resolution of the client.
1818
- 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!
2020
- Plays nice with PMM (and without).
2121

2222
## How does it work

src/transform.rs

+10-3
Original file line numberDiff line numberDiff line change
@@ -250,8 +250,7 @@ impl Filter for HubRestrictionsFilter {
250250

251251
if !config.hub_restrictions {
252252
return true;
253-
}
254-
253+
}
255254

256255
if item.is_hub() && !item.is_collection_hub() {
257256
return true;
@@ -260,7 +259,11 @@ impl Filter for HubRestrictionsFilter {
260259
if !item.is_hub() {
261260
return true;
262261
}
263-
262+
263+
if !item.size.unwrap() == 0 {
264+
return false;
265+
}
266+
264267
let section_id: i64 = item.library_section_id.unwrap_or_else(|| {
265268
item.clone()
266269
.children()
@@ -270,6 +273,10 @@ impl Filter for HubRestrictionsFilter {
270273
.expect("Missing Library section id")
271274
});
272275

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+
273280
//let start = Instant::now();
274281
let mut custom_collections = plex_client
275282
.clone()

0 commit comments

Comments
 (0)