Duration is only available for items that have media
MODIFY
plextraktsync/commands/inspect.py
plextraktsync/commands/inspect.py
@@ -44,6 +44,7 @@ def inspect_media(id):
print(f"Title: {media.title}")
if media.type == 'movie' and media.editionTitle:
print(f"Edition Title: {media.editionTitle}")
+ if pm.has_media:
print(f"Media.Duration: {pm.duration}")
print(f"Media.Type: '{media.type}'")
print(f"Media.Guid: '{media.guid}'")

Duration is only available for items that have media