DeepVoyager253 / FlowLauncherYTDownload

a youtube downloader for the flow launcher
9 stars 4 forks source link

Bug: YoutubeDownloader gives Error when downloading any youtube video #13

Open Shwibi opened 1 month ago

Shwibi commented 1 month ago

image

Please open new issue in: https://github.com/Flow-Launcher/Flow.Launcher/issues

  1. upload log file: C:\Users\user\AppData\Roaming\FlowLauncher\Logs\1.18.0\2024-07-23.txt
  2. copy below exception message

Flow Launcher version: 1.18.0 OS Version: 22631.3880 IntPtr Length: 8 x64: True

Python Path: C:\Users\user\AppData\Local\Programs\Python\Python311\pythonw.exe Node Path: Date: 07/23/2024 09:03:26 Exception: System.IO.InvalidDataException: Traceback (most recent call last): File "C:\Users\user\AppData\Roaming\FlowLauncher\Plugins\Youtube Downloader-1.0.1\main.py", line 94, in YoutubeDownload() File "C:\Users\user\AppData\Roaming\FlowLauncher\Plugins\Youtube Downloader-1.0.1\lib\flowlauncher\FlowLauncher.py", line 33, in init results = request_method(request_parameters) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "C:\Users\user\AppData\Roaming\FlowLauncher\Plugins\Youtube Downloader-1.0.1\main.py", line 88, in download_video video = youtube.streams.get_highest_resolution() ^^^^^^^^^^^^^^^ File "C:\Users\user\AppData\Roaming\FlowLauncher\Plugins\Youtube Downloader-1.0.1\lib\pytube__main.py", line 296, in streams return StreamQuery(self.fmt_streams) ^^^^^^^^^^^^^^^^ File "C:\Users\user\AppData\Roaming\FlowLauncher\Plugins\Youtube Downloader-1.0.1\lib\pytube__main.py", line 176, in fmt_streams stream_manifest = extract.apply_descrambler(self.streaming_data) ^^^^^^^^^^^^^^^^^^^ File "C:\Users\user\AppData\Roaming\FlowLauncher\Plugins\Youtube Downloader-1.0.1\lib\pytube\main__.py", line 160, in streaming_data self.bypass_age_gate() File "C:\Users\user\AppData\Roaming\FlowLauncher\Plugins\Youtube Downloader-1.0.1\lib\pytube\main__.py", line 257, in bypass_age_gate innertube_response = innertube.player(self.video_id) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "C:\Users\user\AppData\Roaming\FlowLauncher\Plugins\Youtube Downloader-1.0.1\lib\pytube\innertube.py", line 448, in player return self._call_api(endpoint, query, self.base_data) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "C:\Users\user\AppData\Roaming\FlowLauncher\Plugins\Youtube Downloader-1.0.1\lib\pytube\innertube.py", line 390, in _call_api response = request._execute_request( ^^^^^^^^^^^^^^^^^^^^^^^^^ File "C:\Users\user\AppData\Roaming\FlowLauncher\Plugins\Youtube Downloader-1.0.1\lib\pytube\request.py", line 37, in _execute_request return urlopen(request, timeout=timeout) # nosec ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "C:\Users\user\AppData\Local\Programs\Python\Python311\Lib\urllib\request.py", line 216, in urlopen return opener.open(url, data, timeout) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "C:\Users\user\AppData\Local\Programs\Python\Python311\Lib\urllib\request.py", line 525, in open response = meth(req, response) ^^^^^^^^^^^^^^^^^^^ File "C:\Users\user\AppData\Local\Programs\Python\Python311\Lib\urllib\request.py", line 634, in http_response response = self.parent.error( ^^^^^^^^^^^^^^^^^^ File "C:\Users\user\AppData\Local\Programs\Python\Python311\Lib\urllib\request.py", line 563, in error return self._call_chain(args) ^^^^^^^^^^^^^^^^^^^^^^^ File "C:\Users\user\AppData\Local\Programs\Python\Python311\Lib\urllib\request.py", line 496, in _call_chain result = func(*args) ^^^^^^^^^^^ File "C:\Users\user\AppData\Local\Programs\Python\Python311\Lib\urllib\request.py", line 643, in http_error_default raise HTTPError(req.full_url, code, msg, hdrs, fp) urllib.error.HTTPError: HTTP Error 400: Bad Request

at Flow.Launcher.Core.Plugin.JsonRPCPlugin.ExecuteAsync(ProcessStartInfo startInfo, CancellationToken token) in C:\projects\flow-launcher\Flow.Launcher.Core\Plugin\JsonRPCPlugin.cs:line 243 at Flow.Launcher.Core.Plugin.JsonRPCPlugin.ExecuteAsync(ProcessStartInfo startInfo, CancellationToken token) in C:\projects\flow-launcher\Flow.Launcher.Core\Plugin\JsonRPCPlugin.cs:line 248 at Flow.Launcher.Core.Plugin.JsonRPCPlugin.ExecuteResultAsync(JsonRPCResult result) in C:\projects\flow-launcher\Flow.Launcher.Core\Plugin\JsonRPCPlugin.cs:line 117 at Flow.Launcher.Core.Plugin.JsonRPCPluginBase.<>c__DisplayClass18_0.<b0>d.MoveNext() in C:\projects\flow-launcher\Flow.Launcher.Core\Plugin\JsonRPCPluginBase.cs:line 89 --- End of stack trace from previous location --- at Flow.Launcher.ViewModel.MainViewModel.OpenResultAsync(String index) in C:\projects\flow-launcher\Flow.Launcher\ViewModel\MainViewModel.cs:line 307 at CommunityToolkit.Mvvm.Input.AsyncRelayCommand.AwaitAndThrowIfFailed(Task executionTask) at System.Threading.Tasks.Task.<>c.b128_0(Object state) at System.Windows.Threading.ExceptionWrapper.InternalRealCall(Delegate callback, Object args, Int32 numArgs) at System.Windows.Threading.ExceptionWrapper.TryCatchWhen(Object source, Delegate callback, Object args, Int32 numArgs, Delegate catchHandler) 2024-07-23.txt

DRYN07 commented 1 month ago

Yep, I got an error too. I attach my log if it matter, but I suppose it is the same.

CUR5EDFLVME commented 1 month ago

same