Skip to content

Missing subtitle streams metadata #536

Description

Describe the issue
Metadata for subtitle streams are almost always missing.

Code snipppet

movies = plex.library.section('Movies')
for video in movies.search():
    print("[%s]" % video.title)
    video = video.reload()
    for subtitle in video.subtitleStreams():
        print("\t%s - %s | %s | %s | %s" % (subtitle,  subtitle.title, subtitle.key, subtitle.format, subtitle.forced))
print("done!")

Code snipppet output:

[#RealityHigh]
	<SubtitleStream:42643> - None | None | None | False
	<SubtitleStream:42644> - None | None | None | False
	<SubtitleStream:42645> - None | None | None | False
	<SubtitleStream:42646> - None | None | None | False
	<SubtitleStream:42647> - None | None | None | False
[The 'Burbs]
	<SubtitleStream:194791> - None | None | None | False
[0.0MHz]
	<SubtitleStream:216274:Simplified> - Simplified | None | None | False
	<SubtitleStream:216275:Traditional> - Traditional | None | None | False
	<SubtitleStream:/library/streams/146> - None | /library/streams/146237 | srt | False
[2 Fast 2 Furious]
	<SubtitleStream:210926> - None | None | None | False
	<SubtitleStream:210927> - None | None | None | False
[2 Guns]
	<SubtitleStream:270997> - None | None | None | False
[3 from Hell]
	<SubtitleStream:/library/streams/228> - None | /library/streams/228323 | srt | False
...
...
...
done!

Expected behavior
For example, looking at #RealityHigh via Plex site, I see English, Dutch, French, Spanish, and German non-forced SRT subtitles. I expected to see these information here alongside their key. That should be true for every movie and be mostly consistent.

subtitle.title, subtitle.key, subtitle.format, subtitle.forced shouldn't be nearly always 'None'

Enviroment:

  • OS: Ubuntu; Plex is running in a docker container
  • Plex version: 4.38.2
  • Python Version: 3.8.2
  • PlexAPI version: 3.5.0

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions