Use .parts property in .streams method
@@ -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
