From b5ae935025ed4d1283bf6766b1dec9869d7a66c1 Mon Sep 17 00:00:00 2001 From: Richkovskiy Lev Date: Mon, 30 Sep 2019 00:10:08 +0300 Subject: [PATCH] InputArgument: use the AbsolutUri value for URLs If i want to download video from video server i use this code: string textLinkVideo = "https://vk.com/video_hls.php?dirs%5B240%5D=https%3A%2F%2Fcs531220.vkuservideo.net%2F5%2Fe15NTMyPzc3MA%2Fvideos%2F&dirs%5B360%5D=https%3A%2F%2Fcs531220.vkuservideo.net%2F5%2Fe15NTMyPzc3MA%2Fvideos%2F&path=5%2Fe15NTMyPzc3MA%2Fvideos%2F&extra=6jU8MLGkIpMxHqpAViGv7wXJofsIDdlwBNfwnjifdOnsHTv8e-h7LsyFJabx26lyLTsNfDBDy4u5H2HU0w9fT6114_FzHvFU2l2A-H9B23gan3k48_L60B68aDHTA_CLGKJEesUqTlEgyLlYoQiQiOg&c_extra=w0ZgeFZ-2ZoxqYTYlfwL5LZA5o2enfF0CqLyrQQVEk2owWZFaD2hfnPrzvLWrQfU81A8u5rCXw_CIe_8TDfITX3Cl12YwhBIfVCR4gmDNPYUbB-2tarthA-mOpY5WK77GAOZHs7gwx65i02-wHjGwIA&video=-7865622_456240009&tag=042ea140e4&c_tag=860d1761765a&hash=848f2afe36a72db4ff&lang_id=0&viewer_id=17403755"; FFMpegModel FFMpegModel = new FFMpegModel(); FFMpegModel.DownloadVideoVk(textLinkVideo, filePath); With AbsolutePath this method return /video_hls.php With AbsoluteUri this.method return full url --- FFMpegCore/FFMPEG/Argument/Atoms/InputArgument.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/FFMpegCore/FFMPEG/Argument/Atoms/InputArgument.cs b/FFMpegCore/FFMPEG/Argument/Atoms/InputArgument.cs index 841cbe3..9c6e084 100644 --- a/FFMpegCore/FFMPEG/Argument/Atoms/InputArgument.cs +++ b/FFMpegCore/FFMPEG/Argument/Atoms/InputArgument.cs @@ -28,7 +28,7 @@ public InputArgument(params FileInfo[] values) : base(values.Select(v => v.FullN { } - public InputArgument(params Uri[] values) : base(values.Select(v => v.AbsolutePath).ToArray()) + public InputArgument(params Uri[] values) : base(values.Select(v => v.AbsoluteUri).ToArray()) { }