Unable to download video from YouTube
See original GitHub issueVersion
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:
- Created 5 months ago
- Comments:8 (4 by maintainers)
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.
@Tyrrrz I get the same issue as originally posted in this issue but using the latest version 6.2.15.