pannal / Sub-Zero.bundle

Subtitles for Plex, as good you would expect them to be.
Other
1.76k stars 120 forks source link

Some media show "Unknown (SRT External)" and "English (SRT External)" in Plex #721

Open kevindd992002 opened 4 years ago

kevindd992002 commented 4 years ago

So like the title says, some of my media files show both of those options in Plex even though I only have one SRT for that specific media file. Here's an example:

image

Here's is S10E12 in Plex:

image

Here's the mediainfo of that file:

root@a61c2576b2cc:/data/tvshows/The Walking Dead (2010)/Season 10# mediainfo "The Walking Dead (2010) - S10E12 - Walk With Us - [WEBDL-1080p] [EAC3 5.1ch] [h264 8bit] - Sonarr.mkv"
General
Unique ID                                : 171987530160304615075234611702795104196 (0x816397EBA9EB17F0A68CCD8C51EC6FC4)
Complete name                            : The Walking Dead (2010) - S10E12 - Walk With Us - [WEBDL-1080p] [EAC3 5.1ch] [h264 8bit] - Sonarr.mkv
Format                                   : Matroska
Format version                           : Version 4 / Version 2
File size                                : 3.13 GiB
Duration                                 : 43 min 49 s
Overall bit rate                         : 10.2 Mb/s
Movie name                               : The Walking Dead 10x12 (Walk with Us) - release by messafan for CasStudio
Encoded date                             : UTC 2020-03-16 11:57:38
Writing application                      : mkvmerge v6.7.0 ('Back to the Ground') 64bit built on Jan  8 2014 15:10:52
Writing library                          : libebml v1.3.0 + libmatroska v1.4.1

Video
ID                                       : 1
Format                                   : AVC
Format/Info                              : Advanced Video Codec
Format profile                           : High@L4
Format settings                          : CABAC / 4 Ref Frames
Format settings, CABAC                   : Yes
Format settings, ReFrames                : 4 frames
Codec ID                                 : V_MPEG4/ISO/AVC
Duration                                 : 43 min 49 s
Bit rate mode                            : Constant
Bit rate                                 : 9 393 kb/s
Nominal bit rate                         : 10 000 kb/s
Width                                    : 1 920 pixels
Height                                   : 1 080 pixels
Display aspect ratio                     : 16:9
Frame rate mode                          : Constant
Frame rate                               : 23.976 (24000/1001) FPS
Color space                              : YUV
Chroma subsampling                       : 4:2:0
Bit depth                                : 8 bits
Scan type                                : Progressive
Bits/(Pixel*Frame)                       : 0.189
Stream size                              : 2.88 GiB (92%)
Default                                  : Yes
Forced                                   : No
Color range                              : Limited
Color primaries                          : BT.709
Transfer characteristics                 : BT.709
Matrix coefficients                      : BT.709

Audio
ID                                       : 2
Format                                   : E-AC-3
Format/Info                              : Enhanced Audio Coding 3
Codec ID                                 : A_EAC3
Duration                                 : 43 min 49 s
Bit rate mode                            : Constant
Bit rate                                 : 640 kb/s
Channel(s)                               : 6 channels
Channel positions                        : Front: L C R, Side: L R, LFE
Sampling rate                            : 48.0 kHz
Frame rate                               : 187.500 FPS (256 SPF)
Compression mode                         : Lossy
Stream size                              : 201 MiB (6%)
Language                                 : English
Service kind                             : Complete Main
Default                                  : Yes
Forced                                   : No

Text #1
ID                                       : 3
Format                                   : UTF-8
Codec ID                                 : S_TEXT/UTF8
Codec ID/Info                            : UTF-8 Plain Text
Language                                 : English
Default                                  : No
Forced                                   : No

Text #2
ID                                       : 4
Format                                   : UTF-8
Codec ID                                 : S_TEXT/UTF8
Codec ID/Info                            : UTF-8 Plain Text
Title                                    : SDH
Language                                 : English
Default                                  : No
Forced                                   : No

And with the --Inform param:

root@a61c2576b2cc:/data/tvshows/The Walking Dead (2010)/Season 10# mediainfo --Inform="Text;-%ID%_%Title%" "The Walking Dead (2010) - S10E12 - Walk With Us - [WEBDL-1080p] [EAC3 5.1ch] [h264 8bit] - Sonarr.mkv"
-3_-4_SDH

So what gives?

pannal commented 4 years ago

Interesting, can you show the XML dump from Plex Web? Also, post the logs after you refreshed this episode?

kevindd992002 commented 4 years ago

This is another episode of another show but it basically has the same issue:

image

image

And here's its XML dump:

<MediaContainer size="1" allowSync="1" identifier="com.plexapp.plugins.library" librarySectionID="4" librarySectionTitle="TV Shows" librarySectionUUID="2e8db09c-2f41-4c60-8520-c80956301679" mediaTagPrefix="/system/bundle/media/flags/" mediaTagVersion="1586432282">
<Video ratingKey="3803" key="/library/metadata/3803" parentRatingKey="3774" grandparentRatingKey="3773" guid="com.plexapp.agents.thetvdb://266189/7/13?lang=en" parentGuid="com.plexapp.agents.thetvdb://266189/7?lang=en" grandparentGuid="com.plexapp.agents.thetvdb://266189?lang=en" type="episode" title="Newton Purcell" grandparentKey="/library/metadata/3773" parentKey="/library/metadata/3774" librarySectionTitle="TV Shows" librarySectionID="4" librarySectionKey="/library/sections/4" grandparentTitle="The Blacklist" parentTitle="Season 7" contentRating="TV-14" summary="The Task Force investigates a series of attacks on data centers perpetrated by a blacklister with a peculiar condition, as Liz conducts a secret investigation on the side. Glen desperately tries to prove his value to Red after a shipping mishap." index="13" parentIndex="7" viewOffset="871000" lastViewedAt="1586416868" year="2020" thumb="/library/metadata/3803/thumb/1586023846" art="/library/metadata/3773/art/1585971541" parentThumb="/library/metadata/3774/thumb/1585971541" grandparentThumb="/library/metadata/3773/thumb/1585971541" grandparentArt="/library/metadata/3773/art/1585971541" grandparentTheme="/library/metadata/3773/theme/1585971541" duration="2580032" originallyAvailableAt="2020-04-03" addedAt="1585970910" updatedAt="1586023846">
<Media id="7319" duration="2580032" bitrate="9969" width="1920" height="1080" aspectRatio="1.78" audioChannels="6" audioCodec="eac3" videoCodec="h264" videoResolution="1080" container="mkv" videoFrameRate="24p" videoProfile="high">
<Part accessible="1" exists="1" id="7989" key="/library/parts/7989/1585915200/file.mkv" duration="2580032" file="/data/tvshows/The Blacklist (2013)/Season 07/The Blacklist (2013) - S07E13 - Newton Purcell - [WEBDL-1080p] [EAC3 5.1ch] [h264 8bit] - NTb.mkv" size="3215886878" container="mkv" deepAnalysisVersion="4" requiredBandwidths="10462,10288,10112,10112,10112,10112,10112,10112" videoProfile="high">
<Stream id="26169" streamType="1" default="1" codec="h264" index="0" bitrate="9329" bitDepth="8" chromaLocation="left" chromaSubsampling="4:2:0" codedHeight="1088" codedWidth="1920" colorPrimaries="bt709" colorRange="tv" colorSpace="bt709" colorTrc="bt709" frameRate="23.976" hasScalingMatrix="0" height="1080" level="40" profile="high" refFrames="4" requiredBandwidths="9822,9647,9474,9474,9474,9474,9474,9474" scanType="progressive" width="1920" displayTitle="1080p (H.264)"/>
<Stream id="26170" streamType="2" selected="1" default="1" codec="eac3" index="1" channels="6" bitrate="640" language="English" languageCode="eng" audioChannelLayout="5.1(side)" requiredBandwidths="639,639,639,639,639,639,639,639" samplingRate="48000" displayTitle="English (EAC3 5.1)"/>
<Stream id="26171" streamType="3" codec="srt" index="2" bitrate="0" language="English" languageCode="eng" requiredBandwidths="1,1,1,1,1,1,1,1" title="SDH" displayTitle="English (SRT)"/>
<Stream id="26377" key="/library/streams/26377" streamType="3" selected="1" codec="srt" language="English" languageCode="eng" format="srt" displayTitle="English (SRT External)"/>
</Part>
</Media>
<Extras size="0"> </Extras>
</Video>
</MediaContainer>
pannal commented 4 years ago

Please post the logs after refreshing that particular episode in PlexWeb!

kevindd992002 commented 4 years ago

I accidentally deleted the file after watching it earlier, sorry. But I redownloaded it for the sake of recreating the issue. The problem is that as soon as I downloaded it and it was imported in Plex, I don't see the issue anymore. I'm trying to find another episode that has the issue now and I'll get back to you.

Could this be a temporary Plex metadata issue though?

pannal commented 4 years ago

Might be, that's why I was asking for the refresh :)