digydigy

Results comments of digydigy

https://github.com/flagbug/YoutubeExtractor/issues/332#issuecomment-484198262

[Parse exception](https://github.com/flagbug/YoutubeExtractor/issues/332)

@thehighboy > im not sure what your doing You are right...

@SoftwareMagicIT @ac-lap Here is another fix that doesn't require any "decryption" ------ DownloadUrlResolver.cs Replace line90: string videoTitle = GetVideoTitle(json); line92: IEnumerable downloadUrls = ExtractDownloadUrls(json); line94: IEnumerable infos = GetVideoInfos(downloadUrls, videoTitle).ToList();...

> In my country not, don't show alert, simply failed to found this: var dataRegex = new Regex(@"ytplayer.config\s*=\s*({.+?}); > in row: string extractedJson = dataRegex.Match(pageSource).Result("$1"); go in error (not match)...

A simple (not tested much) alternative for all those codes of this project. Usage: var result = await digydigy.YoutubeLinks.Get(url); --------------- using Newtonsoft.Json; using Newtonsoft.Json.Linq; using System; using System.Collections.Generic; using System.Linq;...

@ColorTwist the only method that may fail is **dataRegex.Match(html)**. Check *Success* property var dataRegex = new Regex(@"ytplayer\.config\s*=\s*(\{.+?\});", RegexOptions.Multiline); var match = dataRegex.Match(html); if (!match.Success) throw new Exception("Can not extract youtube...

@ColorTwist BTW: I would handle the errors/exceptions where I invoke this method, not in it...

@ColorTwist You can use ffmpeg or a video library For ex; start from second 30 and download the next 50 seconds of video.... ffmpeg -ss 00:00:30 -t 50 -i "*extracted_youtube_url*"...