From a3cb235d403ca2c20a478d7e8000fd270767e14d Mon Sep 17 00:00:00 2001 From: yanistyle Date: Tue, 1 Sep 2026 02:23:43 +0300 Subject: [PATCH] =?UTF-8?q?=D0=9E=D0=B1=D0=BD=D0=BE=D0=B2=D0=B8=D1=82?= =?UTF-8?q?=D1=8C=20universal.py?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- universal.py | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/universal.py b/universal.py index dc7a63d..a507f87 100644 --- a/universal.py +++ b/universal.py @@ -1,5 +1,5 @@ -# meta developer: @HoroshoVse -# requires: yt-dlp +# meta developer: @origsama +# requires: yt-dlp curl_cffi from .. import loader, utils import requests import re @@ -113,9 +113,9 @@ class SocialDownloaderMod(loader.Module): ] if source.lower() == 'tiktok': - cmd.extend(['--cookies', 'tiktok_cookies.txt']) + cmd.extend(['--cookies', 'tiktok_cookies.txt', '--impersonate', 'Chrome']) elif source.lower() == 'instagram': - cmd.extend(['--cookies', 'instagram_cookies.txt']) + cmd.extend(['--cookies', 'instagram_cookies.txt', '--impersonate', 'Chrome']) process = await asyncio.create_subprocess_exec( *cmd, stdout=asyncio.subprocess.PIPE, stderr=asyncio.subprocess.PIPE @@ -142,7 +142,7 @@ class SocialDownloaderMod(loader.Module): async def get_video_info(self, url): try: - cmd = [sys.executable, '-m', 'yt_dlp', '--dump-json', '--no-playlist', url] + cmd = [sys.executable, '-m', 'yt_dlp', '--dump-json', '--no-playlist', '--impersonate', 'Chrome', url] process = await asyncio.create_subprocess_exec( *cmd, stdout=asyncio.subprocess.PIPE, stderr=asyncio.subprocess.PIPE )