From 457f84cf343e6ff03b6a3a918e0213ae558bf83e Mon Sep 17 00:00:00 2001 From: UrloMythus Date: Fri, 5 Jun 2026 12:36:39 +0200 Subject: [PATCH] subtitles fix vidxgo --- Src/API/extractors/vidxgo.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/Src/API/extractors/vidxgo.py b/Src/API/extractors/vidxgo.py index 2bf0e9c..029594d 100644 --- a/Src/API/extractors/vidxgo.py +++ b/Src/API/extractors/vidxgo.py @@ -92,6 +92,7 @@ async def vidxgo(link,client,streams,instance_url): decrypted_code = u.decode('utf-8') match = re.search(r'currentSrc.+"(https:[^";]+)',decrypted_code) submatch = re.search(r'window.__EXTERNAL_SUBS\s+=\s+(\[.*]);',decrypted_code) + print(submatch.group(1)) suburlmatch = re.search(r'window.__SUBS_ORIGIN\s+=\s*"(.*)";',decrypted_code) if match: url = match.group(1).replace("\\","") @@ -99,6 +100,8 @@ async def vidxgo(link,client,streams,instance_url): if submatch and suburlmatch: subtitles = json.loads(submatch.group(1)) for item in subtitles: + if item['forced'] == True: + item['lang'] += '-forced' del item['forced'] del item['file'] item['url'] = suburlmatch.group(1).replace('\\','') + item['url'] @@ -111,7 +114,7 @@ async def vidxgo(link,client,streams,instance_url): async def test_vidxgo(): from curl_cffi.requests import AsyncSession async with AsyncSession() as client: - results = await vidxgo("https://v.vidxgo.co/tt1190634/1/1",client,{'streams': []},"localhost") + results = await vidxgo("https://v.vidxgo.co/tt0816692",client,{'streams': []},"localhost") print(results) if __name__ == "__main__": import asyncio