question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

YoutubeConverter.DownloadVideoAsync Error

See original GitHub issue
            string id = SongID.Text;

            Console.WriteLine($"Working on video [{id}]...");

            // Get video info
            var video = await YoutubeClient.GetVideoAsync(id);
            var cleanTitle = $"{video.Title}";
            Console.WriteLine($"{video.Title}");

            string OutputDirectoryPath = System.IO.Path.Combine(@"C:\Users\nazik\Documents");

            // Download video as mp3
            Console.WriteLine("Downloading...");
            Directory.CreateDirectory(OutputDirectoryPath);
            var outputFilePath = Path.Combine(OutputDirectoryPath, $"{cleanTitle}.mp3");
            await YoutubeConverter.DownloadVideoAsync(id, outputFilePath);

            // Edit mp3 metadata
            Console.WriteLine("Writing metadata...");
            var idMatch = Regex.Match(video.Title, @"^(?<artist>.*?)-(?<title>.*?)$");
            var artist = idMatch.Groups["artist"].Value.Trim();
            var title = idMatch.Groups["title"].Value.Trim();
            using (var meta = TagLib.File.Create(outputFilePath))
            {
                meta.Tag.Performers = new[] { artist };
                meta.Tag.Title = title;
                meta.Save();
            }

            MessageBox.Show($"Downloaded and converted video [{id}] to [{outputFilePath}]");

When I start this code

YoutubeExplode.Exceptions.UnrecognizedStructureException: ‘Could not find signature decipherer function name. Please report this issue on GitHub.’

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:7 (2 by maintainers)

github_iconTop GitHub Comments

1reaction
Tyrrrzcommented, Jun 21, 2019

Closing in favor of #252. Also, in the future don’t report YoutubeExplode.Converter issues here, although this is not one of them.

0reactions
Tyrrrzcommented, Jun 21, 2019

You are welcome to submit a pull request

Read more comments on GitHub >

github_iconTop Results From Across the Web

Is there a way to use youtube-dl in async
Your question assumes that youtube-dl requires ffmpeg to work. It's not entirely true, it can download individual streams by its own means, ...
Read more >
How to use AsyncPublisher to convert @Published ... - YouTube
Previous video : https://youtu.be/wSmTbtOwgbE If you enjoyed this FREE ... How to use AsyncPublisher to convert @Published to Async / Await ...
Read more >
Make your own YouTube Downloader
Downloading videos from YouTube is against their policy. The purpose of the article is just to demonstrate how you can download content from ......
Read more >
Developing a Progressive Fetch YouTube Downloader
Lately, I've been itching to develop an Electron App for downloading YouTube videos in performant way by using streams rather than keeping ...
Read more >
YouTube Video Downloader using C# Console Application
The provided code demonstrates a simple console application that performs a multiple video download process from Youtube.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found