Print subtitles information with inspect command
MODIFY
plextraktsync/commands/inspect.py
plextraktsync/commands/inspect.py
@@ -52,6 +52,10 @@ def inspect_media(id):
video = pm.video_streams[0]
print(f"Video: '{video.codec}'")
+ print("Subtitles:")
+ for index, subtitle in enumerate(pm.subtitle_streams, start=1):
+ print(f" Subtitle {index}: ({subtitle.language}) {subtitle.title} (format: {subtitle.format}, selected: {subtitle.selected}, transient: {subtitle.transient})")
+
print("Parts:")
for index, part in enumerate(pm.parts, start=1):
print(f" Part {index}: [link=file://{quote_plus(part.file)}]{part.file}[/link]")

MODIFY
plextraktsync/plex_api.py
plextraktsync/plex_api.py
from plexapi import X_PLEX_CONTAINER_SIZE
from plexapi.exceptions import BadRequest, NotFound, Unauthorized
from plexapi.library import LibrarySection
-from plexapi.media import AudioStream, MediaPart, VideoStream
+from plexapi.media import AudioStream, MediaPart, SubtitleStream, VideoStream
from plexapi.server import PlexServer, SystemAccount, SystemDevice
from plexapi.video import Episode, Movie, Show
from trakt.utils import timestamp
@@ -246,6 +246,10 @@ def audio_streams(self):
def video_streams(self):
return self.streams(VideoStream)
+ @property
+ def subtitle_streams(self):
+ return self.streams(SubtitleStream)
+
@property
def audio_channels(self):
"""

Print subtitles information with inspect command