コード例 #1
0
        public async Task <SubtitleResponse> GetSubtitles(string id, CancellationToken cancellationToken)
        {
            var decode = RemoteSrt.DecodeId(id, _json);

            var res = await _remote.GetSubtitles(decode).ConfigureAwait(false);

            return(new SubtitleResponse
            {
                Format = res.Value,
                Stream = res.Key,
                Language = decode.LanguageCode,
            });
        }