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; }
public Task <Media> GetMedia(string directory) { return(_engine.GetMedia(directory)); }