diff --git a/torchlight_changes_unloze/torchlight3/Torchlight/Commands.py b/torchlight_changes_unloze/torchlight3/Torchlight/Commands.py index d3267a59..3edf5cfd 100755 --- a/torchlight_changes_unloze/torchlight3/Torchlight/Commands.py +++ b/torchlight_changes_unloze/torchlight3/Torchlight/Commands.py @@ -65,7 +65,7 @@ class URLFilter(BaseCommand): if TimeStr: Time = Utils.ParseTime(TimeStr) - Proc = await asyncio.create_subprocess_exec("yt-dlp", "--dump-json", "-g", url, + Proc = await asyncio.create_subprocess_exec("yt-dlp", "--dump-json", "--username", "oauth2", "--password", "''", "-g", url, stdout = asyncio.subprocess.PIPE) Out, _ = await Proc.communicate() @@ -645,7 +645,7 @@ class YouTubeSearch(BaseCommand): Time = Utils.ParseTime(TimeStr) message[1] = message[1][:Temp.value] - Proc = await asyncio.create_subprocess_exec("yt-dlp", "--dump-json", "-xg", "ytsearch:" + message[1], + Proc = await asyncio.create_subprocess_exec("yt-dlp", "--dump-json", "--username", "oauth2", "--password", "''", "-xg", "ytsearch:" + message[1], stdout = asyncio.subprocess.PIPE) Out, _ = await Proc.communicate()