Пример #1
0
        public async Task DownloadMedia()
        {
            if (_downloadInitialized)
            {
                return;
            }
            if (Equals(SearchResult, null))
            {
                return;
            }

            var media = await Novaroma.Helper.RunTask(() => _engine.GetMedia(SearchResult), _exceptionHandler);

            Media = InitMedia(media);

            _downloadInitialized = true;
        }
Пример #2
0
 public Task <Media> GetMedia(string directory)
 {
     return(_engine.GetMedia(directory));
 }