Use .parts property in .streams method
MODIFY
plextraktsync/plex_api.py
plextraktsync/plex_api.py
@@ -191,8 +191,7 @@ def parts(self) -> List[MediaPart]:
@flatten
def streams(self, cls):
- for media in self.item.media:
- for part in media.parts:
+ for part in self.parts:
for stream in part.streams:
if isinstance(stream, cls):
yield stream

Use .parts property in .streams method