flagbug / YoutubeExtractor

A .NET library, that allows to download videos from YouTube and/or extract their audio track (currently only for flash videos).
816 stars 374 forks source link

No Audio #319

Open GavinKeane opened 6 years ago

GavinKeane commented 6 years ago

About 1 week ago or so, a problem arose where I get no audio track from the clip.

The bit that is suppose to be doing the download looks like this.

YoutubeExtractor.VideoInfo video; IEnumerable videoInfos = DownloadUrlResolver.GetDownloadUrls(link, false); video = videoInfos.First(info => info.VideoType == VideoType.Mp4 && info.Resolution == 144); if (video.RequiresDecryption) { DownloadUrlResolver.DecryptDownloadUrl(video); } var videoDownloader = new VideoDownloader(video, Path.Combine(videoPath)); Thread thread = new Thread(() => { videoDownloader.Execute(); }) { IsBackground = true }; thread.Start();

On a side note, I patched decipherer.cs with the string functNamePattern = @"(\w+)\s=\sfunction(\s(\w+)\s)\s{\s\2\s=\s\2.split(\""\"")\s;(.+)return\s\2.join(\""\"")\s}\s;"; fix that someone posted earlier if that even matters. Thanks in advance for any insight you may have.

GavinKeane commented 6 years ago

Is anyone else having this issue as of late?