mirror of
https://github.com/Inside4ndroid/TMDB-Embed-API.git
synced 2026-10-22 09:35:11 +00:00
Fixed Proxy URL stripper bug and HTTP protocol bug
This commit is contained in:
@@ -95,7 +95,9 @@ function extractOriginalUrl(proxyUrl) {
|
||||
while (decoded.includes('%2F')) {
|
||||
try { decoded = decodeURIComponent(decoded); } catch { break; }
|
||||
}
|
||||
return decoded;
|
||||
if (decoded.startsWith('http://') || decoded.startsWith('https://')) return decoded;
|
||||
// If it's just a path (like Vidlink /proxy/wiwii/...), keep the full original URL
|
||||
return proxyUrl;
|
||||
}
|
||||
}
|
||||
if (url.searchParams.has('url')) return decodeURIComponent(url.searchParams.get('url'));
|
||||
|
||||
Reference in New Issue
Block a user