How to see if external subtitles are present in MP-Tvseries Plugin (1 Viewer)

Soxbrother

Portal Pro
July 23, 2008
115
14
Home Country
Belgium Belgium
Hello,

I'd like to know if it is possible to see if a video has a .srt subtitle present.

Like when you have a .mkv with integrated subs, it shows a "CC" icon at the bottom.
When I have a .mkv without integrated subs and use a .srt subtitle, the "CC" icon isn't there at the bottom.

So I'd like to know if it's also possible to show the icon if you have a .srt subtitle.

Thanks in advance.
Greetings,
Soxbrother
 

RoChess

Extension Developer
  • Premium Supporter
  • March 10, 2006
    4,434
    1,897
    That should work by default, but the SRT is only picked up if it contains the exact same filename of the mediafile and then a language added to the end.

    For example:

    Some Media File.mkv​
    Some Media File.English.srt​

    This will then show up as "English" inside the MediaPortal player when you bring up the subtitle selection dialog. Even if you do not have multiple languages it can still serve a good purpose for the following situation:

    Some Media File with Translated Language Bits.mkv​
    Some Media File with Translated Language Bits.All.Forced.srt​
    Some Media File with Translated Language Bits.Director's.Comments.srt​
    Some Media File with Translated Language Bits.English.srt​

    The SRTs are loaded in alphabetical order, so to make sure "Forced" SRT loads before any other you have to add something to ensure it sorts above any others. Inside an MKV container there is support for the forced subtitle flag I believe, but not for external ones.
     

    Soxbrother

    Portal Pro
    July 23, 2008
    115
    14
    Home Country
    Belgium Belgium
    Thanks, for the reply.
    I'll try it this weekend.

    Is it also possible to have MP ignore the embedded subtitle
    and to have it only scan for the external subtitle ?

    So that if the CC icon shows,
    I know it's the external subtitle for sure.

    Or even better, instead of showing a "CC" icon,
    it could show 2 different icons,
    one for an embedded subtitle
    and one for an external subtitle.

    That would be the ideal solution.

    Then I at least know if it's embedded or external,
    now you're never sure if you see the CC,
    if it's embedded or not.

    I don't know if this would be hard to implement in MP ?

    Greetings,
    Soxbrother
     

    Holzi

    Super Moderator
  • Team MediaPortal
  • April 21, 2010
    7,934
    2,235
    Ba-Wü
    Home Country
    Germany Germany
    TVSeries is very flexible when it comes to logos. You can differ by filename. If filename consists embedded -> Show embedded.png as logo -> else show CC. Or you can show a seperate logo if "external" is in the filename.

    Kinda work to rename episodes but at least it is possible. ;)
     
    Last edited:

    Holzi

    Super Moderator
  • Team MediaPortal
  • April 21, 2010
    7,934
    2,235
    Ba-Wü
    Home Country
    Germany Germany
    Logo rules should be defined in TVSeries config. I did not know where exactly atm.

    Or you can change the TVSeries.SkinSettings.xml of your skin.

    Here is an example from StreamedMP to show the HDTV.png logo if the episode contains hdtv in filename -> e,g. FRIENDS.S01E02.hdtv

    skin\StreamedMP\Media\Logos\MediaInfo\Textual\Misc\HDTV.png;-;<Episode.EpisodeFilename>;-;contains;-;HDTV;-;AND;-;;-;=;-;;-;AND;-;;-;=;-;;-;<Restrict:Episode>

    where the red part is the directory of the logo.
     
    Last edited:

    Soxbrother

    Portal Pro
    July 23, 2008
    115
    14
    Home Country
    Belgium Belgium
    Thanks, I'll try it tomorrow.

    I'll let you know if it works.

    Greetings and have a great weekend,
    Soxbrother
     

    Holzi

    Super Moderator
  • Team MediaPortal
  • April 21, 2010
    7,934
    2,235
    Ba-Wü
    Home Country
    Germany Germany
    If your are using the original StreamedMP skin I can attach you a TVSeries.SkinSettings.xml with this changes. (still you have to find a logo for srt subtitles and embedded subtitles)

    Here is the complete part of the logo rules from StreamedMP (TVSeries.SkinSettings.xml)
    Code:
    <logos import="true"><![CDATA[skin\StreamedMP\Media\Logos\MediaInfo\Textual\Video\SD Fullscreen.png;-;<Episode.videoWidth>;-;<;-;960;-;AND;-;<Episode.VideoAspectRatio>;-;<;-;1.5;-;AND;-;<Episode.VideoAspectRatio>;-;>;-;1.2;-;<Restrict:Episode>
    skin\StreamedMP\Media\Logos\MediaInfo\Textual\Video\SD Widescreen.png;-;<Episode.videoWidth>;-;<;-;960;-;AND;-;<Episode.VideoAspectRatio>;-;<;-;1.9;-;AND;-;<Episode.VideoAspectRatio>;-;>=;-;1.5;-;<Restrict:Episode>
    skin\StreamedMP\Media\Logos\MediaInfo\Textual\Video\SD 540P.png;-;<Episode.videoWidth>;-;=;-;960;-;AND;-;<Episode.videoHeight>;-;<=;-;600;-;AND;-;;-;=;-;;-;<Restrict:Episode>
    skin\StreamedMP\Media\Logos\MediaInfo\Textual\Video\720P.png;-;<Episode.videoWidth>;-;=;-;1280;-;OR;-;<Episode.videoHeight>;-;=;-;720;-;AND;-;;-;=;-;;-;<Restrict:Episode>
    skin\StreamedMP\Media\Logos\MediaInfo\Textual\Video\1080P.png;-;<Episode.videoWidth>;-;=;-;1920;-;OR;-;<Episode.videoHeight>;-;=;-;1080;-;AND;-;;-;=;-;;-;<Restrict:Episode>
    skin\StreamedMP\Media\Logos\MediaInfo\Textual\Video\H264.png;-;<Episode.VideoFormat>;-;=;-;AVC;-;OR;-;<Episode.VideoCodec>;-;=;-;h264;-;AND;-;;-;=;-;;-;<Restrict:Episode>
    skin\StreamedMP\Media\Logos\MediaInfo\Textual\Video\MP2V.png;-;<Episode.VideoFormat>;-;=;-;MPEG Video;-;AND;-;<Episode.VideoFormatProfile>;-;contains;-;Main;-;AND;-;;-;=;-;;-;<Restrict:Episode>
    skin\StreamedMP\Media\Logos\MediaInfo\Textual\Video\DIVX.png;-;<Episode.VideoCodec>;-;contains;-;DIVX;-;OR;-;<Episode.VideoCodec>;-;contains;-;DX50;-;OR;-;<Episode.VideoCodec>;-;contains;-;DIV3;-;<Restrict:Episode>
    skin\StreamedMP\Media\Logos\MediaInfo\Textual\Video\XVID.png;-;<Episode.VideoCodec>;-;contains;-;XVID;-;OR;-;<Episode.VideoCodec>;-;contains;-;MPG4;-;AND;-;;-;=;-;;-;<Restrict:Episode>
    skin\StreamedMP\Media\Logos\MediaInfo\Textual\Video\VC-1.png;-;<Episode.VideoFormat>;-;contains;-;VC-1;-;OR;-;<Episode.VideoCodec>;-;contains;-;VC1;-;AND;-;;-;=;-;;-;<Restrict:Episode>
    skin\StreamedMP\Media\Logos\MediaInfo\Textual\Video\WMV.png;-;<Episode.VideoCodec>;-;contains;-;WMV;-;AND;-;;-;=;-;;-;AND;-;;-;=;-;;-;<Restrict:Episode>
    skin\StreamedMP\Media\Logos\MediaInfo\Textual\Video\VP6.png;-;<Episode.VideoFormat>;-;=;-;VP6;-;AND;-;;-;=;-;;-;AND;-;;-;=;-;;-;<Restrict:Episode>
    skin\StreamedMP\Media\Logos\MediaInfo\Textual\Video\REAL.png;-;<Episode.VideoCodec>;-;contains;-;REAL;-;AND;-;;-;=;-;;-;AND;-;;-;=;-;;-;<Restrict:Episode>
    skin\StreamedMP\Media\Logos\MediaInfo\Textual\Audio\AC3 Stereo.png;-;<Episode.AudioFormat>;-;=;-;AC-3;-;AND;-;<Episode.AudioChannels>;-;=;-;2;-;AND;-;;-;=;-;;-;<Restrict:Episode>
    skin\StreamedMP\Media\Logos\MediaInfo\Textual\Audio\AC3 5.1.png;-;<Episode.AudioFormat>;-;=;-;AC-3;-;AND;-;<Episode.AudioChannels>;-;=;-;6;-;AND;-;;-;=;-;;-;<Restrict:Episode>
    skin\StreamedMP\Media\Logos\MediaInfo\Textual\Audio\AC3+ 5.1.png;-;<Episode.AudioFormat>;-;=;-;E-AC-3;-;AND;-;<Episode.AudioChannels>;-;=;-;6;-;AND;-;;-;=;-;;-;<Restrict:Episode>
    skin\StreamedMP\Media\Logos\MediaInfo\Textual\Audio\AC3+ 7.1.png;-;<Episode.AudioFormat>;-;=;-;E-AC-3;-;AND;-;<Episode.AudioChannels>;-;=;-;8;-;AND;-;;-;=;-;;-;<Restrict:Episode>
    skin\StreamedMP\Media\Logos\MediaInfo\Textual\Audio\DTS 5.1.png;-;<Episode.AudioFormat>;-;=;-;DTS;-;AND;-;<Episode.AudioFormatProfile>;-;=;-;-1;-;AND;-;<Episode.AudioChannels>;-;=;-;6;-;<Restrict:Episode>
    skin\StreamedMP\Media\Logos\MediaInfo\Textual\Audio\DTS 7.png;-;<Episode.AudioFormat>;-;=;-;DTS;-;AND;-;<Episode.AudioFormatProfile>;-;=;-;-1;-;AND;-;<Episode.AudioChannels>;-;=;-;7;-;<Restrict:Episode>
    skin\StreamedMP\Media\Logos\MediaInfo\Textual\Audio\DTS 7.1.png;-;<Episode.AudioFormat>;-;=;-;DTS;-;AND;-;<Episode.AudioFormatProfile>;-;=;-;-1;-;AND;-;<Episode.AudioChannels>;-;=;-;8;-;<Restrict:Episode>
    skin\StreamedMP\Media\Logos\MediaInfo\Textual\Audio\DTS MA 5.1.png;-;<Episode.AudioFormat>;-;=;-;DTS;-;AND;-;<Episode.AudioFormatProfile>;-;=;-;MA;-;AND;-;<Episode.AudioChannels>;-;=;-;6;-;<Restrict:Episode>
    skin\StreamedMP\Media\Logos\MediaInfo\Textual\Audio\DTS MA 7.png;-;<Episode.AudioFormat>;-;=;-;DTS;-;AND;-;<Episode.AudioFormatProfile>;-;=;-;MA;-;AND;-;<Episode.AudioChannels>;-;=;-;7;-;<Restrict:Episode>
    skin\StreamedMP\Media\Logos\MediaInfo\Textual\Audio\DTS MA 7.1.png;-;<Episode.AudioFormat>;-;=;-;DTS;-;AND;-;<Episode.AudioFormatProfile>;-;=;-;MA;-;AND;-;<Episode.AudioChannels>;-;=;-;8;-;<Restrict:Episode>
    skin\StreamedMP\Media\Logos\MediaInfo\Textual\Audio\DTS HRA 5.1.png;-;<Episode.AudioFormat>;-;=;-;DTS;-;AND;-;<Episode.AudioFormatProfile>;-;=;-;HRA;-;AND;-;<Episode.AudioChannels>;-;=;-;6;-;<Restrict:Episode>
    skin\StreamedMP\Media\Logos\MediaInfo\Textual\Audio\DTS HRA 7.png;-;<Episode.AudioFormat>;-;=;-;DTS;-;AND;-;<Episode.AudioFormatProfile>;-;=;-;HRA;-;AND;-;<Episode.AudioChannels>;-;=;-;7;-;<Restrict:Episode>
    skin\StreamedMP\Media\Logos\MediaInfo\Textual\Audio\DTS HRA 7.1.png;-;<Episode.AudioFormat>;-;=;-;DTS;-;AND;-;<Episode.AudioFormatProfile>;-;=;-;HRA;-;AND;-;<Episode.AudioChannels>;-;=;-;8;-;<Restrict:Episode>
    skin\StreamedMP\Media\Logos\MediaInfo\Textual\Audio\TrueHD 5.1.png;-;<Episode.AudioFormatProfile>;-;contains;-;TrueHD;-;AND;-;<Episode.AudioChannels>;-;=;-;6;-;AND;-;;-;=;-;;-;<Restrict:Episode>
    skin\StreamedMP\Media\Logos\MediaInfo\Textual\Audio\TrueHD 7.1.png;-;<Episode.AudioFormatProfile>;-;contains;-;TrueHD;-;AND;-;<Episode.AudioChannels>;-;contains;-;8;-;AND;-;;-;=;-;;-;<Restrict:Episode>
    skin\StreamedMP\Media\Logos\MediaInfo\Textual\Audio\FLAC Stereo.png;-;<Episode.AudioFormat>;-;contains;-;FLAC;-;AND;-;<Episode.AudioChannels>;-;=;-;2;-;AND;-;;-;=;-;;-;<Restrict:Episode>
    skin\StreamedMP\Media\Logos\MediaInfo\Textual\Audio\FLAC 5.1.png;-;<Episode.AudioFormat>;-;contains;-;FLAC;-;AND;-;<Episode.AudioChannels>;-;=;-;6;-;AND;-;;-;=;-;;-;<Restrict:Episode>
    skin\StreamedMP\Media\Logos\MediaInfo\Textual\Audio\FLAC 7.1.png;-;<Episode.AudioFormat>;-;contains;-;FLAC;-;AND;-;<Episode.AudioChannels>;-;=;-;8;-;AND;-;;-;=;-;;-;<Restrict:Episode>
    skin\StreamedMP\Media\Logos\MediaInfo\Textual\Audio\MP3 Stereo.png;-;<Episode.AudioFormat>;-;=;-;MPEG Audio;-;AND;-;<Episode.AudioChannels>;-;=;-;2;-;AND;-;;-;=;-;;-;<Restrict:Episode>
    skin\StreamedMP\Media\Logos\MediaInfo\Textual\Audio\MP3 5.1.png;-;<Episode.AudioFormat>;-;=;-;MPEG Audio;-;AND;-;<Episode.AudioChannels>;-;=;-;6;-;AND;-;;-;=;-;;-;<Restrict:Episode>
    skin\StreamedMP\Media\Logos\MediaInfo\Textual\Audio\AAC Stereo.png;-;<Episode.AudioFormat>;-;=;-;AAC;-;AND;-;<Episode.AudioChannels>;-;=;-;2;-;AND;-;;-;=;-;;-;<Restrict:Episode>
    skin\StreamedMP\Media\Logos\MediaInfo\Textual\Audio\AAC 5.1.png;-;<Episode.AudioFormat>;-;=;-;AAC;-;AND;-;<Episode.AudioChannels>;-;=;-;6;-;AND;-;;-;=;-;;-;<Restrict:Episode>
    skin\StreamedMP\Media\Logos\MediaInfo\Textual\Audio\VORBIS.png;-;<Episode.AudioFormat>;-;=;-;VORBIS;-;AND;-;;-;=;-;;-;AND;-;;-;=;-;;-;<Restrict:Episode>
    skin\StreamedMP\Media\Logos\MediaInfo\Textual\Audio\WMA Stereo.png;-;<Episode.AudioFormat>;-;=;-;WMA;-;AND;-;<Episode.AudioChannels>;-;=;-;2;-;AND;-;;-;=;-;;-;<Restrict:Episode>
    skin\StreamedMP\Media\Logos\MediaInfo\Textual\Audio\WMA 5.1.png;-;<Episode.AudioFormat>;-;=;-;WMA;-;AND;-;<Episode.AudioChannels>;-;=;-;6;-;AND;-;;-;=;-;;-;<Restrict:Episode>
    skin\StreamedMP\Media\Logos\MediaInfo\Textual\Audio\REAL.png;-;<Episode.AudioFormat>;-;contains;-;REAL;-;AND;-;;-;=;-;;-;AND;-;;-;=;-;;-;<Restrict:Episode>
    skin\StreamedMP\Media\Logos\MediaInfo\Textual\Misc\MULTIAUDIO.png;-;<Episode.AudioTracks>;-;>;-;1;-;AND;-;;-;=;-;;-;AND;-;;-;=;-;;-;<Restrict:Episode>
    skin\StreamedMP\Media\Logos\MediaInfo\Textual\Misc\DVD.png;-;<Episode.EpisodeFilename>;-;contains;-;DVD;-;AND;-;<Episode.EpisodeFilename>;-;!contains;-;HDDVD;-;AND;-;<Episode.EpisodeFilename>;-;!contains;-;HD-DVD;-;<Restrict:Episode>
    skin\StreamedMP\Media\Logos\MediaInfo\Textual\Misc\HDTV.png;-;<Episode.EpisodeFilename>;-;contains;-;HDTV;-;AND;-;;-;=;-;;-;AND;-;;-;=;-;;-;<Restrict:Episode>
    skin\StreamedMP\Media\Logos\MediaInfo\Textual\Misc\HDDVD.png;-;<Episode.EpisodeFilename>;-;contains;-;HDDVD;-;OR;-;<Episode.EpisodeFilename>;-;contains;-;HD-DVD;-;AND;-;;-;=;-;;-;<Restrict:Episode>
    skin\StreamedMP\Media\Logos\MediaInfo\Textual\Misc\BLURAY.png;-;<Episode.EpisodeFilename>;-;contains;-;BLURAY;-;OR;-;<Episode.EpisodeFilename>;-;contains;-;BLU-RAY;-;AND;-;;-;=;-;;-;<Restrict:Episode>
    skin\StreamedMP\Media\Logos\MediaInfo\Textual\Misc\WEB-DL.png;-;<Episode.EpisodeFilename>;-;contains;-;WEBDL;-;OR;-;<Episode.EpisodeFilename>;-;contains;-;WEB-DL;-;OR;-;<Episode.EpisodeFilename>;-;contains;-;ITUNES;-;<Restrict:Episode>
    skin\StreamedMP\Media\Logos\MediaInfo\Textual\Misc\SUBTITLES.png;-;<Episode.AvailableSubtitles>;-;=;-;1;-;OR;-;<Episode.EpisodeFilename>;-;contains;-;subbed.;-;AND;-;;-;=;-;;-;]]></logos>
     
    Last edited:

    RoChess

    Extension Developer
  • Premium Supporter
  • March 10, 2006
    4,434
    1,897
    @Holzi, if you find artwork it might be a good default adjustment for the default skins as well. Looks like a logo rule that more users can benefit from as there are a lot of subtitle users of MediaPortal.
     

    kiwijunglist

    Super Moderator
  • Team MediaPortal
  • June 10, 2008
    6,746
    1,751
    New Zealand
    Home Country
    New Zealand New Zealand
    I personally don't see the merit in distinguishing between embedded and external subtitles as both are supported by the internal player. I prefer that they are combined. Also when you chose a subtitle in the player there is no distinction between external and internal.
     

    Users who are viewing this thread

    Top Bottom