Skip to content

Commit

Permalink
Merge pull request #303 from glensc/inspect-show
Browse files Browse the repository at this point in the history
Skip print media details for type show
  • Loading branch information
glensc authored Apr 27, 2021
2 parents 165210e + e2f896d commit 4d13e5a
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions plex_trakt_sync/commands/inspect.py
Original file line number Diff line number Diff line change
Expand Up @@ -32,11 +32,12 @@ def inspect(input):
print(f"Guid: '{media.guid}'")
print(f"Guids: {media.guids}")

audio = media.media[0].parts[0].audioStreams()[0]
print(f"Audio: '{audio.audioChannelLayout}', '{audio.displayTitle}'")
if media.type in ["episode", "movie"]:
audio = media.media[0].parts[0].audioStreams()[0]
print(f"Audio: '{audio.audioChannelLayout}', '{audio.displayTitle}'")

video = media.media[0].parts[0].videoStreams()[0]
print(f"Video: '{video.codec}'")
video = media.media[0].parts[0].videoStreams()[0]
print(f"Video: '{video.codec}'")

print(f"Provider: {m.provider}")
print(f"Id: {m.id}")
Expand Down

0 comments on commit 4d13e5a

Please sign in to comment.