Duration is only available for items that have media
@@ -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}'")
