From ce7f6aa660250039a1ab83cb5370b5bcf88c451c Mon Sep 17 00:00:00 2001 From: pukkandan Date: Mon, 18 Jul 2022 05:00:04 +0530 Subject: [PATCH] Fix bug in 2aab569f1c4c0c5b991a4ad50913d82fd04b3d26 Closes #4371 --- yt_dlp/extractor/wetv.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/yt_dlp/extractor/wetv.py b/yt_dlp/extractor/wetv.py index cc5df0a92..d10783891 100644 --- a/yt_dlp/extractor/wetv.py +++ b/yt_dlp/extractor/wetv.py @@ -1,9 +1,10 @@ +import functools import re import time from .common import InfoExtractor from ..aes import aes_cbc_encrypt -from ..utils import bytes_to_intlist, determine_ext, intlist_to_bytes, int_or_none, traverse_obj +from ..utils import bytes_to_intlist, determine_ext, intlist_to_bytes, int_or_none, traverse_obj, urljoin class WeTvBaseIE(InfoExtractor): @@ -204,6 +205,6 @@ def _real_extract(self, url): or [f'/{series_id}/{episode["vid"]}' for episode in webpage_metadata.get('videoList')]) return self.playlist_from_matches( - episode_paths, series_id, ie=WeTvEpisodeIE, + episode_paths, series_id, ie=WeTvEpisodeIE, getter=functools.partial(urljoin, url), title=traverse_obj(webpage_metadata, ('coverInfo', 'title')) or self._og_search_title(webpage), description=traverse_obj(webpage_metadata, ('coverInfo', 'description')) or self._og_search_description(webpage))