Beispiel #1
0
        protected void DownloadSubtitlesZipFile(string subtitleSourceUrl, IEnumerable <KeyValuePair <string, string> > httpRequestHeaders)
        {
            if (File.Exists(SubtitlesZipFile))
            {
                File.Delete(SubtitlesZipFile);
            }

            var result = HttpRequester.DownloadAsync(new Uri(subtitleSourceUrl), httpRequestHeaders, false).Result;

            File.WriteAllBytes(SubtitlesZipFile, result);
        }