Merge branch 'feature/playlists' into develop

This commit is contained in:
Fergal Moran
2018-03-10 17:42:55 +00:00

View File

@@ -54,12 +54,12 @@ namespace PodNoms.Api.Services.Downloader {
await Task.Run(() => {
var youtubeDl = new YoutubeDL();
youtubeDl.VideoUrl = this._url;
var info = youtubeDl.GetDownloadInfo() as VideoDownloadInfo;
DownloadInfo info = youtubeDl.GetDownloadInfo();
ret = (
info != null &&
info is VideoDownloadInfo && //make sure it's not a playlist
(info.Errors.Count == 0 || info.VideoSize != null));
if (ret) this.Properties = info;
if (ret) this.Properties = (VideoDownloadInfo)info;
});
return ret;
}