mirror of
https://github.com/fergalmoran/podnoms.git
synced 2025-12-22 09:18:08 +00:00
Tweak of downloader
This commit is contained in:
@@ -54,12 +54,12 @@ namespace PodNoms.Api.Services.Downloader {
|
|||||||
await Task.Run(() => {
|
await Task.Run(() => {
|
||||||
var youtubeDl = new YoutubeDL();
|
var youtubeDl = new YoutubeDL();
|
||||||
youtubeDl.VideoUrl = this._url;
|
youtubeDl.VideoUrl = this._url;
|
||||||
var info = youtubeDl.GetDownloadInfo() as VideoDownloadInfo;
|
DownloadInfo info = youtubeDl.GetDownloadInfo();
|
||||||
ret = (
|
ret = (
|
||||||
info != null &&
|
info != null &&
|
||||||
info is VideoDownloadInfo && //make sure it's not a playlist
|
info is VideoDownloadInfo && //make sure it's not a playlist
|
||||||
(info.Errors.Count == 0 || info.VideoSize != null));
|
(info.Errors.Count == 0 || info.VideoSize != null));
|
||||||
if (ret) this.Properties = info;
|
if (ret) this.Properties = (VideoDownloadInfo)info;
|
||||||
});
|
});
|
||||||
return ret;
|
return ret;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user