[ie/vidlii] Handle relative URLs

Closes #7480
This commit is contained in:
pukkandan 2023-07-06 19:35:49 +05:30
parent 94ed638a43
commit ad8902f616
No known key found for this signature in database
GPG Key ID: 7EEE9E1E817D0A39
1 changed files with 1 additions and 0 deletions

View File

@ -70,6 +70,7 @@ class VidLiiIE(InfoExtractor):
r'src\s*:\s*(["\'])(?P<url>(?:https?://)?(?:(?!\1).)+)\1',
webpage) or []]
for source in sources:
source = urljoin(url, source)
height = int(self._search_regex(r'(\d+).mp4', source, 'height', default=360))
if self._request_webpage(HEADRequest(source), video_id, f'Checking {height}p url', errnote=False):
formats.append({