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.

Unable to download video from YouTube

See original GitHub issue

Version

6.2.2

Details

When attempting to download a video after retrieving playlist/video information just fine, an exception is thrown stating the video is unavailable. Two users of the plugin I work on and myself have reported this bug and it seems pretty consistent.

Seems like this version at least has stopped functioning within the past week or so. Might be a change on Youtube’s side, especially since this repo and the plugin have been pretty stagnant.

The call (from https://github.com/joyrider3774/PlayniteSound/blob/main/Downloaders/YtDownloader.cs#LL118C26-L118C26):

await _youtubeClient.Videos.DownloadAsync(song.Id, path, o => o.SetFFmpegPath(_settings.FFmpegPath));

A ticket opened for this issue: https://github.com/joyrider3774/PlayniteSound/issues/64

The exception for the corresponding ticket: Something went wrong when attempting to download from Youtube with Id ‘ELkfa-MfEw0’ and Path ‘notGonnaPostSomeonesPath\AppData\Local\Playnite\ExtraMetadata\Games\9d8a2178-410e-460a-b548-0eab48eefd02\Music Files\EX Fight Security System Upgrade - Maintenance Management (A Hat in Time MOD OST).mp3’ YoutubeExplode.Exceptions.VideoUnavailableException: Video ‘ELkfa-MfEw0’ is not available. at YoutubeExplode.Videos.VideoController.<GetPlayerResponseAsync>d__2.MoveNext() — End of stack trace from previous location where exception was thrown — at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task) at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task) at YoutubeExplode.Videos.Streams.StreamClient.<GetManifestAsync>d__5.MoveNext() — End of stack trace from previous location where exception was thrown — at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task) at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task) at YoutubeExplode.Converter.ConversionExtensions.<DownloadAsync>d__3.MoveNext() — End of stack trace from previous location where exception was thrown — at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task) at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task) at YoutubeExplode.Converter.ConversionExtensions.<DownloadAsync>d__4.MoveNext() — End of stack trace from previous location where exception was thrown — at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task) at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task) at PlayniteSounds.Downloaders.YtDownloader.<DownloadSongExplodeAsync>d__13.MoveNext() in D:\a\PlayniteSound

Steps to reproduce

Invoke YoutubeClient.Videos.DownloadAsync method with valid parameters.

Issue Analytics

  • State:closed
  • Created 5 months ago
  • Comments:8 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
Tyrrrzcommented, Jun 11, 2023

@Tyrrrz I get the same issue as originally posted in this issue but using the latest version 6.2.15.

This is not related to this issue at all. I tried to pull that video and it worked for me, so might be transient issue.

1reaction
pflannerycommented, Jun 11, 2023

@Tyrrrz I get the same issue as originally posted in this issue but using the latest version 6.2.15.

Video 'GhOFMaqiAOE' is not available.
at YoutubeExplode.Videos.VideoController.GetPlayerResponseAsync(VideoId videoId, Boolean isEmbedded, CancellationToken cancellationToken) in D:\\a\\YoutubeExplode\\YoutubeExplode\\YoutubeExplode\\Videos\\VideoController.cs:line 89
   at YoutubeExplode.Videos.VideoController.GetPlayerResponseAsync(VideoId videoId, CancellationToken cancellationToken) in D:\\a\\YoutubeExplode\\YoutubeExplode\\YoutubeExplode\\Videos\\VideoController.cs:line 94
   at YoutubeExplode.Videos.Streams.StreamClient.GetManifestAsync(VideoId videoId, CancellationToken cancellationToken) in D:\\a\\YoutubeExplode\\YoutubeExplode\\YoutubeExplode\\Videos\\Streams\\StreamClient.cs:line 191
Read more comments on GitHub >

github_iconTop Results From Across the Web

[Problem Solved!] Can't Download YouTube Videos Anymore
YouTube video download needs to use a strong network connection. Usually, you need to make sure that you are using a Wi-Fi network...
Read more >
[2023] Can't Download YouTube Videos Anymore? How to ...
According to YouTube's Terms and Conditions, users are not allowed to download any videos from YouTube. Rather than download videos, YouTube ...
Read more >
I can't download Youtube videos - 6 quick fixes [08-2023]
If you experience problems downloading YouTube videos via YouTube downloaders, ensure that you have an internet connection. Then, resubmit your download URL.
Read more >
[2023 Updated] Can't Download YouTube Videos? Try ...
If you find that you fail to download any YouTube video, it is most likely a result of the outdated download tool. Try...
Read more >
Can't Download YouTube Videos? [Why & How to Fix]
A weak or unstable internet connection can impact a video download. Download issues like slow download speeds or interrupted downloads can arise from...
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