public static List <Stream> GetSubtitleStreams(SVR_VideoLocal_Place vplace)
        {
            List <Stream> ls = new VobSubSubtitles().Process(vplace);

            ls.AddRange(new TextSubtitles().Process(vplace));
            return(ls);
        }
        public static List <Stream> GetSubtitleStreams(SVR_VideoLocal_Place vplace)
        {
            List <Stream> ls            = new VobSubSubtitles().Process(vplace);
            var           textSubtitles = new TextSubtitles().Process(vplace);

            if (textSubtitles != null)
            {
                ls.AddRange(textSubtitles);
            }
            return(ls);
        }
Exemple #3
0
        public static List <TextStream> GetSubtitleStreams(SVR_VideoLocal_Place vplace)
        {
            List <TextStream> ls = new VobSubSubtitles().GetStreams(vplace);

            ls.AddRange(new TextSubtitles().GetStreams(vplace));
            ls.ForEach(a =>
            {
                a.External  = true;
                string lang = GetLanguageFromFilename(vplace.FilePath);
                if (lang == null)
                {
                    return;
                }
                a.Language = lang;
                Tuple <string, string> mapping = MediaInfoUtils.GetLanguageMapping(lang);
                if (mapping == null)
                {
                    return;
                }
                a.LanguageCode = mapping.Item1;
                a.LanguageName = mapping.Item2;
            });
            return(ls);
        }